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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1449
RA = 359.817, Dec = -31.5832
tmin = 614908801, tmax = 615168001
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='250349', job_status='RUN', time_executed='2021-09-30 12:21:45.797022', time_epoch_executed='1633029705.8' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250349/ft1_4FGL_J2359.2-3134_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250349/ft2_4FGL_J2359.2-3134_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250349/ft1_4FGL_J2359.2-3134_daily_bin1449.fits outfile=/scratch/kocevski/250349/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1449.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=614908801.0 tmax=615168001.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.57
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250349/ft2_4FGL_J2359.2-3134_daily_bin1449.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/250349/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1449.fits evtable="EVENTS" outfile="/scratch/kocevski/250349/ft1_filtered_4FGL_J2359.2-3134_daily_bin1449.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/250349/ft1_filtered_4FGL_J2359.2-3134_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/250349/ft2_4FGL_J2359.2-3134_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/250349/ltcube_614908801_615168001_4FGL_J2359.2-3134_daily_bin1449.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/250349/ft2_4FGL_J2359.2-3134_daily_bin1449.fits
.....................!
real 11.94
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250349/ft1_filtered_4FGL_J2359.2-3134_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/250349/ft2_4FGL_J2359.2-3134_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/250349/ltcube_614908801_615168001_4FGL_J2359.2-3134_daily_bin1449.fits outfile=/scratch/kocevski/250349/expmap_614908801_615168001_4FGL_J2359.2-3134_daily_bin1449.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/250349/ltcube_614908801_615168001_4FGL_J2359.2-3134_daily_bin1449.fits
.....................!
real 190.89
user 185.45
sys 5.13

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/250349/ft1_filtered_4FGL_J2359.2-3134_daily_bin1449.fits scfile=/scratch/kocevski/250349/ft2_4FGL_J2359.2-3134_daily_bin1449.fits outfile=/scratch/kocevski/250349/cmap_614908801_615168001_4FGL_J2359.2-3134_daily_bin1449.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250349/ft1_filtered_4FGL_J2359.2-3134_daily_bin1449.fits scfile=/scratch/kocevski/250349/ft2_4FGL_J2359.2-3134_daily_bin1449.fits outfile=/scratch/kocevski/250349/cmap_HighResolution_614908801_615168001_4FGL_J2359.2-3134_daily_bin1449.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250349/ft1_filtered_4FGL_J2359.2-3134_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/250349/ft2_4FGL_J2359.2-3134_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250349/Model_4FGL_J2359.2-3134_daily_bin1449.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/250349/ft1_filtered_4FGL_J2359.2-3134_daily_bin1449.fits.....................!
real 39.73
user 38.53
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0194       1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.678       1.0000         .10000E-03   10000.    
     7 'norm      '    8.5409       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.421       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3167       1.0000         .10000E-03   10000.    
    10 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.117       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5946       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9527       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.650       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85004       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0181       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=   4756.210     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2350 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.562       -.69051E-06** at limit **
   2  Prefactor     .10009E-03    2.1601       -.47930E-05** at limit **
   3  Prefactor     49.286        27.635        .18019E-04    .71851E-04
   4  Prefactor     3.0196        6.3291       -.61601E-06   -.78304E-04
   5  Prefactor     62.120        41.248       -.16878E-05    .65460E-04
   6  Prefactor     19.681        50.515        .47714E-05   -.42678E-04
   7  norm          8.5410        5.2894        .10794E-06    .80809E-04
   8  Prefactor     12.421        10.520       -.25505E-06   -.57022E-09
   9  norm          3.3163        3.6489       -.16021E-06    .13637E-03
  10  norm          .10000E-03    11.688       -.84063E-06** at limit **
  11  Prefactor     .10000E-03    75.731        .76884E-05** at limit **
  12  Prefactor     18.108        35.302       -.96111E-05    .26591E-03
  13  norm          .10000E-03    2.1452       -.34822E-08** at limit **
  14  norm          2.5923        4.4186        .43221E-06   -.14033E-03
  15  Prefactor     5.9492        77.878       -.58136E-05    .72563E-04
  16  norm          .10000E-03    1.4278       -.78435E-08** at limit **
  17  Prefactor     23.638        94.086       -.21318E-04    .13100E-03
  18  Prefactor     .10000E-03    19.864       -.14773E-05** at limit **
  19  Prefactor     .10000E-03    2.8626       -.66191E-07** at limit **
  20  Prefactor     .10000E-03    14.728        .23802E-05** at limit **
  21  Normalizat    .85001        .18214       -.27912E-06    .95446E-03
  22  Prefactor     1.0182        .20068        .28623E-06    .67658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010009
  Prefactor  = 49.2861
  Prefactor  = 3.01961
  Prefactor  = 62.1195
  Prefactor  = 19.6806
  norm       = 8.54104
  Prefactor  = 12.4206
  norm       = 3.31632
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 18.1083
  norm       = 0.0001
  norm       = 2.59233
  Prefactor  = 5.94915
  norm       = 0.0001
  Prefactor  = 23.6384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.850008
  Prefactor  = 1.0182
 **********
 **   18 **HESSE 
 **********

 FCN=   4756.210     FROM HESSE     STATUS=OK           336 CALLS     2686 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10009E-03    12.999        .18672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.286        27.870        .57144E-04   -1.4303    
   4  Prefactor     3.0196        6.3114        .23356E-03   -1.5360    
   5  Prefactor     62.120        41.185        .50910E-04   -1.4130    
   6  Prefactor     19.681        50.514        .90290E-04   -1.4820    
   7  norm          8.5410        5.2904        .12122E-03   -1.5123    
   8  Prefactor     12.421        10.533        .11366E-03   -1.5003    
   9  norm          3.3163        3.6491        .13483E-03   -1.5344    
  10  norm          .10000E-03    12.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    76.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.108        35.230        .94096E-04   -1.4857    
  13  norm          .10000E-03    2.1694        .98580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5923        4.3131        .15938E-03   -1.5386    
  15  Prefactor     5.9492        74.567        .16458E-03   -1.5220    
  16  norm          .10000E-03    1.4330        .80470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.638        93.529        .82367E-04   -1.4735    
  18  Prefactor     .10000E-03    19.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8796        .11391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85001        .21621        .23074E-03   -.98240    
  22  Prefactor     1.0182        .23880        .24143E-03   -.92125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17047e-09
Minuit parameter uncertainties:
  1  4.26142e-05
  2  0.00216028
  3  27.8776
  4  6.31281
  5  41.2041
  6  50.6241
  7  5.29074
  8  10.535
  9  3.6493
  10  0.000131061
  11  0.00112668
  12  35.2707
  13  1.02365e-06
  14  4.3136
  15  42.1889
  16  8.77523e-08
  17  94.1172
  18  0.000125093
  19  1.33817e-05
  20  0.000208228
  21  0.216433
  22  0.239048
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  2.082e-04  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.018e+00  2.390e-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.500e-01  2.164e-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: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250349/likelihoodResults_614908801_615168001_4FGL_J2359.2-3134_daily_bin1449.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) = 4756.21040554
delta logL = -0.000323654281601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4756.21008436
delta logL = -2.47964999289e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12815E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5860       1.0000          .0000       10.000    
     3 'Normalizat'    .84965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0186       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=   4756.210     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      254 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.276        .18142E-01** at limit **
   2  Index         2.1093        8.3086        .50000        .36152E-07
   3  Normalizat    .85000        .76900E-02    .23074E-03   -.11928E-03
   4  Prefactor     1.0182        .87790E-02    .24143E-03   -.11405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10926
  Normalizat = 0.850003
  Prefactor  = 1.01821
 **********
 **   18 **HESSE 
 **********

 FCN=   4756.210     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    366.18        .28475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1093        8.9402        .50000       -.61646    
   3  Normalizat    .85000        .19728E-01    .92295E-05   -.98240    
   4  Prefactor     1.0182        .22522E-01    .96571E-05   -.92125    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.10157e-11
Minuit parameter uncertainties:
  1  8.64925e-05
  2  1067.41
  3  0.0197286
  4  0.0225222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250349': 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) = 4756.21008128
delta logL = 6.01843566983e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  8.649e-05  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.109e+00  1.067e+03  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.018e+00  2.252e-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.500e-01  1.973e-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/250349/cmap_HighResolution_614908801_615168001_4FGL_J2359.2-3134_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-30 12:32:13.306759', job_id='250349', GAL2='1.02', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1633030333.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='6.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1449' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:32:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 250349: <4FGL_J2359.2-3134_daily_bin1449> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1449> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:20:41 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:20:43 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:20:43 2021
Terminated at Thu Sep 30 12:32:14 2021
Results reported at Thu Sep 30 12:32:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1449 359.817 -31.5832 614908801 615168001 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 :                                   564.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

