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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1662
RA = 359.817, Dec = -31.5832
tmin = 670118401, tmax = 670377601
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='125182', job_status='RUN', time_executed='2022-03-31 00:39:09.178454', time_epoch_executed='1648712349.18' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125182/ft1_4FGL_J2359.2-3134_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125182/ft2_4FGL_J2359.2-3134_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125182/ft1_4FGL_J2359.2-3134_daily_bin1662.fits outfile=/scratch/kocevski/125182/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1662.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=670118401.0 tmax=670377601.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.46
user 3.18
sys 0.21

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

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

Number of photons that the gtmktime cut: 454

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/125182/ft2_4FGL_J2359.2-3134_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/125182/ltcube_670118401_670377601_4FGL_J2359.2-3134_daily_bin1662.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/125182/ft2_4FGL_J2359.2-3134_daily_bin1662.fits
.....................!
real 11.71
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/125182/ft2_4FGL_J2359.2-3134_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/125182/ltcube_670118401_670377601_4FGL_J2359.2-3134_daily_bin1662.fits outfile=/scratch/kocevski/125182/expmap_670118401_670377601_4FGL_J2359.2-3134_daily_bin1662.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/125182/ltcube_670118401_670377601_4FGL_J2359.2-3134_daily_bin1662.fits
.....................!
real 191.54
user 186.84
sys 4.33

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/125182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1662.fits scfile=/scratch/kocevski/125182/ft2_4FGL_J2359.2-3134_daily_bin1662.fits outfile=/scratch/kocevski/125182/cmap_670118401_670377601_4FGL_J2359.2-3134_daily_bin1662.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1662.fits scfile=/scratch/kocevski/125182/ft2_4FGL_J2359.2-3134_daily_bin1662.fits outfile=/scratch/kocevski/125182/cmap_HighResolution_670118401_670377601_4FGL_J2359.2-3134_daily_bin1662.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.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/125182/ft2_4FGL_J2359.2-3134_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125182/Model_4FGL_J2359.2-3134_daily_bin1662.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/125182/ft1_filtered_4FGL_J2359.2-3134_daily_bin1662.fits.....................!
real 40.36
user 39.00
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3419       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.220       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2447       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8510       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.675       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.855       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .33269       1.0000         .10000E-03   10000.    
    14 'norm      '    6.7534       1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.762       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1197       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.342       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .39499E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83329       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0258       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=   5056.890     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2364 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3413        21.631       -.12976E-05   -.34888E-04
   2  Prefactor     2.8640        3.5691       -.11813E-06   -.39153E-03
   3  Prefactor     .10000E-03    7.6900       -.16141E-05** at limit **
   4  Prefactor     .10000E-03    15.935       -.73545E-05** at limit **
   5  Prefactor     .10000E-03    12.636        .85837E-05** at limit **
   6  Prefactor     49.222        37.532        .16922E-05   -.36044E-04
   7  norm          2.2433        6.7338       -.13302E-05   -.51137E-03
   8  Prefactor     7.8494        10.700       -.58028E-06   -.11425E-03
   9  norm          .10000E-03    4.6125        .18309E-06** at limit **
  10  norm          14.674        8.6131       -.33331E-07   -.97499E-04
  11  Prefactor     28.841        33.657       -.15348E-04   -.18957E-03
  12  Prefactor     .10000E-03    16.362       -.76899E-05** at limit **
  13  norm          .32242        3.6595        .21057E-05   -.88765E-03
  14  norm          6.7531        4.4089        .15105E-05   -.99258E-04
  15  Prefactor     47.760        35.673       -.18208E-05   -.23036E-04
  16  norm          4.1170        4.1875        .79641E-06   -.64122E-03
  17  Prefactor     .10000E-03    29.226        .25773E-04** at limit **
  18  Prefactor     19.340        48.379       -.52274E-05   -.20419E-04
  19  Prefactor     .10002E-03    3.6266        .24756E-05** at limit **
  20  Prefactor     .10000E-03    39.724       -.21511E-04** at limit **
  21  Normalizat    .83328        .17748        .72850E-06   -.28233E-03
  22  Prefactor     1.0259        .19590        .36673E-07   -.17517E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.34125
  Prefactor  = 2.86398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.222
  norm       = 2.24333
  Prefactor  = 7.84942
  norm       = 0.0001
  norm       = 14.6745
  Prefactor  = 28.8411
  Prefactor  = 0.0001
  norm       = 0.322418
  norm       = 6.75314
  Prefactor  = 47.7601
  norm       = 4.11698
  Prefactor  = 0.0001
  Prefactor  = 19.3396
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Normalizat = 0.833276
  Prefactor  = 1.02586
 **********
 **   18 **HESSE 
 **********

 FCN=   5056.890     FROM HESSE     STATUS=OK           344 CALLS     2708 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3413        21.624        .17388E-03   -1.5246    
   2  Prefactor     2.8640        3.5617        .14176E-03   -1.5369    
   3  Prefactor     .10000E-03    7.6918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.222        37.541        .57159E-04   -1.4304    
   7  norm          2.2433        6.7670        .27430E-03   -1.5408    
   8  Prefactor     7.8494        10.718        .14311E-03   -1.5148    
   9  norm          .10000E-03    4.7427        .29566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.674        8.6135        .10455E-03   -1.4942    
  11  Prefactor     28.841        33.633        .74583E-04   -1.4633    
  12  Prefactor     .10000E-03    16.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .32242        7.8406        .23108E-02   -1.5594    
  14  norm          6.7531        4.4010        .11187E-03   -1.5188    
  15  Prefactor     47.760        35.682        .58021E-04   -1.4325    
  16  norm          4.1170        4.1338        .13475E-03   -1.5302    
  17  Prefactor     .10000E-03    29.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.340        48.363        .91069E-04   -1.4828    
  19  Prefactor     .10002E-03    8.1109        .25854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .83328        .20873        .23130E-03   -.98846    
  22  Prefactor     1.0259        .23146        .24312E-03   -.91872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71268e-09
Minuit parameter uncertainties:
  1  21.5073
  2  3.56199
  3  6.85268e-07
  4  5.37384e-05
  5  1.31378e-05
  6  37.559
  7  6.76926
  8  10.7204
  9  6.09022e-05
  10  8.61419
  11  33.6549
  12  7.2228e-07
  13  3.17987
  14  4.40117
  15  35.6977
  16  4.13404
  17  6.65533e-08
  18  48.4616
  19  0.000832737
  20  4.24523e-06
  21  0.20893
  22  0.231687
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  4.245e-06  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:  1.026e+00  2.317e-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:  8.333e-01  2.089e-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: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125182/likelihoodResults_670118401_670377601_4FGL_J2359.2-3134_daily_bin1662.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) = 5056.89055199
delta logL = -0.000119715380606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5056.89043293
delta logL = -6.53940332995e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0423       1.0000          .0000       10.000    
     3 'Normalizat'    .83327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0259       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=   5056.890     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      275 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10633E-03    23.030        .18142E-01** at limit **
   2  Index         2.9067        7.1943        .50000        .87431E-05
   3  Normalizat    .83328        .35634E-02    .23130E-03   -.78004E-04
   4  Prefactor     1.0259        .41380E-02    .24312E-03   -.21557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106335
  Index      = 2.90671
  Normalizat = 0.833276
  Prefactor  = 1.02586
 **********
 **   18 **HESSE 
 **********

 FCN=   5056.890     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10633E-03    163.94        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9067        6.2803        .50000       -.43197    
   3  Normalizat    .83328        .94631E-02    .92519E-05   -.98846    
   4  Prefactor     1.0259        .10989E-01    .97247E-05   -.91872    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.04593e-09
Minuit parameter uncertainties:
  1  0.0646299
  2  517.015
  3  0.00946307
  4  0.0109891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125182': 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) = 5056.89043273
delta logL = -4.55319423054e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.063e-04  6.463e-02  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.907e+00  5.170e+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:  1.026e+00  1.099e-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:  8.333e-01  9.463e-03  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/125182/cmap_HighResolution_670118401_670377601_4FGL_J2359.2-3134_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2022-03-31 00:48:48.941955', job_id='125182', GAL2='1.03', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1648712928.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='-4.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1662' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:48:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 125182: <4FGL_J2359.2-3134_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:44 2022
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:45 2022
Terminated at Thu Mar 31 00:48:49 2022
Results reported at Thu Mar 31 00:48:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1662 359.817 -31.5832 670118401 670377601 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 :                                   582.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

