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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin580
RA = 359.817, Dec = -31.5832
tmin = 389664001, tmax = 389923201
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='247020', job_status='RUN', time_executed='2021-09-30 12:12:46.808082', time_epoch_executed='1633029166.81' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/247020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/247020/ft1_4FGL_J2359.2-3134_daily_bin580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/247020/ft2_4FGL_J2359.2-3134_daily_bin580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/247020/ft1_4FGL_J2359.2-3134_daily_bin580.fits outfile=/scratch/kocevski/247020/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin580.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=389664001.0 tmax=389923201.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 4.86
user 4.59
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/247020/ft2_4FGL_J2359.2-3134_daily_bin580.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/247020/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin580.fits evtable="EVENTS" outfile="/scratch/kocevski/247020/ft1_filtered_4FGL_J2359.2-3134_daily_bin580.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/247020/ft1_filtered_4FGL_J2359.2-3134_daily_bin580.fits" evtable="EVENTS" scfile=/scratch/kocevski/247020/ft2_4FGL_J2359.2-3134_daily_bin580.fits sctable="SC_DATA" outfile=/scratch/kocevski/247020/ltcube_389664001_389923201_4FGL_J2359.2-3134_daily_bin580.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/247020/ft2_4FGL_J2359.2-3134_daily_bin580.fits
.....................!
real 11.64
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/247020/ft1_filtered_4FGL_J2359.2-3134_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/247020/ft2_4FGL_J2359.2-3134_daily_bin580.fits sctable="SC_DATA" expcube=/scratch/kocevski/247020/ltcube_389664001_389923201_4FGL_J2359.2-3134_daily_bin580.fits outfile=/scratch/kocevski/247020/expmap_389664001_389923201_4FGL_J2359.2-3134_daily_bin580.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/247020/ltcube_389664001_389923201_4FGL_J2359.2-3134_daily_bin580.fits
.....................!
real 190.52
user 185.58
sys 4.52

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J2359.2-3134 @ 359.817 -31.5832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/247020/ft1_filtered_4FGL_J2359.2-3134_daily_bin580.fits scfile=/scratch/kocevski/247020/ft2_4FGL_J2359.2-3134_daily_bin580.fits outfile=/scratch/kocevski/247020/cmap_389664001_389923201_4FGL_J2359.2-3134_daily_bin580.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/247020/ft1_filtered_4FGL_J2359.2-3134_daily_bin580.fits evtable="EVENTS" scfile=/scratch/kocevski/247020/ft2_4FGL_J2359.2-3134_daily_bin580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/247020/Model_4FGL_J2359.2-3134_daily_bin580.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/247020/ft1_filtered_4FGL_J2359.2-3134_daily_bin580.fits....................!
real 35.28
user 34.01
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3130       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7751       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.257       1.0000         .10000E-03   10000.    
     7 'norm      '    7.5210       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2838       1.0000         .10000E-03   10000.    
     9 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.8153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    84.387       1.0000         .10000E-03   10000.    
    13 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4933       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.5845       1.0000         .10000E-03   10000.    
    17 'Prefactor '    71.967       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97344       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98219       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=   3868.942     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2395 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.370        .12841E-06** at limit **
   2  Prefactor     2.3146        5.4417        .97523E-06   -.36256E-05
   3  Prefactor     .10000E-03    14.050        .40180E-07** at limit **
   4  Prefactor     .10000E-03    7.6947        .20195E-06** at limit **
   5  Prefactor     2.7231        73.981        .23698E-05    .45212E-05
   6  Prefactor     32.274        40.009        .86880E-07    .10471E-04
   7  norm          7.5212        5.7200        .11916E-07   -.12818E-05
   8  Prefactor     4.2819        12.949        .75161E-06   -.12717E-05
   9  norm          .10000E-03    3.4196        .88202E-07** at limit **
  10  norm          4.8156        11.431        .73620E-05   -.28891E-04
  11  Prefactor     .10000E-03    26.104        .89233E-07** at limit **
  12  Prefactor     84.365        72.263       -.20690E-05   -.29212E-04
  13  norm          .10000E-03    3.4305        .13167E-06** at limit **
  14  norm          2.4929        4.2747        .21200E-06    .13953E-05
  15  Prefactor     .10000E-03    14.923       -.73709E-06** at limit **
  16  norm          6.5852        5.1985       -.25367E-07   -.38683E-04
  17  Prefactor     71.713        98.939       -.88100E-06   -.82008E-04
  18  Prefactor     .10000E-03    38.277       -.40359E-06** at limit **
  19  Prefactor     .10000E-03    5.8608        .23565E-06** at limit **
  20  Prefactor     .10000E-03    190.84        .39111E-06** at limit **
  21  Normalizat    .97305        .21082        .48389E-06   -.10237E-03
  22  Prefactor     .98276        .22695       -.22590E-05   -.61448E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.31462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72314
  Prefactor  = 32.2739
  norm       = 7.52118
  Prefactor  = 4.28192
  norm       = 0.0001
  norm       = 4.81556
  Prefactor  = 0.0001
  Prefactor  = 84.3646
  norm       = 0.0001
  norm       = 2.49294
  Prefactor  = 0.0001
  norm       = 6.58516
  Prefactor  = 71.7135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.973052
  Prefactor  = 0.982762
 **********
 **   18 **HESSE 
 **********

 FCN=   3868.942     FROM HESSE     STATUS=OK           342 CALLS     2737 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.3146        5.4416        .20545E-03   -1.5404    
   3  Prefactor     .10000E-03    14.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7056        .16852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7231        73.673        .24429E-03   -1.5378    
   6  Prefactor     32.274        39.900        .70551E-04   -1.4571    
   7  norm          7.5212        5.7215        .12623E-03   -1.5159    
   8  Prefactor     4.2819        12.986        .19465E-03   -1.5294    
   9  norm          .10000E-03    3.4377        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8156        11.445        .91666E-03   -1.5269    
  11  Prefactor     .10000E-03    26.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     84.365        72.444        .43729E-04   -1.3868    
  13  norm          .10000E-03    3.4653        .11239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4929        4.2598        .16191E-03   -1.5392    
  15  Prefactor     .10000E-03    14.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.5852        5.1930        .12165E-03   -1.5195    
  17  Prefactor     71.713        99.303        .23662E-03   -1.4012    
  18  Prefactor     .10000E-03    38.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9543        .14697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    194.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97305        .24859        .23046E-03   -.93939    
  22  Prefactor     .98276        .26571        .25486E-03   -.93306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53145e-10
Minuit parameter uncertainties:
  1  7.59834e-06
  2  5.44275
  3  4.54426e-06
  4  1.74532e-06
  5  28.3664
  6  39.9333
  7  5.72195
  8  12.9944
  9  1.55777e-06
  10  11.4506
  11  1.44691e-05
  12  72.5203
  13  7.92161e-06
  14  4.26036
  15  4.91471e-06
  16  5.19339
  17  99.5336
  18  4.36075e-06
  19  1.86155e-06
  20  3.93704e-05
  21  0.248886
  22  0.26606
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  3.937e-05  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:  9.828e-01  2.661e-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.731e-01  2.489e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/247020/likelihoodResults_389664001_389923201_4FGL_J2359.2-3134_daily_bin580.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) = 3868.94179027
delta logL = -2.43372405748e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3868.9090274
delta logL = 0.0327385336582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0182       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8028       1.0000          .0000       10.000    
     3 'Normalizat'    .95619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99311       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3868.909     FROM MIGRAD    STATUS=FAILED        85 CALLS      313 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0215        36.875        .23360E-03    .49643E-03
   2  Index         3.7989        3.6173        .68959E-02    .36695E-03
   3  Normalizat    .95600        .24510        .23230E-03    .20512E-02
   4  Prefactor     .99337        .26649        .25364E-03    .13842E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3868.909     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      396 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0215        36.875        .51443E-03   -1.5360    
   2  Index         3.7989        3.6173        .34991E-02   -.24259    
   3  Normalizat    .95600        .24510        .30552E-03   -.94519    
   4  Prefactor     .99337        .26649        .33238E-03   -.92951    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3868.909     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      423 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0248        27.339        .93441E-05    .50078E-03
   2  Index         3.7981        3.2107        .27584E-03    .50221E-04
   3  Normalizat    .95599        .24551        .46459E-04    .56272E-03
   4  Prefactor     .99337        .26679        .50729E-04    .37110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02475
  Index      = 3.79814
  Normalizat = 0.955994
  Prefactor  = 0.993371
 **********
 **   18 **HESSE 
 **********

 FCN=   3868.909     FROM HESSE     STATUS=OK            23 CALLS      446 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0248        27.106        .18688E-05   -1.5360    
   2  Index         3.7981        3.1999        .55167E-04   -.24275    
   3  Normalizat    .95599        .24556        .92918E-05   -.94520    
   4  Prefactor     .99337        .26684        .10146E-04   -.92951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30823e-09
Minuit parameter uncertainties:
  1  18.1203
  2  3.49402
  3  0.245846
  4  0.267195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/247020': 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) = 3868.90902529
delta logL = 0.0327406422894

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  3.025e+00  1.812e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.798e+00  3.494e+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:  9.934e-01  2.672e-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.560e-01  2.458e-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/247020/cmap_HighResolution_389664001_389923201_4FGL_J2359.2-3134_daily_bin580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-30 12:21:39.355509', job_id='247020', GAL2='0.99', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1633029699.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.27e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='580' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:21:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 247020: <4FGL_J2359.2-3134_daily_bin580> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin580> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 12:10:17 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:10:19 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:10:19 2021
Terminated at Thu Sep 30 12:21:40 2021
Results reported at Thu Sep 30 12:21:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin580 359.817 -31.5832 389664001 389923201 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 :                                   532.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            683 sec.

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

