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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1285
RA = 323.836, Dec = -50.1015
tmin = 572400001, tmax = 572659201
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='607491', job_status='RUN', time_executed='2021-09-26 20:03:28.356086', time_epoch_executed='1632711808.36' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1285'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607491/ft1_4FGL_J2135.3-5006_daily_bin1285.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607491/ft2_4FGL_J2135.3-5006_daily_bin1285.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607491/ft1_4FGL_J2135.3-5006_daily_bin1285.fits outfile=/scratch/kocevski/607491/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1285.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=572400001.0 tmax=572659201.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.75
user 3.53
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607491/ft1_filtered_4FGL_J2135.3-5006_daily_bin1285.fits" evtable="EVENTS" scfile=/scratch/kocevski/607491/ft2_4FGL_J2135.3-5006_daily_bin1285.fits sctable="SC_DATA" outfile=/scratch/kocevski/607491/ltcube_572400001_572659201_4FGL_J2135.3-5006_daily_bin1285.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/607491/ft2_4FGL_J2135.3-5006_daily_bin1285.fits
.....................!
real 14.42
user 14.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607491/ft1_filtered_4FGL_J2135.3-5006_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/607491/ft2_4FGL_J2135.3-5006_daily_bin1285.fits sctable="SC_DATA" expcube=/scratch/kocevski/607491/ltcube_572400001_572659201_4FGL_J2135.3-5006_daily_bin1285.fits outfile=/scratch/kocevski/607491/expmap_572400001_572659201_4FGL_J2135.3-5006_daily_bin1285.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/607491/ltcube_572400001_572659201_4FGL_J2135.3-5006_daily_bin1285.fits
.....................!
real 193.03
user 186.97
sys 5.68

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/607491/ft1_filtered_4FGL_J2135.3-5006_daily_bin1285.fits scfile=/scratch/kocevski/607491/ft2_4FGL_J2135.3-5006_daily_bin1285.fits outfile=/scratch/kocevski/607491/cmap_572400001_572659201_4FGL_J2135.3-5006_daily_bin1285.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.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607491/ft1_filtered_4FGL_J2135.3-5006_daily_bin1285.fits evtable="EVENTS" scfile=/scratch/kocevski/607491/ft2_4FGL_J2135.3-5006_daily_bin1285.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607491/Model_4FGL_J2135.3-5006_daily_bin1285.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/607491/ft1_filtered_4FGL_J2135.3-5006_daily_bin1285.fits.....................!
real 57.52
user 56.19
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.057       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5873       1.0000         .10000E-03   10000.    
    11 'norm      '    9.8629       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57557E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.520       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6287       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7582       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5433       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0642       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11791E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2037       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88857       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=   7470.539     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2354 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.599        .51810E-05** at limit **
   2  Prefactor     .62998        1.9474       -.11249E-05   -.17467E-02
   3  Prefactor     .10000E-03    6.8775       -.18164E-06** at limit **
   4  norm          13.057        2.6120       -.79826E-08   -.51697E-04
   5  Prefactor     .10000E-03    14.647       -.88520E-06** at limit **
   6  Prefactor     .10000E-03    24.101       -.94475E-06** at limit **
   7  Prefactor     .10000E-03    5.8909        .23925E-06** at limit **
   8  Prefactor     .10000E-03    45.363        .83840E-05** at limit **
   9  Prefactor     .10000E-03    5.8521       -.16675E-06** at limit **
  10  Prefactor     4.5862        4.1391        .18210E-05   -.33696E-03
  11  norm          9.8627        4.9549       -.65253E-06   -.12876E-03
  12  Prefactor     .10002E-03    5.0936       -.47439E-06** at limit **
  13  Prefactor     24.515        25.282        .46685E-06    .37346E-04
  14  Prefactor     .10000E-03    9.6991       -.40061E-05** at limit **
  15  Prefactor     1.6279        2.6279       -.26151E-06   -.73011E-03
  16  Prefactor     .10000E-03    27.951        .66867E-05** at limit **
  17  norm          .10000E-03    3.0040        .55787E-08** at limit **
  18  Prefactor     2.7567        4.0328        .87153E-06   -.50505E-03
  19  Prefactor     9.5417        7.1886        .82165E-07   -.63420E-04
  20  Prefactor     2.9644        91.781       -.76981E-05   -.45755E-04
  21  Prefactor     .10000E-03    9.9843        .42790E-05** at limit **
  22  Prefactor     .10000E-03    35.110       -.15021E-04** at limit **
  23  Normalizat    1.2042        .19277        .75385E-07    .71015E-04
  24  Prefactor     .88824        .11997        .28511E-07    .92537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.629985
  Prefactor  = 0.0001
  norm       = 13.0569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.58618
  norm       = 9.86271
  Prefactor  = 0.00010002
  Prefactor  = 24.5149
  Prefactor  = 0.0001
  Prefactor  = 1.6279
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.75672
  Prefactor  = 9.54172
  Prefactor  = 2.96436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20423
  Prefactor  = 0.888244
 **********
 **   18 **HESSE 
 **********

 FCN=   7470.539     FROM HESSE     STATUS=OK           395 CALLS     2749 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .62998        2.0379        .21242E-03   -1.5549    
   3  Prefactor     .10000E-03    6.9006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.057        2.6131        .59681E-04   -1.4985    
   5  Prefactor     .10000E-03    14.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    45.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5862        4.0528        .15607E-03   -1.5280    
  11  norm          9.8627        4.9615        .12760E-03   -1.5080    
  12  Prefactor     .10002E-03    29.656        .37778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.515        25.306        .80896E-04   -1.4717    
  14  Prefactor     .10000E-03    9.9616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6279        2.6136        .17240E-03   -1.5453    
  16  Prefactor     .10000E-03    27.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.0082        .14630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7567        3.9958        .19992E-03   -1.5376    
  19  Prefactor     9.5417        7.1490        .12972E-03   -1.5090    
  20  Prefactor     2.9644        93.389        .23174E-03   -1.5364    
  21  Prefactor     .10000E-03    10.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2042        .22709        .27865E-03   -.86472    
  24  Prefactor     .88824        .14096        .21083E-03   -.96553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35737e-09
Minuit parameter uncertainties:
  1  4.05252e-06
  2  2.03813
  3  4.56563e-06
  4  2.6131
  5  3.56671e-06
  6  7.66063e-07
  7  1.95671e-05
  8  8.66528e-06
  9  2.91635e-06
  10  4.05302
  11  4.96174
  12  0.00154083
  13  25.317
  14  2.26376e-05
  15  2.61376
  16  6.08409e-06
  17  1.74401e-06
  18  3.99617
  19  7.14965
  20  33.3333
  21  5.48265e-05
  22  1.29168e-05
  23  0.227275
  24  0.141019
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  4.586e+00  4.053e+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:  8.882e-01  1.410e-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.204e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/607491/likelihoodResults_572400001_572659201_4FGL_J2135.3-5006_daily_bin1285.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) = 7470.4441252
delta logL = 0.0947403744485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7470.44240436
delta logL = 0.0964612149673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5864       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7497       1.0000          .0000       10.000    
     3 'Normalizat'    1.1940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89256       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=   7470.442     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      268 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5877        76.304        .53346E-02    .10947E-02
   2  Index         2.7501        6.3730        .16388        .22957E-03
   3  Normalizat    1.1937        .70386E-01    .63228E-01    .45729E-04
   4  Prefactor     .89262        .44870E-01    .44910E-01   -.15704E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.58765
  Index      = 2.75013
  Normalizat = 1.19375
  Prefactor  = 0.892624
 **********
 **   18 **HESSE 
 **********

 FCN=   7470.442     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5877        4.5198        .12954E-03   -1.5329    
   2  Index         2.7501        .83871        .84643E-02   -.46674    
   3  Normalizat    1.1937        .20831        .27968E-03   -.86796    
   4  Prefactor     .89262        .13679        .21035E-03   -.96399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79424e-10
Minuit parameter uncertainties:
  1  4.52025
  2  0.84372
  3  0.208458
  4  0.136846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607491': 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) = 7470.44240315
delta logL = 0.0964624312828

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  3.588e+00  4.520e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.750e+00  8.437e-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:  8.926e-01  1.368e-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.194e+00  2.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 2.75 +/- 0.84
Photon Flux (Free Index): 4.83e-08 +/- 4.18e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.01e-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/607491/cmap_HighResolution_572400001_572659201_4FGL_J2135.3-5006_daily_bin1285.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-03', comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='1.12e-05', photon_flux_error='3.53e-08', dlogl='9.65e-02', energy_flux='1.26e-05', photon_flux2='4.83e-08', job_status='DONE', time_completed='2021-09-26 20:15:59.216106', photon_index_error2='0.84', photon_index2='2.75', ts='1.86', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.01e-05', EG='1.20', time_epoch_completed='1632712559.22', return_code='0', job_id='607491', GAL2='0.89', EG2='1.19', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.18e-08', ts2='2.06', photon_index='2.43' WHERE bin_id='1285' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 607491: <4FGL_J2135.3-5006_daily_bin1285> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1285> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 20:00:38 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:01:39 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:01:39 2021
Terminated at Sun Sep 26 20:15:59 2021
Results reported at Sun Sep 26 20:15:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1285 323.836 -50.1015 572400001 572659201 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 :                                   734.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            921 sec.

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

