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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin650
RA = 323.836, Dec = -50.1015
tmin = 407808001, tmax = 408067201
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='603322', job_status='RUN', time_executed='2021-09-26 19:48:00.873912', time_epoch_executed='1632710880.87' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603322/ft1_4FGL_J2135.3-5006_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603322/ft2_4FGL_J2135.3-5006_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603322/ft1_4FGL_J2135.3-5006_daily_bin650.fits outfile=/scratch/kocevski/603322/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin650.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.18
user 3.92
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603322/ft2_4FGL_J2135.3-5006_daily_bin650.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/603322/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/603322/ft1_filtered_4FGL_J2135.3-5006_daily_bin650.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/603322/ft1_filtered_4FGL_J2135.3-5006_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/603322/ft2_4FGL_J2135.3-5006_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/603322/ltcube_407808001_408067201_4FGL_J2135.3-5006_daily_bin650.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/603322/ft2_4FGL_J2135.3-5006_daily_bin650.fits
.....................!
real 15.70
user 15.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603322/ft1_filtered_4FGL_J2135.3-5006_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/603322/ft2_4FGL_J2135.3-5006_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/603322/ltcube_407808001_408067201_4FGL_J2135.3-5006_daily_bin650.fits outfile=/scratch/kocevski/603322/expmap_407808001_408067201_4FGL_J2135.3-5006_daily_bin650.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/603322/ltcube_407808001_408067201_4FGL_J2135.3-5006_daily_bin650.fits
.....................!
real 192.66
user 187.42
sys 4.85

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/603322/ft1_filtered_4FGL_J2135.3-5006_daily_bin650.fits scfile=/scratch/kocevski/603322/ft2_4FGL_J2135.3-5006_daily_bin650.fits outfile=/scratch/kocevski/603322/cmap_407808001_408067201_4FGL_J2135.3-5006_daily_bin650.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603322/ft1_filtered_4FGL_J2135.3-5006_daily_bin650.fits scfile=/scratch/kocevski/603322/ft2_4FGL_J2135.3-5006_daily_bin650.fits outfile=/scratch/kocevski/603322/cmap_HighResolution_407808001_408067201_4FGL_J2135.3-5006_daily_bin650.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603322/ft1_filtered_4FGL_J2135.3-5006_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/603322/ft2_4FGL_J2135.3-5006_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603322/Model_4FGL_J2135.3-5006_daily_bin650.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/603322/ft1_filtered_4FGL_J2135.3-5006_daily_bin650.fits.....................!
real 63.24
user 61.90
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0512       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0583       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2677       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0349       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5995       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68542E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1235       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.6087       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7022       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.532       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15928E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0545       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0984       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=   8323.615     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2785 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2523        155.17        .30476E-05    .12969E-04
   2  Prefactor     6.0592        2.6652        .85342E-07   -.38504E-04
   3  Prefactor     .10000E-03    6.8527        .15008E-07** at limit **
   4  norm          3.2672        2.0483        .13632E-06   -.36885E-03
   5  Prefactor     .10000E-03    9.8173       -.88900E-07** at limit **
   6  Prefactor     .10000E-03    17.084        .75148E-07** at limit **
   7  Prefactor     .35807        7.9113        .29519E-05   -.84203E-03
   8  Prefactor     .10000E-03    10.027        .61178E-07** at limit **
   9  Prefactor     2.0619        28.061        .25844E-05    .56728E-04
  10  Prefactor     .10000E-03    1.7864       -.17090E-06** at limit **
  11  norm          1.6000        2.9168        .41341E-06   -.89678E-04
  12  Prefactor     .10001E-03    4.3621        .87875E-06** at limit **
  13  Prefactor     .10002E-03    39.564       -.41901E-05** at limit **
  14  Prefactor     1.1269        8.8734        .43627E-05    .45398E-04
  15  Prefactor     .10000E-03    2.0154       -.11033E-06** at limit **
  16  Prefactor     .10002E-03    33.981        .38446E-05** at limit **
  17  norm          4.6100        4.3438       -.66073E-07   -.29047E-04
  18  Prefactor     .10000E-03    2.0814        .29842E-08** at limit **
  19  Prefactor     8.7055        6.2542       -.95689E-07   -.21091E-03
  20  Prefactor     20.520        22.354        .10489E-05    .23662E-03
  21  Prefactor     .10000E-03    14.414        .28951E-06** at limit **
  22  Prefactor     .10000E-03    64.762        .11495E-05** at limit **
  23  Normalizat    1.0543        .19141       -.16922E-05   -.48653E-03
  24  Prefactor     1.0983        .12006        .65029E-07   -.67704E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.25226
  Prefactor  = 6.05918
  Prefactor  = 0.0001
  norm       = 3.26719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.358073
  Prefactor  = 0.0001
  Prefactor  = 2.06194
  Prefactor  = 0.0001
  norm       = 1.59998
  Prefactor  = 0.000100012
  Prefactor  = 0.000100017
  Prefactor  = 1.12685
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 4.61005
  Prefactor  = 0.0001
  Prefactor  = 8.7055
  Prefactor  = 20.5199
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.05434
  Prefactor  = 1.0983
 **********
 **   18 **HESSE 
 **********

 FCN=   8323.615     FROM HESSE     STATUS=OK           399 CALLS     3184 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2523        155.60        .17891E-03   -1.5250    
   2  Prefactor     6.0592        2.6636        .94720E-04   -1.5216    
   3  Prefactor     .10000E-03    6.8702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2672        2.0413        .96867E-04   -1.5346    
   5  Prefactor     .10000E-03    9.8209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .35807        37.924        .39975E-02   -1.5588    
   8  Prefactor     .10000E-03    10.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0619        28.284        .28995E-03   -1.5421    
  10  Prefactor     .10000E-03    4.7492        .23528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6000        2.8797        .20349E-03   -1.5455    
  12  Prefactor     .10001E-03    21.491        .35849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    41.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1269        9.6353        .44237E-03   -1.5496    
  15  Prefactor     .10000E-03    4.8517        .24967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    36.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.6100        4.3463        .18024E-03   -1.5279    
  18  Prefactor     .10000E-03    2.1100        .12851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7055        6.2746        .13588E-03   -1.5118    
  20  Prefactor     20.520        22.602        .88395E-04   -1.4802    
  21  Prefactor     .10000E-03    14.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    64.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0543        .21839        .30140E-03   -.91231    
  24  Prefactor     1.0983        .14007        .19736E-03   -.89521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74782e-09
Minuit parameter uncertainties:
  1  57.34
  2  2.66364
  3  3.99221e-06
  4  2.04136
  5  1.86368e-05
  6  2.09125e-05
  7  7.37383
  8  5.1301e-06
  9  15.2819
  10  3.00439e-05
  11  2.87998
  12  0.00101286
  13  0.00166384
  14  6.5913
  15  1.27592e-06
  16  0.00152619
  17  4.34658
  18  2.35118e-06
  19  6.27503
  20  22.6117
  21  2.92596e-05
  22  0.000524931
  23  0.218577
  24  0.140113
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  3.004e-05  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.098e+00  1.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.054e+00  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 6.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603322/likelihoodResults_407808001_408067201_4FGL_J2135.3-5006_daily_bin650.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): 102
logL (Free Index) = 8323.61641663
delta logL = -0.0010005920376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8323.61541691
delta logL = -8.75472323969e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3906       1.0000          .0000       10.000    
     3 'Normalizat'    1.0540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0985       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8323.615     FROM MIGRAD    STATUS=FAILED        95 CALLS      264 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10942E-03    74.334        .24234E-02** at limit **
   2  Index         2.1861        5.9675        .50000        .36139E-04
   3  Normalizat    1.0543        .15532E-01    .30140E-03   -.85520E-03
   4  Prefactor     1.0983        .10418E-01    .19736E-03   -.11048E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8323.615     FROM SIMPLEX   STATUS=PROGRESS     122 CALLS      386 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    74.334        .33782E-03** at limit **
   2  Index         2.1851        5.9675        .32786E-03    .36139E-04
   3  Normalizat    1.0543        .15532E-01    .21950E-05   -.85520E-03
   4  Prefactor     1.0983        .10418E-01    .10292E-05   -.11048E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8323.615     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      444 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91766        .48468E-01** at limit **
   2  Index         1.9965        6.5941        .50000       -.17162E-06
   3  Normalizat    1.0543        .31684E-02    .60279E-04    .22632E-04
   4  Prefactor     1.0983        .21252E-02    .39473E-04    .96312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99654
  Normalizat = 1.05434
  Prefactor  = 1.0983
 **********
 **   18 **HESSE 
 **********

 FCN=   8323.615     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      475 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    121.01        .24864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9965        5.7717        .50000       -.64437    
   3  Normalizat    1.0543        .18864E-01    .12056E-04   -.91231    
   4  Prefactor     1.0983        .12653E-01    .78945E-05   -.89521    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.3011e-11
Minuit parameter uncertainties:
  1  8.24408e-05
  2  278.269
  3  0.0188642
  4  0.0126532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603322': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8323.61541216
delta logL = 3.87383988709e-06

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  8.244e-05  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.997e+00  2.783e+02  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.098e+00  1.265e-02  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.054e+00  1.886e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 323.836 -50.102

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/603322/cmap_HighResolution_407808001_408067201_4FGL_J2135.3-5006_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', job_status='DONE', photon_flux_upper_limit='6.02e-08', time_completed='2021-09-26 20:02:14.498272', job_id='603322', GAL2='1.10', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632711734.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='650' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:02:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 603322: <4FGL_J2135.3-5006_daily_bin650> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin650> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:46:00 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:47:41 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:47:41 2021
Terminated at Sun Sep 26 20:02:15 2021
Results reported at Sun Sep 26 20:02:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin650 323.836 -50.1015 407808001 408067201 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 :                                   837.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            975 sec.

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

