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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1644
RA = 359.817, Dec = -31.5832
tmin = 665452801, tmax = 665712001
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='576049', job_status='RUN', time_executed='2022-02-05 00:57:43.683783', time_epoch_executed='1644051463.68' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576049

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576049/ft1_4FGL_J2359.2-3134_daily_bin1644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576049/ft2_4FGL_J2359.2-3134_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576049/ft1_4FGL_J2359.2-3134_daily_bin1644.fits outfile=/scratch/kocevski/576049/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1644.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=665452801.0 tmax=665712001.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.68
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576049/ft1_filtered_4FGL_J2359.2-3134_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/576049/ft2_4FGL_J2359.2-3134_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/576049/ltcube_665452801_665712001_4FGL_J2359.2-3134_daily_bin1644.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/576049/ft2_4FGL_J2359.2-3134_daily_bin1644.fits
.....................!
real 12.73
user 12.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576049/ft1_filtered_4FGL_J2359.2-3134_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/576049/ft2_4FGL_J2359.2-3134_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/576049/ltcube_665452801_665712001_4FGL_J2359.2-3134_daily_bin1644.fits outfile=/scratch/kocevski/576049/expmap_665452801_665712001_4FGL_J2359.2-3134_daily_bin1644.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/576049/ltcube_665452801_665712001_4FGL_J2359.2-3134_daily_bin1644.fits
.....................!
real 192.39
user 186.78
sys 4.98

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/576049/ft1_filtered_4FGL_J2359.2-3134_daily_bin1644.fits scfile=/scratch/kocevski/576049/ft2_4FGL_J2359.2-3134_daily_bin1644.fits outfile=/scratch/kocevski/576049/cmap_665452801_665712001_4FGL_J2359.2-3134_daily_bin1644.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576049/ft1_filtered_4FGL_J2359.2-3134_daily_bin1644.fits scfile=/scratch/kocevski/576049/ft2_4FGL_J2359.2-3134_daily_bin1644.fits outfile=/scratch/kocevski/576049/cmap_HighResolution_665452801_665712001_4FGL_J2359.2-3134_daily_bin1644.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=359.817 yref=-31.5832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6302       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3615       1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.940       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4261       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0212       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.8071       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.020       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.310       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4042       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15682E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.248       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18873       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.605       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2321       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65377       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=   4992.979     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2381 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4906        267.55       -.19528E-04   -.36066E-04
   2  Prefactor     .10000E-03    2.5947        .47758E-06** at limit **
   3  Prefactor     .10000E-03    13.691        .10495E-06** at limit **
   4  Prefactor     10.708        15.067       -.27328E-06   -.42839E-04
   5  Prefactor     1.3709        85.543        .15366E-05    .44063E-05
   6  Prefactor     52.927        39.638       -.12246E-05   -.73386E-04
   7  norm          1.4266        5.5479        .27266E-05    .16989E-03
   8  Prefactor     1.0244        6.4315        .33789E-05    .18631E-03
   9  norm          .10000E-03    1.6959        .89017E-07** at limit **
  10  norm          8.8080        7.2058        .12800E-06    .10922E-04
  11  Prefactor     47.025        42.337       -.37157E-06   -.57734E-06
  12  Prefactor     .10000E-03    20.145        .39485E-06** at limit **
  13  norm          .10000E-03    1.5200        .22674E-06** at limit **
  14  norm          .10000E-03    2.3136       -.61412E-07** at limit **
  15  Prefactor     26.296        34.204        .37130E-06   -.27588E-05
  16  norm          1.4041        1.9785        .50217E-08   -.30566E-04
  17  Prefactor     .10000E-03    120.26        .15341E-05** at limit **
  18  Prefactor     16.246        32.834        .43521E-06    .14796E-04
  19  Prefactor     .19195        4.9595       -.17790E-05    .10556E-02
  20  Prefactor     33.589        53.931        .13595E-06    .99488E-04
  21  Normalizat    1.2322        .19932        .30099E-05   -.26954E-03
  22  Prefactor     .65359        .20870       -.68912E-05   -.94585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.49058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7084
  Prefactor  = 1.3709
  Prefactor  = 52.9273
  norm       = 1.42663
  Prefactor  = 1.02442
  norm       = 0.0001
  norm       = 8.808
  Prefactor  = 47.0249
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.2958
  norm       = 1.40407
  Prefactor  = 0.000100001
  Prefactor  = 16.2463
  Prefactor  = 0.191945
  Prefactor  = 33.5891
  Normalizat = 1.23219
  Prefactor  = 0.653586
 **********
 **   18 **HESSE 
 **********

 FCN=   4992.979     FROM HESSE     STATUS=OK           350 CALLS     2731 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4906        278.54        .25144E-02   -1.5392    
   2  Prefactor     .10000E-03    4.4331        .21375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.708        15.067        .12243E-03   -1.5053    
   5  Prefactor     1.3709        86.724        .37423E-03   -1.5474    
   6  Prefactor     52.927        39.498        .55124E-04   -1.4252    
   7  norm          1.4266        5.6348        .31674E-03   -1.5469    
   8  Prefactor     1.0244        6.6431        .35052E-03   -1.5506    
   9  norm          .10000E-03    1.6965        .89841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.8080        7.2073        .13506E-03   -1.5114    
  11  Prefactor     47.025        42.257        .58475E-04   -1.4335    
  12  Prefactor     .10000E-03    20.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5234        .84957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3328        .10471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.296        34.231        .78100E-04   -1.4682    
  16  norm          1.4041        1.9508        .11430E-03   -1.5471    
  17  Prefactor     .10000E-03    120.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.246        32.828        .99361E-04   -1.4902    
  19  Prefactor     .19195        41.694        .24969E-02   -1.5620    
  20  Prefactor     33.589        52.964        .69126E-04   -1.4548    
  21  Normalizat    1.2322        .22080        .19892E-03   -.85614    
  22  Prefactor     .65359        .22648        .29236E-03   -1.0537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0494e-08
Minuit parameter uncertainties:
  1  52.9302
  2  5.55865e-05
  3  2.08265e-05
  4  15.0724
  5  21.8397
  6  39.5177
  7  5.63694
  8  5.218
  9  2.56854e-06
  10  7.20804
  11  42.2835
  12  3.40481e-05
  13  6.01979e-06
  14  1.27859e-06
  15  34.2565
  16  1.95086
  17  0.000554698
  18  32.8649
  19  5.66041
  20  53.0382
  21  0.220964
  22  0.226796
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  3.359e+01  5.304e+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:  6.536e-01  2.268e-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.232e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/576049/likelihoodResults_665452801_665712001_4FGL_J2359.2-3134_daily_bin1644.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) = 4992.48571552
delta logL = 0.493053023884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4992.46392309
delta logL = 0.514845452236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.326       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9243       1.0000          .0000       10.000    
     3 'Normalizat'    1.1869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68935       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4992.464     FROM MIGRAD    STATUS=FAILED       103 CALLS      330 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.288        381.76        .62346E-03   -.35211E-04
   2  Index         3.9274        6.9022        .58008E-02    .34509E-03
   3  Normalizat    1.1870        .19644        .20203E-03   -.30950E-04
   4  Prefactor     .68933        .21706        .28534E-03   -.10678E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4992.464     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      412 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.288        381.76        .42048E-03   -.35211E-04
   2  Index         3.9274        6.9022        .16050E-02    .34509E-03
   3  Normalizat    1.1870        .19644        .20395E-03   -.30950E-04
   4  Prefactor     .68933        .21706        .32851E-03   -.10678E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4992.464     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      452 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.288        29.853        .24939E-04   -.32822E-04
   2  Index         3.9274        1.7809        .11602E-02   -.80157E-05
   3  Normalizat    1.1870        .21099        .80811E-05   -.29262E-04
   4  Prefactor     .68933        .22791        .11414E-04   -.99607E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2885
  Index      = 3.92739
  Normalizat = 1.18698
  Prefactor  = 0.689335
 **********
 **   18 **HESSE 
 **********

 FCN=   4992.464     FROM HESSE     STATUS=OK            23 CALLS      475 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.288        26.830        .99754E-06   -1.5066    
   2  Index         3.9274        1.6070        .46407E-04   -.21620    
   3  Normalizat    1.1870        .21072        .16162E-05   -.87006    
   4  Prefactor     .68933        .22755        .22827E-05   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6845e-12
Minuit parameter uncertainties:
  1  26.861
  2  1.63753
  3  0.210868
  4  0.22786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576049': 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) = 4992.46392033
delta logL = 0.514848208554

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.029e+01  2.686e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.927e+00  1.638e+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:  6.893e-01  2.279e-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.187e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 3.93 +/- 1.64
Photon Flux (Free Index): 5.94e-08 +/- 5.35e-08
Energy Flux (Free Index): 9.01e-06 +/- 8.30e-06

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/576049/cmap_HighResolution_665452801_665712001_4FGL_J2359.2-3134_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', comment='SUCCESS', energy_flux2='9.01e-06', dlogl='5.15e-01', photon_flux2='5.94e-08', job_status='DONE', time_completed='2022-02-05 01:07:44.570061', photon_index_error2='1.64', photon_index2='3.93', ts='0.55', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='8.30e-06', EG='1.23', time_epoch_completed='1644052064.57', return_code='0', job_id='576049', GAL2='0.69', EG2='1.19', return_code2='0', photon_flux_error2='5.35e-08', ts2='1.66', photon_index='2.60' WHERE bin_id='1644' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 01:07:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 576049: <4FGL_J2359.2-3134_daily_bin1644> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1644> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Feb  5 00:55:38 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:56:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:56:01 2022
Terminated at Sat Feb  5 01:07:45 2022
Results reported at Sat Feb  5 01:07:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1644 359.817 -31.5832 665452801 665712001 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 :                                   603.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            727 sec.

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

