/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 111 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 = 7483
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2135.3-5006_daily_bin365
RA = 323.836, Dec = -50.1015
tmin = 333936001, tmax = 334195201
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='602877', job_status='RUN', time_executed='2021-09-26 19:47:57.568043', time_epoch_executed='1632710877.57' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602877/ft1_4FGL_J2135.3-5006_daily_bin365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602877/ft2_4FGL_J2135.3-5006_daily_bin365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602877/ft1_4FGL_J2135.3-5006_daily_bin365.fits outfile=/scratch/kocevski/602877/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin365.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=333936001.0 tmax=334195201.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.65
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/602877/ft2_4FGL_J2135.3-5006_daily_bin365.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/602877/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin365.fits evtable="EVENTS" outfile="/scratch/kocevski/602877/ft1_filtered_4FGL_J2135.3-5006_daily_bin365.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602877/ft1_filtered_4FGL_J2135.3-5006_daily_bin365.fits" evtable="EVENTS" scfile=/scratch/kocevski/602877/ft2_4FGL_J2135.3-5006_daily_bin365.fits sctable="SC_DATA" outfile=/scratch/kocevski/602877/ltcube_333936001_334195201_4FGL_J2135.3-5006_daily_bin365.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/602877/ft2_4FGL_J2135.3-5006_daily_bin365.fits
.....................!
real 13.49
user 13.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602877/ft1_filtered_4FGL_J2135.3-5006_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/602877/ft2_4FGL_J2135.3-5006_daily_bin365.fits sctable="SC_DATA" expcube=/scratch/kocevski/602877/ltcube_333936001_334195201_4FGL_J2135.3-5006_daily_bin365.fits outfile=/scratch/kocevski/602877/expmap_333936001_334195201_4FGL_J2135.3-5006_daily_bin365.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/602877/ltcube_333936001_334195201_4FGL_J2135.3-5006_daily_bin365.fits
.....................!
real 191.61
user 185.60
sys 5.62

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/602877/ft1_filtered_4FGL_J2135.3-5006_daily_bin365.fits scfile=/scratch/kocevski/602877/ft2_4FGL_J2135.3-5006_daily_bin365.fits outfile=/scratch/kocevski/602877/cmap_333936001_334195201_4FGL_J2135.3-5006_daily_bin365.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.59
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602877/ft1_filtered_4FGL_J2135.3-5006_daily_bin365.fits scfile=/scratch/kocevski/602877/ft2_4FGL_J2135.3-5006_daily_bin365.fits outfile=/scratch/kocevski/602877/cmap_HighResolution_333936001_334195201_4FGL_J2135.3-5006_daily_bin365.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/602877/ft1_filtered_4FGL_J2135.3-5006_daily_bin365.fits evtable="EVENTS" scfile=/scratch/kocevski/602877/ft2_4FGL_J2135.3-5006_daily_bin365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/602877/Model_4FGL_J2135.3-5006_daily_bin365.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/602877/ft1_filtered_4FGL_J2135.3-5006_daily_bin365.fits....................!
real 54.03
user 52.72
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.911       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.4997       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.272       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1257       1.0000         .10000E-03   10000.    
    11 'norm      '    8.4605       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5468       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8692       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.1440       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6486       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24289E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76058       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1027       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=   7294.253     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2677 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.910        67.210       -.21315E-05    .14417E-06
   2  Prefactor     .10000E-03    .73203       -.43090E-08** at limit **
   3  Prefactor     .10000E-03    5.7519        .27477E-06** at limit **
   4  norm          4.4996        1.9423       -.57636E-07   -.35044E-05
   5  Prefactor     .10000E-03    24.422       -.98069E-05** at limit **
   6  Prefactor     .10000E-03    21.219        .93140E-05** at limit **
   7  Prefactor     4.8002        6.3416        .12050E-05    .21828E-04
   8  Prefactor     18.258        24.755       -.10586E-04   -.79052E-05
   9  Prefactor     .10000E-03    6.0764       -.29179E-06** at limit **
  10  Prefactor     8.1256        3.9381        .78819E-06    .22973E-04
  11  norm          8.4603        4.6583        .18749E-06    .34184E-04
  12  Prefactor     .10000E-03    5.3278        .11129E-07** at limit **
  13  Prefactor     9.5771        28.225       -.76609E-05   -.72434E-05
  14  Prefactor     1.5460        3.8844        .37204E-06   -.99903E-03
  15  Prefactor     4.8690        3.5706       -.18110E-06   -.10391E-03
  16  Prefactor     .10000E-03    33.704        .90941E-05** at limit **
  17  norm          8.1440        6.3271        .47920E-07   -.36123E-04
  18  Prefactor     .10000E-03    1.4022       -.68499E-08** at limit **
  19  Prefactor     1.6486        3.7173       -.23646E-06   -.11065E-02
  20  Prefactor     .10000E-03    23.743       -.86721E-05** at limit **
  21  Prefactor     .10034E-03    5.9720        .20451E-05** at limit **
  22  Prefactor     .10000E-03    48.366       -.14717E-04** at limit **
  23  Normalizat    .76067        .18353        .16629E-05   -.10400E-03
  24  Prefactor     1.1026        .12092       -.10080E-06   -.34853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.80024
  Prefactor  = 18.2578
  Prefactor  = 0.0001
  Prefactor  = 8.12556
  norm       = 8.46025
  Prefactor  = 0.0001
  Prefactor  = 9.57706
  Prefactor  = 1.54604
  Prefactor  = 4.86895
  Prefactor  = 0.0001
  norm       = 8.14401
  Prefactor  = 0.0001
  Prefactor  = 1.64856
  Prefactor  = 0.0001
  Prefactor  = 0.000100338
  Prefactor  = 0.0001
  Normalizat = 0.760672
  Prefactor  = 1.10259
 **********
 **   18 **HESSE 
 **********

 FCN=   7294.253     FROM HESSE     STATUS=OK           399 CALLS     3076 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.910        67.281        .81918E-04   -1.4730    
   2  Prefactor     .10000E-03    .73913        .71330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4996        1.9424        .74053E-04   -1.5284    
   5  Prefactor     .10000E-03    24.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8002        6.3346        .18361E-03   -1.5270    
   8  Prefactor     18.258        24.787        .93698E-04   -1.4853    
   9  Prefactor     .10000E-03    6.0818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.1256        3.9389        .11336E-03   -1.5138    
  11  norm          8.4603        4.6556        .12903E-03   -1.5126    
  12  Prefactor     .10000E-03    5.3553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5771        28.312        .12946E-03   -1.5089    
  14  Prefactor     1.5460        5.3478        .17130E-02   -1.5459    
  15  Prefactor     4.8690        3.5749        .13152E-03   -1.5267    
  16  Prefactor     .10000E-03    33.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.1440        6.3263        .14049E-03   -1.5137    
  18  Prefactor     .10000E-03    1.4116        .98737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6486        5.1077        .16027E-02   -1.5451    
  20  Prefactor     .10000E-03    23.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10034E-03    37.711        .39941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    48.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .76067        .21339        .31703E-03   -1.0154    
  24  Prefactor     1.1026        .13930        .18386E-03   -.89384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19457e-08
Minuit parameter uncertainties:
  1  67.4953
  2  1.53068e-06
  3  5.13015e-06
  4  1.94242
  5  1.96888e-05
  6  1.39507e-06
  7  6.33547
  8  24.8011
  9  5.5585e-06
  10  3.93901
  11  4.65579
  12  1.30305e-05
  13  28.3513
  14  5.34943
  15  3.57505
  16  4.06349e-06
  17  6.32685
  18  6.35162e-07
  19  5.10909
  20  5.46167e-05
  21  0.00714585
  22  4.18306e-05
  23  0.213624
  24  0.139346
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  8.126e+00  3.939e+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.103e+00  1.393e-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.607e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.48
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.09e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.08e-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) = 7293.64697115
delta logL = 0.605855205734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7293.63778038
delta logL = 0.615045973934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3852       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9812       1.0000          .0000       10.000    
     3 'Normalizat'    .78429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0945       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=   7293.638     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 45.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3855        4.3491        .90423E-06   -.21892E-02
   2  Index         1.9813        .30496       -.40555E-05   -.47999E-03
   3  Normalizat    .78427        .17475        .15329E-06    .81203E-04
   4  Prefactor     1.0946        .11984       -.89495E-07    .10908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.3855
  Index      = 1.98133
  Normalizat = 0.784272
  Prefactor  = 1.09455
 **********
 **   18 **HESSE 
 **********

 FCN=   7293.638     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3855        5.0115        .13082E-03   -1.5095    
   2  Index         1.9813        .39730        .70450E-02   -.64818    
   3  Normalizat    .78427        .20008        .31279E-03   -1.0065    
   4  Prefactor     1.0946        .13726        .18451E-03   -.89641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02542e-09
Minuit parameter uncertainties:
  1  5.0117
  2  0.397962
  3  0.20027
  4  0.1373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602877': 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) = 7293.63778032
delta logL = 0.615046034272

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  9.385e+00  5.012e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.981e+00  3.980e-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.095e+00  1.373e-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.843e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.68
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 1.98 +/- 0.40
Photon Flux (Free Index): 4.89e-08 +/- 3.38e-08
Energy Flux (Free Index): 3.54e-05 +/- 2.72e-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/602877/cmap_HighResolution_333936001_334195201_4FGL_J2135.3-5006_daily_bin365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.09e-08', energy_flux2='3.54e-05', photon_flux_error='3.43e-08', dlogl='6.15e-01', energy_flux='2.23e-05', photon_flux2='4.89e-08', job_status='DONE', time_completed='2021-09-26 19:59:20.466720', photon_index_error2='0.40', photon_index2='1.98', ts='13.48', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.72e-05', EG='0.76', time_epoch_completed='1632711560.47', return_code='0', job_id='602877', GAL2='1.09', EG2='0.78', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.38e-08', ts2='14.68', photon_index='2.43' WHERE bin_id='365' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:59:20 PDT 2021


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

Job <4FGL_J2135.3-5006_daily_bin365> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:45:28 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:45:57 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:45:57 2021
Terminated at Sun Sep 26 19:59:21 2021
Results reported at Sun Sep 26 19:59:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin365 323.836 -50.1015 333936001 334195201 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            833 sec.

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

