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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1640
RA = 359.817, Dec = -31.5832
tmin = 664416001, tmax = 664675201
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='285059', job_status='RUN', time_executed='2022-01-24 00:42:02.525201', time_epoch_executed='1643013722.53' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285059/ft1_4FGL_J2359.2-3134_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285059/ft2_4FGL_J2359.2-3134_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285059/ft1_4FGL_J2359.2-3134_daily_bin1640.fits outfile=/scratch/kocevski/285059/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1640.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=664416001.0 tmax=664675201.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.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285059/ft1_filtered_4FGL_J2359.2-3134_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/285059/ft2_4FGL_J2359.2-3134_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/285059/ltcube_664416001_664675201_4FGL_J2359.2-3134_daily_bin1640.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/285059/ft2_4FGL_J2359.2-3134_daily_bin1640.fits
.....................!
real 12.58
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285059/ft1_filtered_4FGL_J2359.2-3134_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/285059/ft2_4FGL_J2359.2-3134_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/285059/ltcube_664416001_664675201_4FGL_J2359.2-3134_daily_bin1640.fits outfile=/scratch/kocevski/285059/expmap_664416001_664675201_4FGL_J2359.2-3134_daily_bin1640.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/285059/ltcube_664416001_664675201_4FGL_J2359.2-3134_daily_bin1640.fits
.....................!
real 192.77
user 187.16
sys 5.28

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/285059/ft1_filtered_4FGL_J2359.2-3134_daily_bin1640.fits scfile=/scratch/kocevski/285059/ft2_4FGL_J2359.2-3134_daily_bin1640.fits outfile=/scratch/kocevski/285059/cmap_664416001_664675201_4FGL_J2359.2-3134_daily_bin1640.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285059/ft1_filtered_4FGL_J2359.2-3134_daily_bin1640.fits scfile=/scratch/kocevski/285059/ft2_4FGL_J2359.2-3134_daily_bin1640.fits outfile=/scratch/kocevski/285059/cmap_HighResolution_664416001_664675201_4FGL_J2359.2-3134_daily_bin1640.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/285059/ft1_filtered_4FGL_J2359.2-3134_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/285059/ft2_4FGL_J2359.2-3134_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/285059/Model_4FGL_J2359.2-3134_daily_bin1640.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/285059/ft1_filtered_4FGL_J2359.2-3134_daily_bin1640.fits.....................!
real 33.75
user 32.51
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.945       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8608       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74151       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.075       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .58633       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.088       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.540       1.0000         .10000E-03   10000.    
    16 'norm      '    5.0988       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.376       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.851       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2072       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84628       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=   3752.708     FROM MIGRAD    STATUS=CONVERGED    843 CALLS     2715 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.920        57.503        .11591E-03   -.24521E-06
   2  Prefactor     3.8639        5.0429        .14682E-03    .21913E-04
   3  Prefactor     .10000E-03    10.640        .18142E-02** at limit **
   4  Prefactor     .45212        316.72        .50998E-02    .28813E-04
   5  Prefactor     .10000E-03    21.579        .18142E-02** at limit **
   6  Prefactor     54.052        50.516        .54545E-04   -.35641E-05
   7  norm          .10000E-03    2.6921        .97985E-03** at limit **
   8  Prefactor     .58820        23.831        .35540E-02   -.18521E-03
   9  norm          .10000E-03    2.1975        .88684E-03** at limit **
  10  norm          5.5018        14.964        .85538E-03    .11943E-03
  11  Prefactor     .10000E-03    70.372        .18142E-02** at limit **
  12  Prefactor     .10000E-03    50.754        .18142E-02** at limit **
  13  norm          .10000E-03    2.5198        .94778E-03** at limit **
  14  norm          10.087        8.2690        .12616E-03    .11850E-04
  15  Prefactor     24.494        63.803        .80862E-04    .14622E-04
  16  norm          5.0966        4.7256        .62127E-03    .10162E-03
  17  Prefactor     .10000E-03    113.52        .18142E-02** at limit **
  18  Prefactor     .10000E-03    35.479        .18142E-02** at limit **
  19  Prefactor     13.372        11.658        .10952E-03    .19307E-04
  20  Prefactor     41.784        81.710        .61965E-04    .18475E-04
  21  Normalizat    1.2074        .28794        .22950E-03    .56111E-04
  22  Prefactor     .84651        .28297        .28756E-03    .18617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9201
  Prefactor  = 3.86391
  Prefactor  = 0.0001
  Prefactor  = 0.45212
  Prefactor  = 0.0001
  Prefactor  = 54.0522
  norm       = 0.0001
  Prefactor  = 0.5882
  norm       = 0.0001
  norm       = 5.50182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.0869
  Prefactor  = 24.4936
  norm       = 5.09658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3719
  Prefactor  = 41.7841
  Normalizat = 1.20738
  Prefactor  = 0.846506
 **********
 **   18 **HESSE 
 **********

 FCN=   3752.708     FROM HESSE     STATUS=OK           324 CALLS     3039 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.920        57.495        .46363E-05   -1.5017    
   2  Prefactor     3.8639        5.0415        .58729E-05   -1.5315    
   3  Prefactor     .10000E-03    10.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45212        312.82        .20399E-03   -1.5573    
   5  Prefactor     .10000E-03    21.579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.052        50.480        .10909E-04   -1.4236    
   7  norm          .10000E-03    2.6922        .19597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58820        23.863        .14216E-03   -1.5555    
   9  norm          .10000E-03    2.1975        .17737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5018        14.920        .34215E-04   -1.5239    
  11  Prefactor     .10000E-03    70.378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.5199        .18956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.087        8.2674        .50463E-05   -1.5073    
  15  Prefactor     24.494        63.738        .32345E-05   -1.4718    
  16  norm          5.0966        4.7240        .24851E-04   -1.5256    
  17  Prefactor     .10000E-03    113.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.479        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.372        11.648        .43809E-05   -1.4976    
  20  Prefactor     41.784        81.673        .12393E-04   -1.4414    
  21  Normalizat    1.2074        .28634        .45899E-04   -.86375    
  22  Prefactor     .84651        .28324        .11502E-04   -.98036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31258e-10
Minuit parameter uncertainties:
  1  52.4397
  2  5.04208
  3  2.06774e-05
  4  23.9088
  5  6.08144e-05
  6  50.5203
  7  1.03191e-06
  8  7.49556
  9  9.0368e-07
  10  14.9304
  11  0.000136101
  12  0.000140074
  13  6.9788e-06
  14  8.26835
  15  63.9161
  16  4.7243
  17  0.000310528
  18  0.000116102
  19  11.6496
  20  81.8926
  21  0.286715
  22  0.283733
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  4.178e+01  8.189e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.605e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
592        Scale:  6.631e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.465e-01  2.837e-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:  1.207e+00  2.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/285059/likelihoodResults_664416001_664675201_4FGL_J2359.2-3134_daily_bin1640.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) = 3752.07151332
delta logL = 0.636594846173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3752.05676776
delta logL = 0.65134039944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.692       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2033       1.0000          .0000       10.000    
     3 'Normalizat'    1.1117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91604       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=   3752.057     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      298 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.672        236.96        .10825E-03    .91896E-05
   2  Index         4.2042        6.9699        .51068E-02    .15521E-04
   3  Normalizat    1.1116        .28282        .23739E-03   -.24209E-04
   4  Prefactor     .91616        .29639        .27730E-03    .18613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.672
  Index      = 4.20416
  Normalizat = 1.11163
  Prefactor  = 0.916158
 **********
 **   18 **HESSE 
 **********

 FCN=   3752.057     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.672        34.288        .43299E-05   -1.4968    
   2  Index         4.2042        1.5754        .20427E-03   -.15985    
   3  Normalizat    1.1116        .28132        .94954E-05   -.89379    
   4  Prefactor     .91616        .29122        .11092E-04   -.95579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64772e-11
Minuit parameter uncertainties:
  1  34.3372
  2  1.60346
  3  0.281699
  4  0.291719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285059': 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) = 3752.05676752
delta logL = 0.651340646319

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.367e+01  3.434e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  4.204e+00  1.603e+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.162e-01  2.917e-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:  1.112e+00  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 4.20 +/- 1.60
Photon Flux (Free Index): 1.22e-07 +/- 1.08e-07
Energy Flux (Free Index): 1.77e-05 +/- 1.54e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', energy_flux2='1.77e-05', dlogl='6.51e-01', photon_flux2='1.22e-07', job_status='DONE', time_completed='2022-01-24 00:50:55.661600', photon_index_error2='1.60', photon_index2='4.20', ts='0.38', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='1.54e-05', EG='1.21', time_epoch_completed='1643014255.66', return_code='0', job_id='285059', GAL2='0.92', EG2='1.11', return_code2='0', photon_flux_error2='1.08e-07', ts2='1.84', photon_index='2.60' WHERE bin_id='1640' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:50:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 285059: <4FGL_J2359.2-3134_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1640> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 24 00:40:34 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:40:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:40:36 2022
Terminated at Mon Jan 24 00:50:56 2022
Results reported at Mon Jan 24 00:50:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1640 359.817 -31.5832 664416001 664675201 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 :                                   535.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            622 sec.

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

