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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1588
RA = 359.817, Dec = -31.5832
tmin = 650937601, tmax = 651196801
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='250560', job_status='RUN', time_executed='2021-09-30 12:21:21.044787', time_epoch_executed='1633029681.04' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250560

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250560/ft1_4FGL_J2359.2-3134_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250560/ft2_4FGL_J2359.2-3134_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250560/ft1_4FGL_J2359.2-3134_daily_bin1588.fits outfile=/scratch/kocevski/250560/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1588.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=650937601.0 tmax=651196801.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.59
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250560/ft1_filtered_4FGL_J2359.2-3134_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/250560/ft2_4FGL_J2359.2-3134_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/250560/ltcube_650937601_651196801_4FGL_J2359.2-3134_daily_bin1588.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/250560/ft2_4FGL_J2359.2-3134_daily_bin1588.fits
.....................!
real 11.71
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250560/ft1_filtered_4FGL_J2359.2-3134_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/250560/ft2_4FGL_J2359.2-3134_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/250560/ltcube_650937601_651196801_4FGL_J2359.2-3134_daily_bin1588.fits outfile=/scratch/kocevski/250560/expmap_650937601_651196801_4FGL_J2359.2-3134_daily_bin1588.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/250560/ltcube_650937601_651196801_4FGL_J2359.2-3134_daily_bin1588.fits
.....................!
real 191.88
user 187.49
sys 4.08

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/250560/ft1_filtered_4FGL_J2359.2-3134_daily_bin1588.fits scfile=/scratch/kocevski/250560/ft2_4FGL_J2359.2-3134_daily_bin1588.fits outfile=/scratch/kocevski/250560/cmap_650937601_651196801_4FGL_J2359.2-3134_daily_bin1588.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250560/ft1_filtered_4FGL_J2359.2-3134_daily_bin1588.fits scfile=/scratch/kocevski/250560/ft2_4FGL_J2359.2-3134_daily_bin1588.fits outfile=/scratch/kocevski/250560/cmap_HighResolution_650937601_651196801_4FGL_J2359.2-3134_daily_bin1588.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.838       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11832E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.300       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.716       1.0000         .10000E-03   10000.    
     7 'norm      '    58.535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.680       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11044E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.8865       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.292       1.0000         .10000E-03   10000.    
    16 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    184.02       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.134       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71313       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1738       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=   4048.746     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2313 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.835        42.991       -.54694E-05    .26265E-04
   2  Prefactor     .10000E-03    5.8481        .87405E-06** at limit **
   3  Prefactor     13.291        31.127       -.11608E-04    .38478E-04
   4  Prefactor     .10000E-03    4.5254        .35421E-05** at limit **
   5  Prefactor     11.389        36.943       -.15316E-04    .61879E-04
   6  Prefactor     50.717        52.047        .17425E-05    .16455E-04
   7  norm          58.537        13.169       -.53035E-07   -.26042E-04
   8  Prefactor     .10000E-03    6.2547       -.29217E-06** at limit **
   9  norm          .10000E-03    2.7448       -.25089E-06** at limit **
  10  norm          13.676        13.151       -.36455E-06    .19097E-04
  11  Prefactor     21.316        47.058        .28890E-04    .62786E-04
  12  Prefactor     .10000E-03    56.431       -.88464E-05** at limit **
  13  norm          .10001E-03    4.2988       -.53850E-05** at limit **
  14  norm          7.8859        6.3529       -.47203E-06   -.33425E-06
  15  Prefactor     16.290        52.516       -.33701E-05    .18816E-04
  16  norm          .10000E-03    2.5115       -.32804E-06** at limit **
  17  Prefactor     184.01        185.67       -.52264E-05    .23116E-04
  18  Prefactor     .10000E-03    30.442       -.20864E-04** at limit **
  19  Prefactor     24.135        11.286       -.63133E-07   -.11354E-03
  20  Prefactor     .10000E-03    32.901        .27085E-04** at limit **
  21  Normalizat    .71279        .21935        .86802E-06    .29505E-04
  22  Prefactor     1.1741        .23278        .72997E-06    .59347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8346
  Prefactor  = 0.000100001
  Prefactor  = 13.2912
  Prefactor  = 0.0001
  Prefactor  = 11.3886
  Prefactor  = 50.7169
  norm       = 58.5367
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.6756
  Prefactor  = 21.3156
  Prefactor  = 0.0001
  norm       = 0.000100006
  norm       = 7.88589
  Prefactor  = 16.2903
  norm       = 0.0001
  Prefactor  = 184.009
  Prefactor  = 0.000100003
  Prefactor  = 24.1355
  Prefactor  = 0.000100004
  Normalizat = 0.712788
  Prefactor  = 1.17415
 **********
 **   18 **HESSE 
 **********

 FCN=   4048.746     FROM HESSE     STATUS=OK           340 CALLS     2653 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.835        42.986        .97607E-04   -1.4887    
   2  Prefactor     .10000E-03    6.0327        .29947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.291        31.054        .10983E-03   -1.4979    
   4  Prefactor     .10000E-03    4.5199        .13209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.389        36.845        .11867E-03   -1.5033    
   6  Prefactor     50.717        52.105        .56314E-04   -1.4282    
   7  norm          58.537        13.177        .52438E-04   -1.4176    
   8  Prefactor     .10000E-03    6.2896        .15539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7483        .10295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.676        13.162        .10829E-03   -1.4968    
  11  Prefactor     21.316        47.503        .86788E-04   -1.4784    
  12  Prefactor     .10000E-03    56.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    4.5374        .26072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.8859        6.3399        .13066E-03   -1.5146    
  15  Prefactor     16.290        52.362        .99228E-04   -1.4901    
  16  norm          .10000E-03    2.5226        .98465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     184.01        185.88        .29762E-04   -1.2987    
  18  Prefactor     .10000E-03    30.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.135        11.363        .81538E-04   -1.4725    
  20  Prefactor     .10000E-03    32.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .71279        .26298        .28311E-03   -1.0339    
  22  Prefactor     1.1741        .27967        .25086E-03   -.87131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9919e-09
Minuit parameter uncertainties:
  1  43.0654
  2  0.000113373
  3  31.092
  4  3.98618e-05
  5  36.9189
  6  52.1515
  7  13.1781
  8  5.27413e-07
  9  4.56116e-05
  10  13.1644
  11  47.5877
  12  0.000322641
  13  0.000326755
  14  6.3404
  15  52.5104
  16  5.91401e-05
  17  186.476
  18  0.000621347
  19  11.3636
  20  0.000763567
  21  0.263446
  22  0.280019
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  7.636e-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.174e+00  2.800e-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.128e-01  2.634e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250560/likelihoodResults_650937601_651196801_4FGL_J2359.2-3134_daily_bin1588.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) = 4048.74635476
delta logL = -0.000146269999277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4048.74620854
delta logL = -5.93609001953e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5349       1.0000          .0000       10.000    
     3 'Normalizat'    .71280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1741       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=   4048.681     FROM MIGRAD    STATUS=CONVERGED    167 CALLS      351 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50733        146.60        .26169E-01    .10014E-02
   2  Index         5.3793        5.8898        .20000       -.60539E-04
   3  Normalizat    .67846        .38783        .28311E-03    .28430E-04
   4  Prefactor     1.1990        .13285        .25086E-03    .53644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.507326
  Index      = 5.37933
  Normalizat = 0.67846
  Prefactor  = 1.19897
 **********
 **   18 **HESSE 
 **********

 FCN=   4048.681     FROM HESSE     STATUS=OK            31 CALLS      382 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50733        15.034        .10966E-02   -1.5566    
   2  Index         5.3793        7.2174        .12339E-01    9.3488    
   3  Normalizat    .67846        .26843        .11325E-04   -1.0475    
   4  Prefactor     1.1990        .28640        .50172E-04   -.86363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7732e-11
Minuit parameter uncertainties:
  1  5.52437
  2  6.08885
  3  0.268954
  4  0.286775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250560': 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) = 4048.68125475
delta logL = 0.064953734226

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  5.073e-01  5.524e+00  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  5.379e+00  6.089e+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:  1.199e+00  2.868e-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:  6.785e-01  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/250560/cmap_HighResolution_650937601_651196801_4FGL_J2359.2-3134_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-30 12:30:15.099559', job_id='250560', GAL2='1.20', fit_tolerance='1e-08', EG2='0.68', EG='0.71', time_epoch_completed='1633030215.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='6.50e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1588' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:30:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 250560: <4FGL_J2359.2-3134_daily_bin1588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1588 359.817 -31.5832 650937601 651196801 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 :                                   525.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   555 sec.
    Turnaround time :                            560 sec.

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

