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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1115
RA = 359.817, Dec = -31.5832
tmin = 528336001, tmax = 528595201
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='248950', job_status='RUN', time_executed='2021-09-30 12:19:59.829929', time_epoch_executed='1633029599.83' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248950/ft1_4FGL_J2359.2-3134_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248950/ft2_4FGL_J2359.2-3134_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248950/ft1_4FGL_J2359.2-3134_daily_bin1115.fits outfile=/scratch/kocevski/248950/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1115.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=528336001.0 tmax=528595201.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.42
user 3.19
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/248950/ft2_4FGL_J2359.2-3134_daily_bin1115.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/248950/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1115.fits evtable="EVENTS" outfile="/scratch/kocevski/248950/ft1_filtered_4FGL_J2359.2-3134_daily_bin1115.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248950/ft1_filtered_4FGL_J2359.2-3134_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/248950/ft2_4FGL_J2359.2-3134_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/248950/ltcube_528336001_528595201_4FGL_J2359.2-3134_daily_bin1115.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/248950/ft2_4FGL_J2359.2-3134_daily_bin1115.fits
.....................!
real 11.76
user 11.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248950/ft1_filtered_4FGL_J2359.2-3134_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/248950/ft2_4FGL_J2359.2-3134_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/248950/ltcube_528336001_528595201_4FGL_J2359.2-3134_daily_bin1115.fits outfile=/scratch/kocevski/248950/expmap_528336001_528595201_4FGL_J2359.2-3134_daily_bin1115.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/248950/ltcube_528336001_528595201_4FGL_J2359.2-3134_daily_bin1115.fits
.....................!
real 191.38
user 185.59
sys 5.47

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/248950/ft1_filtered_4FGL_J2359.2-3134_daily_bin1115.fits scfile=/scratch/kocevski/248950/ft2_4FGL_J2359.2-3134_daily_bin1115.fits outfile=/scratch/kocevski/248950/cmap_528336001_528595201_4FGL_J2359.2-3134_daily_bin1115.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248950/ft1_filtered_4FGL_J2359.2-3134_daily_bin1115.fits scfile=/scratch/kocevski/248950/ft2_4FGL_J2359.2-3134_daily_bin1115.fits outfile=/scratch/kocevski/248950/cmap_HighResolution_528336001_528595201_4FGL_J2359.2-3134_daily_bin1115.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248950/ft1_filtered_4FGL_J2359.2-3134_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/248950/ft2_4FGL_J2359.2-3134_daily_bin1115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248950/Model_4FGL_J2359.2-3134_daily_bin1115.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/248950/ft1_filtered_4FGL_J2359.2-3134_daily_bin1115.fits.....................!
real 37.77
user 36.52
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.606       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.935       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35739E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    16.321       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9891       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.8947       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.258       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.625       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7143       1.0000         .10000E-03   10000.    
    14 'norm      '    12.728       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.591       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2099       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7372       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6222       1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.474       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98641       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .62874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4412.170     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2075 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.552        7.9678       -.71369E-06    .21935E-02
   2  Prefactor     .10000E-03    1.1666        .68824E-06** at limit **
   3  Prefactor     .10000E-03    5.5540       -.77695E-06** at limit **
   4  Prefactor     15.926        13.412       -.32570E-05    .24587E-05
   5  Prefactor     .10000E-03    17.519       -.21949E-05** at limit **
   6  Prefactor     .10050E-03    703.87       -.28761E-04** at limit **
   7  norm          16.319        7.2709        .67507E-05    .80529E-03
   8  Prefactor     2.9661        2.3232        .16653E-05   -.11007E-02
   9  norm          .10000E-03    2.0205        .50786E-06** at limit **
  10  norm          6.8924        9.4838        .51912E-05    .27770E-03
  11  Prefactor     32.238        3.0713       -.23281E-06   -.72439E-04
  12  Prefactor     37.605        2.8963        .30954E-06   -.28532E-02
  13  norm          4.7143        4.5341        .93843E-06   -.21601E-04
  14  norm          12.730        5.9693        .37783E-06    .86825E-04
  15  Prefactor     36.537        7.7295       -.45761E-06   -.13922E-02
  16  norm          3.2097        3.0442       -.50625E-07    .12249E-03
  17  Prefactor     .10000E-03    129.00        .33980E-05** at limit **
  18  Prefactor     9.7046        4.5634        .23781E-06   -.16547E-02
  19  Prefactor     7.6185        6.9453        .16371E-05   -.18564E-04
  20  Prefactor     68.410        9.2869       -.69477E-06    .13326E-02
  21  Normalizat    .98718        .21128       -.10234E-04    .61606E-04
  22  Prefactor     .62808        .22740        .25260E-05    .37412E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.5524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9262
  Prefactor  = 0.000100001
  Prefactor  = 0.0001005
  norm       = 16.3186
  Prefactor  = 2.96606
  norm       = 0.0001
  norm       = 6.89237
  Prefactor  = 32.238
  Prefactor  = 37.6046
  norm       = 4.71432
  norm       = 12.7302
  Prefactor  = 36.5369
  norm       = 3.20967
  Prefactor  = 0.0001
  Prefactor  = 9.70463
  Prefactor  = 7.61846
  Prefactor  = 68.4103
  Normalizat = 0.987181
  Prefactor  = 0.628081
 **********
 **   18 **HESSE 
 **********

 FCN=   4412.170     FROM HESSE     STATUS=OK           402 CALLS     2477 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.552        62.972        .12204E-02   -1.4062    
   2  Prefactor     .10000E-03    1.1614        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.5538        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.926        13.482        .25083E-02   -1.4910    
   5  Prefactor     .10000E-03    17.638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10050E-03    26.394        .11692       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.319        7.2989        .24785E-02   -1.4900    
   8  Prefactor     2.9661        9.4512        .58702E-02   -1.5364    
   9  norm          .10000E-03    2.0209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.8924        9.5589        .38199E-02   -1.5183    
  11  Prefactor     32.238        52.704        .17637E-02   -1.4572    
  12  Prefactor     37.605        35.786        .16335E-02   -1.4481    
  13  norm          4.7143        5.3515        .46332E-02   -1.5274    
  14  norm          12.730        6.6413        .28069E-02   -1.4994    
  15  Prefactor     36.537        49.959        .16563E-02   -1.4498    
  16  norm          3.2097        3.0708        .56533E-02   -1.5350    
  17  Prefactor     .10000E-03    128.87        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7046        66.592        .32105E-02   -1.5085    
  19  Prefactor     7.6185        7.6282        .36313E-02   -1.5156    
  20  Prefactor     68.410        66.273        .12127E-02   -1.4052    
  21  Normalizat    .98718        .18355        .45996E-01   -.93461    
  22  Prefactor     .62808        .19382        .64390E-01   -1.0642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67112e-07
Minuit parameter uncertainties:
  1  63.034
  2  6.38784e-06
  3  1.44134e-05
  4  13.4848
  5  0.00018993
  6  0.00727105
  7  7.29926
  8  9.456
  9  1.98102e-06
  10  9.56098
  11  52.7802
  12  35.8067
  13  5.35205
  14  6.64169
  15  50.0163
  16  3.07099
  17  0.000116158
  18  50.9241
  19  7.62914
  20  66.3446
  21  0.183663
  22  0.194025
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  6.841e+01  6.634e+01  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:  6.281e-01  1.940e-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:  9.872e-01  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.72
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 5.71e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.49e-05

TS (Fixed Index): 1.72
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248950/likelihoodResults_528336001_528595201_4FGL_J2359.2-3134_daily_bin1115.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) = 4411.2774189
delta logL = 0.89242708326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4411.27580023
delta logL = 0.894045751314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.592       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7913       1.0000          .0000       10.000    
     3 'Normalizat'    .92616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67650       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=   4411.276     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      301 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.617        63.617        .84272E-04    .33780E-03
   2  Index         3.7912        1.7629        .44571E-02    .11526E-03
   3  Normalizat    .92591        .21415        .21613E-03   -.53338E-04
   4  Prefactor     .67678        .23144        .27530E-03   -.17443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6168
  Index      = 3.79119
  Normalizat = 0.925913
  Prefactor  = 0.676784
 **********
 **   18 **HESSE 
 **********

 FCN=   4411.276     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.617        38.963        .33709E-05   -1.4756    
   2  Index         3.7912        1.0924        .17828E-03   -.24418    
   3  Normalizat    .92591        .21434        .86451E-05   -.95555    
   4  Prefactor     .67678        .23101        .11012E-04   -1.0444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47453e-10
Minuit parameter uncertainties:
  1  39.0066
  2  1.10187
  3  0.214534
  4  0.231337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248950': 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) = 4411.27579857
delta logL = 0.89404741639

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  2.262e+01  3.901e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.791e+00  1.102e+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:  6.768e-01  2.313e-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:  9.259e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.70
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 3.79 +/- 1.10
Photon Flux (Free Index): 1.06e-07 +/- 6.59e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.04e-05

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/248950/cmap_HighResolution_528336001_528595201_4FGL_J2359.2-3134_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='1.65e-05', photon_flux_error='5.71e-08', dlogl='8.94e-01', energy_flux='1.54e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-30 12:29:29.034493', photon_index_error2='1.10', photon_index2='3.79', ts='1.72', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.04e-05', EG='0.99', time_epoch_completed='1633030169.03', return_code='0', job_id='248950', GAL2='0.68', EG2='0.93', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.59e-08', ts2='3.70', photon_index='2.60' WHERE bin_id='1115' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:29:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 248950: <4FGL_J2359.2-3134_daily_bin1115> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1115> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:15:57 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:15:58 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:15:58 2021
Terminated at Thu Sep 30 12:29:29 2021
Results reported at Thu Sep 30 12:29:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1115 359.817 -31.5832 528336001 528595201 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 :                                   541.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             220.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            812 sec.

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

