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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1612
RA = 359.817, Dec = -31.5832
tmin = 657158401, tmax = 657417601
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='506936', job_status='RUN', time_executed='2021-12-08 09:53:14.493827', time_epoch_executed='1638985994.49' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506936

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506936/ft1_4FGL_J2359.2-3134_daily_bin1612.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506936/ft1_4FGL_J2359.2-3134_daily_bin1612.fits outfile=/scratch/kocevski/506936/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1612.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=657158401.0 tmax=657417601.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.72
user 3.45
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.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/506936/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1612.fits evtable="EVENTS" outfile="/scratch/kocevski/506936/ft1_filtered_4FGL_J2359.2-3134_daily_bin1612.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506936/ft1_filtered_4FGL_J2359.2-3134_daily_bin1612.fits" evtable="EVENTS" scfile=/scratch/kocevski/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.fits sctable="SC_DATA" outfile=/scratch/kocevski/506936/ltcube_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.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/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.fits
.....................!
real 14.05
user 13.65
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506936/ft1_filtered_4FGL_J2359.2-3134_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.fits sctable="SC_DATA" expcube=/scratch/kocevski/506936/ltcube_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.fits outfile=/scratch/kocevski/506936/expmap_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.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/506936/ltcube_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.fits
.....................!
real 190.65
user 185.71
sys 4.52

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/506936/ft1_filtered_4FGL_J2359.2-3134_daily_bin1612.fits scfile=/scratch/kocevski/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.fits outfile=/scratch/kocevski/506936/cmap_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506936/ft1_filtered_4FGL_J2359.2-3134_daily_bin1612.fits scfile=/scratch/kocevski/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.fits outfile=/scratch/kocevski/506936/cmap_HighResolution_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506936/ft1_filtered_4FGL_J2359.2-3134_daily_bin1612.fits evtable="EVENTS" scfile=/scratch/kocevski/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506936/Model_4FGL_J2359.2-3134_daily_bin1612.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/506936/ft1_filtered_4FGL_J2359.2-3134_daily_bin1612.fits.....................!
real 46.06
user 44.69
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/506936/ft1_filtered_4FGL_J2359.2-3134_daily_bin1612.fits', '/scratch/kocevski/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.fits', expMap='/scratch/kocevski/506936/expmap_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.fits', expCube='/scratch/kocevski/506936/ltcube_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/506936/Model_4FGL_J2359.2-3134_daily_bin1612.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/506936/ft1_filtered_4FGL_J2359.2-3134_daily_bin1612.fits
Spacecraft file(s): /scratch/kocevski/506936/ft2_4FGL_J2359.2-3134_daily_bin1612.fits
Exposure map: /scratch/kocevski/506936/expmap_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.fits
Exposure cube: /scratch/kocevski/506936/ltcube_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/506936/Model_4FGL_J2359.2-3134_daily_bin1612.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) = 6140.80355723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39982E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .90056       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.280       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.334       1.0000         .10000E-03   10000.    
     7 'norm      '    9.4638       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.889       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.2433       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.866       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28757E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75233       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86594       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=   6140.788     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2398 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10208E-03    25.285       -.41363E-05** at limit **
   2  Prefactor     .90440        3.3795        .20305E-05   -.33229E-04
   3  Prefactor     18.226        22.923       -.31459E-06    .10741E-03
   4  Prefactor     .10000E-03    3.8999       -.32428E-07** at limit **
   5  Prefactor     .10000E-03    4.9337       -.10141E-06** at limit **
   6  Prefactor     18.335        22.503       -.46874E-07   -.13802E-04
   7  norm          9.4639        4.9785        .31478E-06    .29650E-03
   8  Prefactor     12.889        7.2475        .19778E-07   -.56194E-04
   9  norm          .10000E-03    1.0494        .55724E-09** at limit **
  10  norm          5.2440        6.4777       -.68722E-06   -.38152E-03
  11  Prefactor     .10000E-03    21.771        .25507E-06** at limit **
  12  Prefactor     .10000E-03    10.808       -.99282E-08** at limit **
  13  norm          .10000E-03    1.4527        .26367E-07** at limit **
  14  norm          .10000E-03    1.6984        .34299E-07** at limit **
  15  Prefactor     .10000E-03    15.975        .40068E-07** at limit **
  16  norm          .10000E-03    1.3387        .26237E-07** at limit **
  17  Prefactor     .10000E-03    33.366       -.46413E-06** at limit **
  18  Prefactor     16.862        19.822        .55943E-06    .48113E-04
  19  Prefactor     .10000E-03    2.5216        .93579E-07** at limit **
  20  Prefactor     .10004E-03    120.43        .16690E-04** at limit **
  21  Normalizat    .75236        .13072       -.91682E-06   -.16161E-03
  22  Prefactor     .86586        .14784        .17190E-06   -.18158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102077
  Prefactor  = 0.904401
  Prefactor  = 18.2259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3354
  norm       = 9.46389
  Prefactor  = 12.8888
  norm       = 0.0001
  norm       = 5.24399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8621
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Normalizat = 0.752358
  Prefactor  = 0.865857
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.788     FROM HESSE     STATUS=OK           344 CALLS     2742 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10208E-03    165.03        .64920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .90440        3.6563        .22264E-03   -1.5518    
   3  Prefactor     18.226        23.709        .93677E-04   -1.4854    
   4  Prefactor     .10000E-03    3.9118        .15112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9344        .17000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.335        22.505        .93539E-04   -1.4851    
   7  norm          9.4639        4.9892        .12282E-03   -1.5093    
   8  Prefactor     12.889        7.2520        .11157E-03   -1.4990    
   9  norm          .10000E-03    1.0497        .78397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.2440        6.5269        .17554E-03   -1.5250    
  11  Prefactor     .10000E-03    21.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4834        .92211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.7599        .19938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3533        .88526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.862        19.818        .97523E-04   -1.4886    
  19  Prefactor     .10000E-03    4.8851        .23888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    124.54        .42815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75236        .15493        .20352E-03   -1.0186    
  22  Prefactor     .86586        .17639        .22275E-03   -.97345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20695e-08
Minuit parameter uncertainties:
  1  0.0371278
  2  3.6371
  3  23.7208
  4  2.62731e-06
  5  6.43658e-06
  6  22.5158
  7  4.98946
  8  7.25246
  9  1.99824e-07
  10  6.52779
  11  5.12815e-05
  12  4.77325e-06
  13  2.98185e-06
  14  2.77039e-06
  15  1.17763e-05
  16  2.45833e-06
  17  8.15582e-05
  18  19.8256
  19  5.19495e-05
  20  0.00446543
  21  0.155024
  22  0.176506
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  4.465e-03  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:  8.659e-01  1.765e-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:  7.524e-01  1.550e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506936/likelihoodResults_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.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) = 6140.78763696
delta logL = -3.79054799851e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6140.78760053
delta logL = -1.47348873725e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26769E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7808       1.0000          .0000       10.000    
     3 'Normalizat'    .75235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86586       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6140.788     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      278 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11514E-03    268.51        .42874E-02** at limit **
   2  Index         2.6852        5.9624        .50000        .85377E-05
   3  Normalizat    .75236        .52232E-02    .20352E-03   -.32009E-04
   4  Prefactor     .86586        .61368E-02    .22275E-03   -.39758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000115135
  Index      = 2.68522
  Normalizat = 0.752358
  Prefactor  = 0.865857
 **********
 **   18 **HESSE 
 **********

 FCN=   6140.788     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11514E-03    1141.1        .85749E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6852        6.5324        .50000       -.48133    
   3  Normalizat    .75236        .11003E-01    .81406E-05   -1.0186    
   4  Prefactor     .86586        .12927E-01    .89101E-05   -.97345    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.45325e-09
Minuit parameter uncertainties:
  1  0.268112
  2  693.362
  3  0.0110029
  4  0.0129275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506936': 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) = 6140.78759925
delta logL = -1.94241692952e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.151e-04  2.681e-01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.685e+00  6.934e+02  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:  8.659e-01  1.293e-02  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:  7.524e-01  1.100e-02  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/506936/cmap_HighResolution_657158401_657417601_4FGL_J2359.2-3134_daily_bin1612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-12-08 10:04:08.599572', job_id='506936', GAL2='0.87', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1638986648.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-1.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1612' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 10:04:08 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 506936: <4FGL_J2359.2-3134_daily_bin1612> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1612> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 09:50:25 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:51:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:51:44 2021
Terminated at Wed Dec  8 10:04:09 2021
Results reported at Wed Dec  8 10:04:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1612 359.817 -31.5832 657158401 657417601 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 :                                   653.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            824 sec.

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

