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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1503
RA = 359.817, Dec = -31.5832
tmin = 628905601, tmax = 629164801
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='250435', job_status='RUN', time_executed='2021-09-30 12:22:28.359628', time_epoch_executed='1633029748.36' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250435/ft1_4FGL_J2359.2-3134_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250435/ft2_4FGL_J2359.2-3134_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250435/ft1_4FGL_J2359.2-3134_daily_bin1503.fits outfile=/scratch/kocevski/250435/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1503.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=628905601.0 tmax=629164801.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250435/ft1_filtered_4FGL_J2359.2-3134_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/250435/ft2_4FGL_J2359.2-3134_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/250435/ltcube_628905601_629164801_4FGL_J2359.2-3134_daily_bin1503.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/250435/ft2_4FGL_J2359.2-3134_daily_bin1503.fits
.....................!
real 11.88
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250435/ft1_filtered_4FGL_J2359.2-3134_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/250435/ft2_4FGL_J2359.2-3134_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/250435/ltcube_628905601_629164801_4FGL_J2359.2-3134_daily_bin1503.fits outfile=/scratch/kocevski/250435/expmap_628905601_629164801_4FGL_J2359.2-3134_daily_bin1503.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/250435/ltcube_628905601_629164801_4FGL_J2359.2-3134_daily_bin1503.fits
.....................!
real 190.56
user 185.16
sys 5.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/250435/ft1_filtered_4FGL_J2359.2-3134_daily_bin1503.fits scfile=/scratch/kocevski/250435/ft2_4FGL_J2359.2-3134_daily_bin1503.fits outfile=/scratch/kocevski/250435/cmap_628905601_629164801_4FGL_J2359.2-3134_daily_bin1503.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250435/ft1_filtered_4FGL_J2359.2-3134_daily_bin1503.fits scfile=/scratch/kocevski/250435/ft2_4FGL_J2359.2-3134_daily_bin1503.fits outfile=/scratch/kocevski/250435/cmap_HighResolution_628905601_629164801_4FGL_J2359.2-3134_daily_bin1503.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250435/ft1_filtered_4FGL_J2359.2-3134_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/250435/ft2_4FGL_J2359.2-3134_daily_bin1503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250435/Model_4FGL_J2359.2-3134_daily_bin1503.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/250435/ft1_filtered_4FGL_J2359.2-3134_daily_bin1503.fits.....................!
real 40.79
user 39.58
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.263       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4737       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .96799       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.085       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11428E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.9551       1.0000         .10000E-03   10000.    
    10 'norm      '    12.011       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.797       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8305       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7767       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8218       1.0000         .10000E-03   10000.    
    16 'norm      '    8.8021       1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.946       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9352       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2748       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .56888       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=   4952.958     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2355 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.237        67.125       -.57780E-04    .10849E-04
   2  Prefactor     2.4807        4.4777       -.17285E-05   -.10671E-02
   3  Prefactor     .92850        17.657        .35766E-05   -.59277E-03
   4  Prefactor     .10000E-03    7.2758       -.16565E-06** at limit **
   5  Prefactor     .10000E-03    8.7838        .65983E-07** at limit **
   6  Prefactor     .10000E-03    30.876       -.79510E-06** at limit **
   7  norm          10.084        5.4779       -.35162E-07    .22808E-04
   8  Prefactor     .10061E-03    6.0028       -.25536E-05** at limit **
   9  norm          5.9552        6.2407       -.16249E-05   -.14930E-03
  10  norm          12.011        8.7178       -.87910E-07   -.54702E-05
  11  Prefactor     .10000E-03    74.775        .14083E-04** at limit **
  12  Prefactor     41.788        56.001       -.11704E-04    .13725E-04
  13  norm          2.8251        5.2440       -.69664E-06   -.60048E-03
  14  norm          2.7769        4.3998       -.77779E-06   -.41902E-03
  15  Prefactor     6.8192        24.991       -.37677E-05   -.12809E-04
  16  norm          8.7992        5.4535        .10110E-05   -.15749E-03
  17  Prefactor     64.947        101.74        .57067E-06    .85376E-05
  18  Prefactor     .10000E-03    17.361        .28023E-05** at limit **
  19  Prefactor     3.9345        7.1244       -.12345E-05   -.33955E-03
  20  Prefactor     .10000E-03    17.495       -.28032E-05** at limit **
  21  Normalizat    1.2751        .19306        .50687E-05    .10118E-03
  22  Prefactor     .56857        .19807       -.54684E-06    .23683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2367
  Prefactor  = 2.48072
  Prefactor  = 0.928499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0845
  Prefactor  = 0.000100614
  norm       = 5.95518
  norm       = 12.0113
  Prefactor  = 0.0001
  Prefactor  = 41.7881
  norm       = 2.82507
  norm       = 2.77689
  Prefactor  = 6.81922
  norm       = 8.7992
  Prefactor  = 64.9471
  Prefactor  = 0.0001
  Prefactor  = 3.93448
  Prefactor  = 0.0001
  Normalizat = 1.27506
  Prefactor  = 0.568574
 **********
 **   18 **HESSE 
 **********

 FCN=   4952.958     FROM HESSE     STATUS=OK           350 CALLS     2705 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.237        66.910        .10606E-03   -1.4953    
   2  Prefactor     2.4807        4.6458        .16692E-03   -1.5393    
   3  Prefactor     .92850        119.02        .50010E-02   -1.5515    
   4  Prefactor     .10000E-03    7.3499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.7860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.084        5.4778        .11789E-03   -1.5073    
   8  Prefactor     .10061E-03    77.518        .32345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9552        6.2235        .16187E-03   -1.5220    
  10  norm          12.011        8.7110        .11559E-03   -1.5015    
  11  Prefactor     .10000E-03    74.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.788        56.021        .62005E-04   -1.4414    
  13  norm          2.8251        5.2131        .18533E-03   -1.5372    
  14  norm          2.7769        4.3682        .16946E-03   -1.5375    
  15  Prefactor     6.8192        24.798        .15362E-03   -1.5186    
  16  norm          8.7992        5.4292        .11739E-03   -1.5115    
  17  Prefactor     64.947        101.67        .49798E-04   -1.4094    
  18  Prefactor     .10000E-03    17.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9345        7.1405        .20336E-03   -1.5311    
  20  Prefactor     .10000E-03    17.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2751        .21709        .19883E-03   -.84314    
  22  Prefactor     .56857        .22524        .31504E-03   -1.0893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10306e-08
Minuit parameter uncertainties:
  1  61.8411
  2  4.64649
  3  21.0661
  4  2.87845e-05
  5  1.12487e-05
  6  1.34802e-05
  7  5.47811
  8  0.0138134
  9  6.22419
  10  8.71196
  11  2.72333e-05
  12  56.0915
  13  5.21396
  14  4.36869
  15  24.835
  16  5.42947
  17  101.946
  18  9.50286e-06
  19  7.14201
  20  6.92717e-06
  21  0.217244
  22  0.2256
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  6.927e-06  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:  5.686e-01  2.256e-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.275e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 359.817 -31.583
Photon Flux Upper Limit: 6.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250435/likelihoodResults_628905601_629164801_4FGL_J2359.2-3134_daily_bin1503.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) = 4952.95802839
delta logL = -0.000272139685876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4952.95775814
delta logL = -1.88701324078e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4578       1.0000          .0000       10.000    
     3 'Normalizat'    1.2751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56857       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=   4952.958     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      294 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.731        .18142E-01** at limit **
   2  Index         2.2972        5.1522        .50000       -.11028E-07
   3  Normalizat    1.2751        .94183E-02    .19883E-03    .52889E-03
   4  Prefactor     .56857        .10379E-01    .31504E-03    .34513E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.29719
  Normalizat = 1.27506
  Prefactor  = 0.568571
 **********
 **   18 **HESSE 
 **********

 FCN=   4952.958     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      323 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    610.16        .29365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2972        6.3734        .50000       -.57110    
   3  Normalizat    1.2751        .26017E-01    .39765E-04   -.84314    
   4  Prefactor     .56857        .28671E-01    .12602E-04   -1.0893    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85079e-10
Minuit parameter uncertainties:
  1  0.00027273
  2  1860.98
  3  0.0260177
  4  0.0286719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250435': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4952.95775613
delta logL = 1.21298398881e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  5.686e-01  2.867e-02  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.275e+00  2.602e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.55e-08', time_completed='2021-09-30 12:33:38.040042', job_id='250435', GAL2='0.57', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1633030418.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='1.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1503' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:33:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 250435: <4FGL_J2359.2-3134_daily_bin1503> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1503> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:20:48 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:20:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 12:20:50 2021
Terminated at Thu Sep 30 12:33:38 2021
Results reported at Thu Sep 30 12:33:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1503 359.817 -31.5832 628905601 629164801 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 :                                   576.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

