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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1609
RA = 323.836, Dec = -50.1015
tmin = 656380801, tmax = 656640001
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='472361', job_status='RUN', time_executed='2021-12-08 07:47:37.071458', time_epoch_executed='1638978457.07' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/472361

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/472361/ft1_4FGL_J2135.3-5006_daily_bin1609.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/472361/ft2_4FGL_J2135.3-5006_daily_bin1609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/472361/ft1_4FGL_J2135.3-5006_daily_bin1609.fits outfile=/scratch/kocevski/472361/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1609.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=656380801.0 tmax=656640001.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.50
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/472361/ft1_filtered_4FGL_J2135.3-5006_daily_bin1609.fits" evtable="EVENTS" scfile=/scratch/kocevski/472361/ft2_4FGL_J2135.3-5006_daily_bin1609.fits sctable="SC_DATA" outfile=/scratch/kocevski/472361/ltcube_656380801_656640001_4FGL_J2135.3-5006_daily_bin1609.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/472361/ft2_4FGL_J2135.3-5006_daily_bin1609.fits
.....................!
real 13.96
user 13.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/472361/ft1_filtered_4FGL_J2135.3-5006_daily_bin1609.fits evtable="EVENTS" scfile=/scratch/kocevski/472361/ft2_4FGL_J2135.3-5006_daily_bin1609.fits sctable="SC_DATA" expcube=/scratch/kocevski/472361/ltcube_656380801_656640001_4FGL_J2135.3-5006_daily_bin1609.fits outfile=/scratch/kocevski/472361/expmap_656380801_656640001_4FGL_J2135.3-5006_daily_bin1609.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/472361/ltcube_656380801_656640001_4FGL_J2135.3-5006_daily_bin1609.fits
.....................!
real 191.58
user 185.91
sys 4.97

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/472361/ft1_filtered_4FGL_J2135.3-5006_daily_bin1609.fits scfile=/scratch/kocevski/472361/ft2_4FGL_J2135.3-5006_daily_bin1609.fits outfile=/scratch/kocevski/472361/cmap_656380801_656640001_4FGL_J2135.3-5006_daily_bin1609.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.55
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/472361/ft1_filtered_4FGL_J2135.3-5006_daily_bin1609.fits evtable="EVENTS" scfile=/scratch/kocevski/472361/ft2_4FGL_J2135.3-5006_daily_bin1609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/472361/Model_4FGL_J2135.3-5006_daily_bin1609.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/472361/ft1_filtered_4FGL_J2135.3-5006_daily_bin1609.fits.....................!
real 50.76
user 49.29
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .57197E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .93543       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.170       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.516       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7437       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.114       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8359       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12170E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.860       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .89587       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1174       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=   6269.556     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2685 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.943        .98383E-05** at limit **
   2  Prefactor     .10000E-03    1.9122       -.17089E-06** at limit **
   3  Prefactor     .10026E-03    11.002        .36670E-05** at limit **
   4  norm          .93280        1.7931       -.47426E-06   -.15716E-02
   5  Prefactor     52.150        54.817       -.22276E-04   -.43357E-04
   6  Prefactor     42.511        55.041       -.64206E-05    .16908E-06
   7  Prefactor     5.7449        7.2384       -.32858E-05   -.17450E-03
   8  Prefactor     6.3468        19.996       -.29903E-05   -.19080E-04
   9  Prefactor     .10000E-03    22.857        .23186E-05** at limit **
  10  Prefactor     .10000E-03    3.5060        .19405E-06** at limit **
  11  norm          .10000E-03    1.7428        .49380E-09** at limit **
  12  Prefactor     .10000E-03    5.6517       -.14090E-06** at limit **
  13  Prefactor     26.104        36.271       -.11361E-04   -.47128E-06
  14  Prefactor     6.1529        9.3894        .14599E-05   -.11408E-03
  15  Prefactor     .10000E-03    2.5558       -.61528E-07** at limit **
  16  Prefactor     .10000E-03    45.382        .18141E-04** at limit **
  17  norm          .10000E-03    2.2540        .19377E-08** at limit **
  18  Prefactor     7.8363        4.5784       -.28032E-06   -.10048E-03
  19  Prefactor     .10000E-03    4.1047        .16079E-06** at limit **
  20  Prefactor     .10000E-03    32.426       -.17596E-04** at limit **
  21  Prefactor     19.848        12.598       -.51656E-06    .28151E-03
  22  Prefactor     .10000E-03    58.191       -.24632E-04** at limit **
  23  Normalizat    .89570        .20713        .35562E-05   -.89914E-04
  24  Prefactor     1.1175        .13597        .80791E-06   -.83093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100264
  norm       = 0.932801
  Prefactor  = 52.1503
  Prefactor  = 42.5106
  Prefactor  = 5.74492
  Prefactor  = 6.34681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1043
  Prefactor  = 6.15289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.83633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.848
  Prefactor  = 0.0001
  Normalizat = 0.8957
  Prefactor  = 1.11752
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.556     FROM HESSE     STATUS=OK           395 CALLS     3080 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9723        .21013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10026E-03    48.778        .50274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .93280        1.5260        .13850E-02   -1.5515    
   5  Prefactor     52.150        54.801        .55527E-04   -1.4262    
   6  Prefactor     42.511        55.043        .61481E-04   -1.4403    
   7  Prefactor     5.7449        7.2412        .16759E-03   -1.5229    
   8  Prefactor     6.3468        19.972        .15927E-03   -1.5204    
   9  Prefactor     .10000E-03    22.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6043        .28933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7509        .10203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.104        36.170        .78392E-04   -1.4686    
  14  Prefactor     6.1529        9.3744        .16185E-03   -1.5212    
  15  Prefactor     .10000E-03    2.6102        .12349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.2548        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8363        4.5829        .12489E-03   -1.5148    
  19  Prefactor     .10000E-03    4.1904        .15654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.848        12.609        .89875E-04   -1.4817    
  22  Prefactor     .10000E-03    58.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .89570        .23927        .30437E-03   -.96611    
  24  Prefactor     1.1175        .15833        .18974E-03   -.88908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87422e-09
Minuit parameter uncertainties:
  1  2.86319e-05
  2  9.96733e-06
  3  0.0071893
  4  1.52605
  5  54.8537
  6  55.1084
  7  7.24232
  8  19.9928
  9  0.000149496
  10  2.06898e-05
  11  1.15406e-06
  12  1.22287e-05
  13  36.2004
  14  9.37659
  15  1.46071e-05
  16  1.89216e-05
  17  1.55102e-06
  18  4.58314
  19  1.26421e-05
  20  9.55205e-06
  21  12.611
  22  3.07785e-05
  23  0.239551
  24  0.158401
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.069e-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.118e+00  1.584e-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:  8.957e-01  2.396e-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: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/472361/likelihoodResults_656380801_656640001_4FGL_J2135.3-5006_daily_bin1609.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) = 6269.55732136
delta logL = -0.00132357112307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6269.55599962
delta logL = -1.82353869604e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4124       1.0000          .0000       10.000    
     3 'Normalizat'    .89530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       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=   6269.556     FROM MIGRAD    STATUS=FAILED        88 CALLS      244 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10091E-03    232.93        .29278E-03** at limit **
   2  Index         2.3620        8.7353        .50000        .29377E-04
   3  Normalizat    .89570        .42430E-01    .30437E-03    .53935E-04
   4  Prefactor     1.1175        .29393E-01    .18974E-03    .84159E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6269.556     FROM SIMPLEX   STATUS=PROGRESS     141 CALLS      385 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    232.93        .27265E-03** at limit **
   2  Index         2.3616        8.7353        .12552E-03    .29377E-04
   3  Normalizat    .89570        .42430E-01    .23877E-05    .53935E-04
   4  Prefactor     1.1175        .29393E-01    .87907E-06    .84159E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6269.556     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      430 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.681        .58557E-04** at limit **
   2  Index         2.2106        8.3713        .50000       -.15477E-06
   3  Normalizat    .89570        .22552        .12175E-04    .64991E-04
   4  Prefactor     1.1175        .15632        .37948E-04    .11953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21056
  Normalizat = 0.895701
  Prefactor  = 1.11752
 **********
 **   18 **HESSE 
 **********

 FCN=   6269.556     FROM HESSE     STATUS=OK            29 CALLS      459 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0660        .11711E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2106        7.5416        .50000       -.59184    
   3  Normalizat    .89570        .22546        .24350E-05   -.96611    
   4  Prefactor     1.1175        .15629        .75897E-05   -.88908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97637e-11
Minuit parameter uncertainties:
  1  2.48634e-05
  2  73.7844
  3  0.225696
  4  0.156354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/472361': 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) = 6269.55599671
delta logL = 1.08123185782e-06

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.486e-05  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.211e+00  7.378e+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.118e+00  1.564e-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:  8.957e-01  2.257e-01  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/472361/cmap_HighResolution_656380801_656640001_4FGL_J2135.3-5006_daily_bin1609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-12-08 07:59:04.253474', job_id='472361', GAL2='1.12', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1638979144.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1609' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 07:59:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 472361: <4FGL_J2135.3-5006_daily_bin1609> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1609> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 07:45:25 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:46:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:46:40 2021
Terminated at Wed Dec  8 07:59:05 2021
Results reported at Wed Dec  8 07:59:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1609 323.836 -50.1015 656380801 656640001 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            820 sec.

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

