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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1661
RA = 323.836, Dec = -50.1015
tmin = 669859201, tmax = 670118401
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='85154', job_status='RUN', time_executed='2022-03-28 00:41:49.477524', time_epoch_executed='1648453309.48' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1661'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85154

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85154/ft1_4FGL_J2135.3-5006_daily_bin1661.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85154/ft2_4FGL_J2135.3-5006_daily_bin1661.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85154/ft1_4FGL_J2135.3-5006_daily_bin1661.fits outfile=/scratch/kocevski/85154/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1661.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=669859201.0 tmax=670118401.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.69
user 3.39
sys 0.22

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

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

Number of photons that the gtmktime cut: 635

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85154/ft1_filtered_4FGL_J2135.3-5006_daily_bin1661.fits" evtable="EVENTS" scfile=/scratch/kocevski/85154/ft2_4FGL_J2135.3-5006_daily_bin1661.fits sctable="SC_DATA" outfile=/scratch/kocevski/85154/ltcube_669859201_670118401_4FGL_J2135.3-5006_daily_bin1661.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/85154/ft2_4FGL_J2135.3-5006_daily_bin1661.fits
.....................!
real 12.17
user 11.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85154/ft1_filtered_4FGL_J2135.3-5006_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85154/ft2_4FGL_J2135.3-5006_daily_bin1661.fits sctable="SC_DATA" expcube=/scratch/kocevski/85154/ltcube_669859201_670118401_4FGL_J2135.3-5006_daily_bin1661.fits outfile=/scratch/kocevski/85154/expmap_669859201_670118401_4FGL_J2135.3-5006_daily_bin1661.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/85154/ltcube_669859201_670118401_4FGL_J2135.3-5006_daily_bin1661.fits
.....................!
real 190.26
user 184.89
sys 4.89

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/85154/ft1_filtered_4FGL_J2135.3-5006_daily_bin1661.fits scfile=/scratch/kocevski/85154/ft2_4FGL_J2135.3-5006_daily_bin1661.fits outfile=/scratch/kocevski/85154/cmap_669859201_670118401_4FGL_J2135.3-5006_daily_bin1661.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85154/ft1_filtered_4FGL_J2135.3-5006_daily_bin1661.fits scfile=/scratch/kocevski/85154/ft2_4FGL_J2135.3-5006_daily_bin1661.fits outfile=/scratch/kocevski/85154/cmap_HighResolution_669859201_670118401_4FGL_J2135.3-5006_daily_bin1661.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85154/ft1_filtered_4FGL_J2135.3-5006_daily_bin1661.fits evtable="EVENTS" scfile=/scratch/kocevski/85154/ft2_4FGL_J2135.3-5006_daily_bin1661.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85154/Model_4FGL_J2135.3-5006_daily_bin1661.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/85154/ft1_filtered_4FGL_J2135.3-5006_daily_bin1661.fits.....................!
real 53.19
user 51.77
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.070       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5096       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4982       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4087       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5454       1.0000         .10000E-03   10000.    
    11 'norm      '    2.3342       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1495       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7387       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8574       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3672       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.677       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1709       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0562       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=   6917.738     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2729 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.070        40.625       -.11876E-05    .20809E-04
   2  Prefactor     .10000E-03    .86578        .73806E-07** at limit **
   3  Prefactor     2.4926        64.790       -.30700E-04    .91865E-04
   4  norm          .10000E-03    .92416       -.25031E-07** at limit **
   5  Prefactor     49.882        53.322        .63127E-05    .20612E-03
   6  Prefactor     .10000E-03    51.211        .28675E-05** at limit **
   7  Prefactor     9.4970        9.9954       -.11763E-05    .52340E-04
   8  Prefactor     .10000E-03    23.917       -.74659E-06** at limit **
   9  Prefactor     1.3698        106.33       -.58748E-04    .94037E-04
  10  Prefactor     1.5444        3.8539       -.66794E-06   -.71473E-03
  11  norm          2.3342        2.8607       -.23457E-06   -.14714E-03
  12  Prefactor     .10000E-03    3.0555       -.53347E-07** at limit **
  13  Prefactor     .10000E-03    47.532        .47264E-05** at limit **
  14  Prefactor     7.1462        8.1982        .44449E-05   -.50641E-03
  15  Prefactor     .10000E-03    2.5393       -.11459E-06** at limit **
  16  Prefactor     .10000E-03    40.582       -.63568E-05** at limit **
  17  norm          5.7387        5.7604        .29773E-07    .92039E-04
  18  Prefactor     .10000E-03    1.9122       -.21471E-06** at limit **
  19  Prefactor     2.8559        6.5172       -.37927E-05   -.14421E-03
  20  Prefactor     2.3617        91.538       -.14372E-04    .22833E-04
  21  Prefactor     17.674        15.817        .44719E-06    .17995E-03
  22  Prefactor     .10000E-03    44.734        .34478E-05** at limit **
  23  Normalizat    1.1711        .22023        .46177E-05    .45950E-03
  24  Prefactor     1.0561        .13626        .52765E-06    .83865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0695
  Prefactor  = 0.0001
  Prefactor  = 2.49263
  norm       = 0.0001
  Prefactor  = 49.8817
  Prefactor  = 0.0001
  Prefactor  = 9.49698
  Prefactor  = 0.0001
  Prefactor  = 1.36979
  Prefactor  = 1.54438
  norm       = 2.33423
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 7.1462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.73868
  Prefactor  = 0.0001
  Prefactor  = 2.85593
  Prefactor  = 2.36165
  Prefactor  = 17.6739
  Prefactor  = 0.0001
  Normalizat = 1.17111
  Prefactor  = 1.05606
 **********
 **   18 **HESSE 
 **********

 FCN=   6917.738     FROM HESSE     STATUS=OK           397 CALLS     3126 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.070        40.626        .71882E-04   -1.4593    
   2  Prefactor     .10000E-03    .87297        .75537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4926        65.453        .25793E-03   -1.5392    
   4  norm          .10000E-03    1.4992        .15423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.882        53.315        .56782E-04   -1.4294    
   6  Prefactor     .10000E-03    51.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4970        10.018        .13003E-03   -1.5092    
   8  Prefactor     .10000E-03    24.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3698        109.70        .36512E-03   -1.5474    
  10  Prefactor     1.5444        3.8383        .24635E-03   -1.5459    
  11  norm          2.3342        2.8509        .15139E-03   -1.5402    
  12  Prefactor     .10000E-03    3.0613        .14198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1462        8.1953        .15002E-03   -1.5173    
  15  Prefactor     .10000E-03    2.5681        .12931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7387        5.7623        .16767E-03   -1.5229    
  18  Prefactor     .10000E-03    3.6996        .22351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8559        6.5382        .24050E-03   -1.5370    
  20  Prefactor     2.3617        87.228        .26633E-03   -1.5401    
  21  Prefactor     17.674        15.497        .95261E-04   -1.4867    
  22  Prefactor     .10000E-03    44.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1711        .26335        .29270E-03   -.87500    
  24  Prefactor     1.0561        .16302        .20506E-03   -.90883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03808e-09
Minuit parameter uncertainties:
  1  40.6619
  2  7.90286e-06
  3  25.5766
  4  1.41165e-06
  5  53.3656
  6  0.000265166
  7  10.0202
  8  2.76748e-05
  9  24.5622
  10  3.8389
  11  2.85102
  12  6.59062e-06
  13  0.000925196
  14  8.19662
  15  1.87493e-05
  16  0.00026354
  17  5.7629
  18  3.71453e-05
  19  6.53985
  20  28.7503
  21  15.5002
  22  0.000214474
  23  0.263648
  24  0.163094
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.544e+00  3.839e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.056e+00  1.631e-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.171e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/85154/likelihoodResults_669859201_670118401_4FGL_J2135.3-5006_daily_bin1661.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) = 6917.73348911
delta logL = 0.00443863296732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6917.73254202
delta logL = 0.00538572670121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3767       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6055       1.0000          .0000       10.000    
     3 'Normalizat'    1.1685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0573       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=   6917.733     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      221 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3768        48.736        .92799E-02    .79019E-03
   2  Index         2.6056        2.1937        .45705        .12937E-04
   3  Normalizat    1.1685        .26697E-01    .66225E-01    .12704E-04
   4  Prefactor     1.0573        .17912E-01    .39500E-01    .40381E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.37676
  Index      = 2.60558
  Normalizat = 1.16852
  Prefactor  = 1.05729
 **********
 **   18 **HESSE 
 **********

 FCN=   6917.733     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3768        4.1723        .22581E-03   -1.5473    
   2  Index         2.6056        1.8212        .84556E-02   -.49938    
   3  Normalizat    1.1685        .23757        .29298E-03   -.87581    
   4  Prefactor     1.0573        .15877        .20496E-03   -.90843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77215e-11
Minuit parameter uncertainties:
  1  4.17317
  2  1.87798
  3  0.237789
  4  0.158845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85154': 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) = 6917.73254201
delta logL = 0.00538573652102

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.377e+00  4.173e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.606e+00  1.878e+00  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.057e+00  1.588e-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.169e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/85154/cmap_HighResolution_669859201_670118401_4FGL_J2135.3-5006_daily_bin1661.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2022-03-28 00:53:26.576918', job_id='85154', GAL2='1.06', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1648454006.58', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.39e-03', ts2='0.21', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1661' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 28 00:53:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 85154: <4FGL_J2135.3-5006_daily_bin1661> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1661> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 28 00:40:23 2022
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 28 00:40:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 28 00:40:25 2022
Terminated at Mon Mar 28 00:53:27 2022
Results reported at Mon Mar 28 00:53:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1661 323.836 -50.1015 669859201 670118401 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 :                                   698.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

