/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 107 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2359.2-3134_daily_bin430
RA = 359.817, Dec = -31.5832
tmin = 350784001, tmax = 351043201
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='245777', job_status='RUN', time_executed='2021-09-30 12:07:31.493467', time_epoch_executed='1633028851.49' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245777/ft1_4FGL_J2359.2-3134_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245777/ft2_4FGL_J2359.2-3134_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245777/ft1_4FGL_J2359.2-3134_daily_bin430.fits outfile=/scratch/kocevski/245777/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin430.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=350784001.0 tmax=351043201.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.41
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245777/ft1_filtered_4FGL_J2359.2-3134_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/245777/ft2_4FGL_J2359.2-3134_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/245777/ltcube_350784001_351043201_4FGL_J2359.2-3134_daily_bin430.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/245777/ft2_4FGL_J2359.2-3134_daily_bin430.fits
.....................!
real 11.84
user 11.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245777/ft1_filtered_4FGL_J2359.2-3134_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/245777/ft2_4FGL_J2359.2-3134_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/245777/ltcube_350784001_351043201_4FGL_J2359.2-3134_daily_bin430.fits outfile=/scratch/kocevski/245777/expmap_350784001_351043201_4FGL_J2359.2-3134_daily_bin430.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/245777/ltcube_350784001_351043201_4FGL_J2359.2-3134_daily_bin430.fits
.....................!
real 193.96
user 187.47
sys 5.43

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/245777/ft1_filtered_4FGL_J2359.2-3134_daily_bin430.fits scfile=/scratch/kocevski/245777/ft2_4FGL_J2359.2-3134_daily_bin430.fits outfile=/scratch/kocevski/245777/cmap_350784001_351043201_4FGL_J2359.2-3134_daily_bin430.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/245777/ft1_filtered_4FGL_J2359.2-3134_daily_bin430.fits scfile=/scratch/kocevski/245777/ft2_4FGL_J2359.2-3134_daily_bin430.fits outfile=/scratch/kocevski/245777/cmap_HighResolution_350784001_351043201_4FGL_J2359.2-3134_daily_bin430.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/245777/ft1_filtered_4FGL_J2359.2-3134_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/245777/ft2_4FGL_J2359.2-3134_daily_bin430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/245777/Model_4FGL_J2359.2-3134_daily_bin430.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/245777/ft1_filtered_4FGL_J2359.2-3134_daily_bin430.fits.....................!
real 50.65
user 49.17
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9167       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.752       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1480       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1996       1.0000         .10000E-03   10000.    
     9 'norm      '    6.7190       1.0000         .10000E-03   10000.    
    10 'norm      '    .24866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.798       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4001       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0669       1.0000         .10000E-03   10000.    
    16 'norm      '    .81246       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.790       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87979       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87502       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=   7017.523     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2340 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.063        .71186E-05** at limit **
   2  Prefactor     .10000E-03    1.3875        .54129E-07** at limit **
   3  Prefactor     6.1694        9.5957       -.35858E-06    .30452E-05
   4  Prefactor     .10000E-03    2.6926       -.13503E-07** at limit **
   5  Prefactor     4.9051        19.187       -.12074E-04    .66094E-04
   6  Prefactor     18.751        19.126        .63449E-06    .10727E-04
   7  norm          1.1484        2.6903       -.47485E-06   -.89665E-03
   8  Prefactor     5.1994        4.8984        .15352E-05   -.25690E-03
   9  norm          6.7190        4.0782       -.58250E-06    .31376E-03
  10  norm          .25066        5.1677       -.18821E-05    .16927E-03
  11  Prefactor     .10000E-03    15.465       -.60248E-05** at limit **
  12  Prefactor     .10000E-03    42.570        .16322E-04** at limit **
  13  norm          20.798        4.9416        .11281E-05   -.93099E-04
  14  norm          3.4001        2.3410       -.23029E-07   -.91638E-04
  15  Prefactor     8.0668        13.608       -.53589E-08   -.16216E-04
  16  norm          .81235        2.0014       -.12944E-05   -.13694E-02
  17  Prefactor     19.784        56.654       -.12265E-04    .50921E-04
  18  Prefactor     .10000E-03    11.032        .28587E-06** at limit **
  19  Prefactor     .10000E-03    3.3607        .36916E-06** at limit **
  20  Prefactor     .10000E-03    44.737       -.15552E-04** at limit **
  21  Normalizat    .87983        .13045        .43333E-06    .22551E-03
  22  Prefactor     .87496        .15128        .27808E-06    .19193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.1694
  Prefactor  = 0.0001
  Prefactor  = 4.90507
  Prefactor  = 18.7509
  norm       = 1.14835
  Prefactor  = 5.19936
  norm       = 6.71901
  norm       = 0.250658
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 20.7979
  norm       = 3.40014
  Prefactor  = 8.06675
  norm       = 0.81235
  Prefactor  = 19.7839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.879828
  Prefactor  = 0.874959
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.523     FROM HESSE     STATUS=OK           348 CALLS     2688 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1544        .18982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1694        9.5527        .16161E-03   -1.5211    
   4  Prefactor     .10000E-03    2.6978        .13424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9051        19.194        .18139E-03   -1.5265    
   6  Prefactor     18.751        19.114        .92491E-04   -1.4842    
   7  norm          1.1484        2.6532        .20565E-03   -1.5494    
   8  Prefactor     5.1994        4.8868        .17418E-03   -1.5252    
   9  norm          6.7190        4.0748        .12730E-03   -1.5189    
  10  norm          .25066        33.179        .36197E-02   -1.5608    
  11  Prefactor     .10000E-03    15.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.798        4.9561        .86553E-04   -1.4796    
  14  norm          3.4001        2.3368        .10274E-03   -1.5339    
  15  Prefactor     8.0668        13.593        .14116E-03   -1.5140    
  16  norm          .81235        1.9972        .18290E-03   -1.5528    
  17  Prefactor     19.784        56.612        .90034E-04   -1.4818    
  18  Prefactor     .10000E-03    11.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4312        .14980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87983        .15518        .20757E-03   -.97173    
  22  Prefactor     .87496        .18092        .24184E-03   -.97022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52897e-09
Minuit parameter uncertainties:
  1  0.000191868
  2  1.53831e-05
  3  9.55503
  4  7.62875e-07
  5  19.2185
  6  19.1206
  7  2.65348
  8  4.88719
  9  4.07494
  10  5.76982
  11  0.000104237
  12  0.00078254
  13  4.95623
  14  2.33685
  15  13.5979
  16  1.99732
  17  56.766
  18  2.8988e-06
  19  6.21036e-06
  20  0.000738916
  21  0.15526
  22  0.181048
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.750e-01  1.810e-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:  8.798e-01  1.553e-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.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245777/likelihoodResults_350784001_351043201_4FGL_J2359.2-3134_daily_bin430.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) = 7017.52295597
delta logL = -0.000106682743535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7017.52284932
delta logL = -3.19623723044e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9679       1.0000          .0000       10.000    
     3 'Normalizat'    .87983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87496       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=   7017.523     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      267 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    321.40        .18142E-02** at limit **
   2  Index         2.9312        6.6004        .50000        .27555E-05
   3  Normalizat    .87983        .86923E-02    .20757E-03   -.44364E-05
   4  Prefactor     .87496        .10160E-01    .24184E-03   -.61583E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100551
  Index      = 2.93124
  Normalizat = 0.879828
  Prefactor  = 0.874958
 **********
 **   18 **HESSE 
 **********

 FCN=   7017.523     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10055E-03    1389.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9312        6.3732        .50000       -.42657    
   3  Normalizat    .87983        .18943E-01    .83027E-05   -.97173    
   4  Prefactor     .87496        .22142E-01    .96734E-05   -.97022    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24596e-09
Minuit parameter uncertainties:
  1  0.0567053
  2  1084.27
  3  0.0189434
  4  0.0221424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245777': 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) = 7017.5228493
delta logL = -1.22363417177e-08

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.006e-04  5.671e-02  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.931e+00  1.084e+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:  8.750e-01  2.214e-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:  8.798e-01  1.894e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/245777/cmap_HighResolution_350784001_351043201_4FGL_J2359.2-3134_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-30 12:19:08.939450', job_id='245777', GAL2='0.87', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1633029548.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-1.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='430' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:19:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 245777: <4FGL_J2359.2-3134_daily_bin430> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin430> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:05:34 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:05:36 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:05:36 2021
Terminated at Thu Sep 30 12:19:09 2021
Results reported at Thu Sep 30 12:19:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin430 359.817 -31.5832 350784001 351043201 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 :                                   694.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

