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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1343
RA = 323.836, Dec = -50.1015
tmin = 587433601, tmax = 587692801
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='607584', job_status='RUN', time_executed='2021-09-26 20:03:49.372280', time_epoch_executed='1632711829.37' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607584/ft1_4FGL_J2135.3-5006_daily_bin1343.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607584/ft2_4FGL_J2135.3-5006_daily_bin1343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607584/ft1_4FGL_J2135.3-5006_daily_bin1343.fits outfile=/scratch/kocevski/607584/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1343.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=587433601.0 tmax=587692801.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607584/ft1_filtered_4FGL_J2135.3-5006_daily_bin1343.fits" evtable="EVENTS" scfile=/scratch/kocevski/607584/ft2_4FGL_J2135.3-5006_daily_bin1343.fits sctable="SC_DATA" outfile=/scratch/kocevski/607584/ltcube_587433601_587692801_4FGL_J2135.3-5006_daily_bin1343.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/607584/ft2_4FGL_J2135.3-5006_daily_bin1343.fits
.....................!
real 14.67
user 14.34
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607584/ft1_filtered_4FGL_J2135.3-5006_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/607584/ft2_4FGL_J2135.3-5006_daily_bin1343.fits sctable="SC_DATA" expcube=/scratch/kocevski/607584/ltcube_587433601_587692801_4FGL_J2135.3-5006_daily_bin1343.fits outfile=/scratch/kocevski/607584/expmap_587433601_587692801_4FGL_J2135.3-5006_daily_bin1343.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/607584/ltcube_587433601_587692801_4FGL_J2135.3-5006_daily_bin1343.fits
.....................!
real 191.00
user 186.19
sys 4.29

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/607584/ft1_filtered_4FGL_J2135.3-5006_daily_bin1343.fits scfile=/scratch/kocevski/607584/ft2_4FGL_J2135.3-5006_daily_bin1343.fits outfile=/scratch/kocevski/607584/cmap_587433601_587692801_4FGL_J2135.3-5006_daily_bin1343.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/607584/ft1_filtered_4FGL_J2135.3-5006_daily_bin1343.fits scfile=/scratch/kocevski/607584/ft2_4FGL_J2135.3-5006_daily_bin1343.fits outfile=/scratch/kocevski/607584/cmap_HighResolution_587433601_587692801_4FGL_J2135.3-5006_daily_bin1343.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607584/ft1_filtered_4FGL_J2135.3-5006_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/607584/ft2_4FGL_J2135.3-5006_daily_bin1343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607584/Model_4FGL_J2135.3-5006_daily_bin1343.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/607584/ft1_filtered_4FGL_J2135.3-5006_daily_bin1343.fits.....................!
real 48.20
user 46.93
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.947       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.527       1.0000         .10000E-03   10000.    
     5 'Prefactor '    80.358       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2187       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15286       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.883       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.989       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .66271E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6661       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    49.851       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4208       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79227       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=   5855.688     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2721 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.572        .24544E-08** at limit **
   2  Prefactor     18.946        4.5771       -.22551E-07    .75778E-04
   3  Prefactor     .10000E-03    6.8190       -.22344E-07** at limit **
   4  norm          10.527        3.0422       -.47328E-07    .40081E-03
   5  Prefactor     80.349        56.746       -.26745E-06    .22915E-04
   6  Prefactor     7.1880        444.01       -.36440E-05    .45494E-05
   7  Prefactor     .10451        287.12       -.18815E-04    .10758E-04
   8  Prefactor     26.905        28.812        .10743E-07    .91304E-04
   9  Prefactor     .10000E-03    7.8147        .90445E-07** at limit **
  10  Prefactor     .10000E-03    1.6453        .82890E-07** at limit **
  11  norm          .10000E-03    1.7462       -.14397E-06** at limit **
  12  Prefactor     .10000E-03    4.5355       -.11916E-06** at limit **
  13  Prefactor     40.939        52.905       -.73637E-05   -.81532E-04
  14  Prefactor     .10000E-03    57.801        .12078E-04** at limit **
  15  Prefactor     .10000E-03    2.4751        .24775E-06** at limit **
  16  Prefactor     .10000E-03    88.302        .16493E-05** at limit **
  17  norm          .10000E-03    2.5818        .43034E-07** at limit **
  18  Prefactor     4.5216        6.7480       -.15136E-05    .22978E-04
  19  Prefactor     3.9899        6.5697       -.72853E-06    .12997E-03
  20  Prefactor     8.6572        28.823       -.62926E-05   -.28169E-04
  21  Prefactor     .10000E-03    7.1818       -.17043E-05** at limit **
  22  Prefactor     50.045        126.11        .62274E-05   -.63006E-05
  23  Normalizat    1.4207        .28327        .12018E-04    .68181E-04
  24  Prefactor     .79242        .16570       -.88143E-05    .20102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.9459
  Prefactor  = 0.0001
  norm       = 10.5273
  Prefactor  = 80.3492
  Prefactor  = 7.18795
  Prefactor  = 0.104512
  Prefactor  = 26.9047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.9392
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.52158
  Prefactor  = 3.98989
  Prefactor  = 8.65721
  Prefactor  = 0.000100001
  Prefactor  = 50.0447
  Normalizat = 1.42069
  Prefactor  = 0.792423
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.688     FROM HESSE     STATUS=OK           401 CALLS     3122 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.946        4.5789        .77306E-04   -1.4837    
   3  Prefactor     .10000E-03    6.8292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.527        3.0408        .34237E-03   -1.5059    
   5  Prefactor     80.349        56.760        .44803E-04   -1.3913    
   6  Prefactor     7.1880        447.26        .14929E-03   -1.5172    
   7  Prefactor     .10451        17.568        .57213E-01   -1.5643    
   8  Prefactor     26.905        28.736        .77265E-04   -1.4670    
   9  Prefactor     .10000E-03    7.8198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.6520        .95872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7532        .98810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.5513        .15920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.939        52.450        .62611E-04   -1.4427    
  14  Prefactor     .10000E-03    57.782        .37645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5125        .11757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    88.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5830        .12008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5216        6.7441        .18933E-03   -1.5283    
  19  Prefactor     3.9899        6.5792        .10094E-02   -1.5308    
  20  Prefactor     8.6572        28.789        .13617E-03   -1.5119    
  21  Prefactor     .10000E-03    7.2542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     50.045        126.20        .28399E-03   -1.4292    
  23  Normalizat    1.4207        .28535        .27770E-03   -.80032    
  24  Prefactor     .79242        .16579        .23221E-03   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.32596e-10
Minuit parameter uncertainties:
  1  1.064e-05
  2  4.57902
  3  7.80124e-06
  4  3.04086
  5  56.7983
  6  114.304
  7  2.70954
  8  28.7503
  9  2.81517e-06
  10  2.24464e-06
  11  1.21793e-05
  12  1.71462e-05
  13  52.5087
  14  0.000359373
  15  7.74525e-06
  16  0.000504281
  17  1.83161e-06
  18  6.74519
  19  6.58037
  20  28.8348
  21  0.000162515
  22  126.878
  23  0.285671
  24  0.16589
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.245e-06  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:  7.924e-01  1.659e-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.421e+00  2.857e-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: 7.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607584/likelihoodResults_587433601_587692801_4FGL_J2135.3-5006_daily_bin1343.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) = 5855.69070666
delta logL = -0.0028390854286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5855.68786747
delta logL = 1.11534973257e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4190       1.0000          .0000       10.000    
     3 'Normalizat'    1.4207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79245       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5855.688     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      253 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.892        .96383E-02** at limit **
   2  Index         2.0374        5.8521        .50000       -.51409E-07
   3  Normalizat    1.4207        .17198E-01    .27769E-03    .73365E-04
   4  Prefactor     .79242        .11169E-01    .23221E-03    .10007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03735
  Normalizat = 1.42069
  Prefactor  = 0.792422
 **********
 **   18 **HESSE 
 **********

 FCN=   5855.688     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    161.05        .10089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0374        6.0091        .50000       -.63420    
   3  Normalizat    1.4207        .60905E-01    .11108E-04   -.80032    
   4  Prefactor     .79242        .39555E-01    .92885E-05   -1.0001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25324e-09
Minuit parameter uncertainties:
  1  9.12295e-05
  2  813.95
  3  0.0609078
  4  0.0395563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607584': 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) = 5855.68786469
delta logL = 2.89385661745e-06

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  9.123e-05  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.037e+00  8.140e+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:  7.924e-01  3.956e-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.421e+00  6.091e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/607584/cmap_HighResolution_587433601_587692801_4FGL_J2135.3-5006_daily_bin1343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2021-09-26 20:15:21.493145', job_id='607584', GAL2='0.79', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632712521.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1343' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:15:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 607584: <4FGL_J2135.3-5006_daily_bin1343> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1343 323.836 -50.1015 587433601 587692801 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 :                                 1094 MB
    Average Memory :                             301.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            875 sec.

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

