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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1158
RA = 359.817, Dec = -31.5832
tmin = 539481601, tmax = 539740801
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='249015', job_status='RUN', time_executed='2021-09-30 12:17:50.616671', time_epoch_executed='1633029470.62' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249015/ft1_4FGL_J2359.2-3134_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249015/ft1_4FGL_J2359.2-3134_daily_bin1158.fits outfile=/scratch/kocevski/249015/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1158.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=539481601.0 tmax=539740801.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 5.17
user 4.88
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.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/249015/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1158.fits evtable="EVENTS" outfile="/scratch/kocevski/249015/ft1_filtered_4FGL_J2359.2-3134_daily_bin1158.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.55
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249015/ft1_filtered_4FGL_J2359.2-3134_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/249015/ltcube_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.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/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits
.....................!
real 12.12
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249015/ft1_filtered_4FGL_J2359.2-3134_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/249015/ltcube_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.fits outfile=/scratch/kocevski/249015/expmap_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.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/249015/ltcube_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.fits
.....................!
real 190.22
user 185.46
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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J2359.2-3134 @ 359.817 -31.5832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/249015/ft1_filtered_4FGL_J2359.2-3134_daily_bin1158.fits scfile=/scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits outfile=/scratch/kocevski/249015/cmap_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.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=359.817 yref=-31.5832 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249015/ft1_filtered_4FGL_J2359.2-3134_daily_bin1158.fits scfile=/scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits outfile=/scratch/kocevski/249015/cmap_HighResolution_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.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=359.817 yref=-31.5832 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/249015/ft1_filtered_4FGL_J2359.2-3134_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/249015/Model_4FGL_J2359.2-3134_daily_bin1158.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/249015/ft1_filtered_4FGL_J2359.2-3134_daily_bin1158.fits.....................!
real 44.00
user 42.64
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/249015/ft1_filtered_4FGL_J2359.2-3134_daily_bin1158.fits', '/scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits', expMap='/scratch/kocevski/249015/expmap_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.fits', expCube='/scratch/kocevski/249015/ltcube_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/249015/Model_4FGL_J2359.2-3134_daily_bin1158.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2359.2-3134'

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  8.155e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/249015/ft1_filtered_4FGL_J2359.2-3134_daily_bin1158.fits
Spacecraft file(s): /scratch/kocevski/249015/ft2_4FGL_J2359.2-3134_daily_bin1158.fits
Exposure map: /scratch/kocevski/249015/expmap_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.fits
Exposure cube: /scratch/kocevski/249015/ltcube_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/249015/Model_4FGL_J2359.2-3134_daily_bin1158.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) = 5513.84327255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13835E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .94516       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8975       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.773       1.0000         .10000E-03   10000.    
     7 'norm      '    7.6414       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.4733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.333       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.942       1.0000         .10000E-03   10000.    
    13 'norm      '    .10551E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0124       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.161       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.675       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17908E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2333       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .54195       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5513.820     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2383 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.252        .13313E-05** at limit **
   2  Prefactor     .94482        2.2185        .92820E-06    .39440E-04
   3  Prefactor     .10000E-03    5.6849        .26193E-07** at limit **
   4  Prefactor     9.8988        10.869       -.62832E-07   -.78753E-05
   5  Prefactor     .10000E-03    8.4093        .89651E-07** at limit **
   6  Prefactor     12.773        16.161        .29205E-07    .18250E-05
   7  norm          7.6417        5.5059        .30988E-07   -.14349E-05
   8  Prefactor     .10000E-03    3.0376        .19518E-06** at limit **
   9  norm          .10000E-03    1.5149        .44108E-07** at limit **
  10  norm          5.4745        5.6936        .44578E-07    .13505E-04
  11  Prefactor     41.334        33.710       -.37873E-07   -.69129E-07
  12  Prefactor     27.907        47.936       -.33151E-06   -.44698E-05
  13  norm          .10000E-03    1.7356        .16262E-06** at limit **
  14  norm          1.0106        2.2322        .11168E-05    .46877E-03
  15  Prefactor     27.176        25.943       -.91330E-06   -.12397E-04
  16  norm          8.3800        3.8172        .11508E-07    .77990E-05
  17  Prefactor     10.529        253.60       -.39163E-05   -.68099E-05
  18  Prefactor     .10000E-03    16.946       -.26060E-06** at limit **
  19  Prefactor     .10000E-03    2.1877        .25800E-06** at limit **
  20  Prefactor     .10000E-03    14.601       -.36062E-07** at limit **
  21  Normalizat    1.2330        .17129        .11038E-05   -.27563E-03
  22  Prefactor     .54224        .18839       -.27357E-05    .74297E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.944822
  Prefactor  = 0.0001
  Prefactor  = 9.89882
  Prefactor  = 0.0001
  Prefactor  = 12.7734
  norm       = 7.64171
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.47448
  Prefactor  = 41.3345
  Prefactor  = 27.9072
  norm       = 0.0001
  norm       = 1.01057
  Prefactor  = 27.1763
  norm       = 8.38002
  Prefactor  = 10.5286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23305
  Prefactor  = 0.542238
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.820     FROM HESSE     STATUS=OK           348 CALLS     2731 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94482        2.0320        .16806E-02   -1.5514    
   3  Prefactor     .10000E-03    5.6867        .17290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8988        10.870        .12737E-03   -1.5079    
   5  Prefactor     .10000E-03    8.4120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.773        16.160        .11208E-03   -1.4993    
   7  norm          7.6417        5.5049        .14327E-03   -1.5155    
   8  Prefactor     .10000E-03    3.0488        .12633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5155        .89236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4745        5.6875        .17175E-03   -1.5240    
  11  Prefactor     41.334        33.542        .62351E-04   -1.4421    
  12  Prefactor     27.907        48.009        .75789E-04   -1.4651    
  13  norm          .10000E-03    1.7401        .94994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0106        2.0922        .17532E-02   -1.5507    
  15  Prefactor     27.176        25.797        .76870E-04   -1.4665    
  16  norm          8.3800        3.8166        .93631E-04   -1.5129    
  17  Prefactor     10.529        256.82        .12263E-03   -1.5059    
  18  Prefactor     .10000E-03    16.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3177        .21192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2330        .18922        .18872E-03   -.85588    
  22  Prefactor     .54224        .20483        .30540E-03   -1.1008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61074e-10
Minuit parameter uncertainties:
  1  0.000235381
  2  2.0321
  3  8.40347e-06
  4  10.8717
  5  5.30825e-06
  6  16.1652
  7  5.50529
  8  7.24295e-06
  9  7.17625e-07
  10  5.68802
  11  33.5571
  12  48.0755
  13  3.615e-06
  14  2.09237
  15  25.8072
  16  3.81666
  17  104.506
  18  2.11943e-05
  19  9.28217e-05
  20  1.14034e-05
  21  0.189328
  22  0.205111
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  1.140e-05  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  5.422e-01  2.051e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.233e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 5.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/249015/likelihoodResults_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.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) = 5513.82007694
delta logL = -0.000325807144691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.81975105
delta logL = 8.27139956527e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5513.820     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.683        .90712E-02** at limit **
   2  Index         2.4878        6.0806        .50000        .38363E-05
   3  Normalizat    1.2331        .15896        .34126E-01   -.10795E-05
   4  Prefactor     .54223        .17769        .68997E-01    .28630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48782
  Normalizat = 1.23305
  Prefactor  = 0.542233
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.820     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4878        6.2431        .50000       -.52641    
   3  Normalizat    1.2331        .18210        .18872E-03   -.85588    
   4  Prefactor     .54223        .20309        .30540E-03   -1.1008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49843e-11
Minuit parameter uncertainties:
  1  6.5921e-06
  2  4.40174
  3  0.182189
  4  0.203362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249015': 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) = 5513.81975102
delta logL = 1.07263076643e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  6.592e-06  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.488e+00  4.402e+00  0.000e+00  1.000e+01 (-1.000e+00)
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  5.422e-01  2.034e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.233e+00  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 359.817 -31.583

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/249015/cmap_HighResolution_539481601_539740801_4FGL_J2359.2-3134_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.14e-03', job_status='DONE', photon_flux_upper_limit='5.29e-08', time_completed='2021-09-30 12:28:46.217286', job_id='249015', GAL2='0.54', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1633030126.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1158' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:28:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 249015: <4FGL_J2359.2-3134_daily_bin1158> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1158> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:16:04 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:16:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 12:16:07 2021
Terminated at Thu Sep 30 12:28:46 2021
Results reported at Thu Sep 30 12:28:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1158 359.817 -31.5832 539481601 539740801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.2-3134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   628.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            762 sec.

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

