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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1238
RA = 359.817, Dec = -31.5832
tmin = 560217601, tmax = 560476801
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='250041', job_status='RUN', time_executed='2021-09-30 12:23:40.900239', time_epoch_executed='1633029820.9' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250041/ft1_4FGL_J2359.2-3134_daily_bin1238.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250041/ft2_4FGL_J2359.2-3134_daily_bin1238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250041/ft1_4FGL_J2359.2-3134_daily_bin1238.fits outfile=/scratch/kocevski/250041/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1238.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=560217601.0 tmax=560476801.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.66
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250041/ft1_filtered_4FGL_J2359.2-3134_daily_bin1238.fits" evtable="EVENTS" scfile=/scratch/kocevski/250041/ft2_4FGL_J2359.2-3134_daily_bin1238.fits sctable="SC_DATA" outfile=/scratch/kocevski/250041/ltcube_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.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/250041/ft2_4FGL_J2359.2-3134_daily_bin1238.fits
.....................!
real 11.68
user 11.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250041/ft1_filtered_4FGL_J2359.2-3134_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/250041/ft2_4FGL_J2359.2-3134_daily_bin1238.fits sctable="SC_DATA" expcube=/scratch/kocevski/250041/ltcube_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.fits outfile=/scratch/kocevski/250041/expmap_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.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/250041/ltcube_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.fits
.....................!
real 190.50
user 185.14
sys 5.05

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/250041/ft1_filtered_4FGL_J2359.2-3134_daily_bin1238.fits scfile=/scratch/kocevski/250041/ft2_4FGL_J2359.2-3134_daily_bin1238.fits outfile=/scratch/kocevski/250041/cmap_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250041/ft1_filtered_4FGL_J2359.2-3134_daily_bin1238.fits scfile=/scratch/kocevski/250041/ft2_4FGL_J2359.2-3134_daily_bin1238.fits outfile=/scratch/kocevski/250041/cmap_HighResolution_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.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/250041/ft1_filtered_4FGL_J2359.2-3134_daily_bin1238.fits evtable="EVENTS" scfile=/scratch/kocevski/250041/ft2_4FGL_J2359.2-3134_daily_bin1238.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250041/Model_4FGL_J2359.2-3134_daily_bin1238.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/250041/ft1_filtered_4FGL_J2359.2-3134_daily_bin1238.fits..............................!
real 18.21
user 16.90
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250041/ft1_filtered_4FGL_J2359.2-3134_daily_bin1238.fits', '/scratch/kocevski/250041/ft2_4FGL_J2359.2-3134_daily_bin1238.fits', expMap='/scratch/kocevski/250041/expmap_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.fits', expCube='/scratch/kocevski/250041/ltcube_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250041/Model_4FGL_J2359.2-3134_daily_bin1238.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/250041/ft1_filtered_4FGL_J2359.2-3134_daily_bin1238.fits
Spacecraft file(s): /scratch/kocevski/250041/ft2_4FGL_J2359.2-3134_daily_bin1238.fits
Exposure map: /scratch/kocevski/250041/expmap_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.fits
Exposure cube: /scratch/kocevski/250041/ltcube_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250041/Model_4FGL_J2359.2-3134_daily_bin1238.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 779.460978902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 771.337271085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8999       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80543       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3279       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8542       1.0000         .10000E-03   10000.    
     7 'norm      '    110.71       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0623       1.0000         .10000E-03   10000.    
     9 'norm      '    .51492E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5047       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68930E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .82396E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    82.627       1.0000         .10000E-03   10000.    
    16 'norm      '    .10647       1.0000         .10000E-03   10000.    
    17 'Prefactor '    378.79       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12355       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6390       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.8351       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   771.3271     FROM MIGRAD    STATUS=CONVERGED    222 CALLS      558 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11005E-03    2271.7        .43221E-02** at limit **
   2  Prefactor     10.064        20.221        .31839E-02    .82725E-02
   3  Prefactor     .10639E-03    2055.6        .12460E-01** at limit **
   4  Prefactor     .10000E-03    420.94        .10093E-01** at limit **
   5  Prefactor     1.3279        1.0983         .0000         .0000    
   6  Prefactor     4.8542        1.0054         .0000         .0000    
   7  norm          110.77        1.0003       -.46901E-07    .32780E-02
   8  Prefactor     .10000E-03    .35201        .45865E-04** at limit **
   9  norm          .10000E-03    .21517       -.59245E-05** at limit **
  10  norm          .10000E-03    .20571       -.82988E-06** at limit **
  11  Prefactor     .10015E-03    .72874E-01   -.25521E-04** at limit **
  12  Prefactor     .10000E-03    .27532       -.17849E-05** at limit **
  13  norm          .10000E-03    .22217       -.45378E-05** at limit **
  14  norm          .10000E-03    .20571        .50286E-06** at limit **
  15  Prefactor     82.959        1.0020        .62685E-06    .85624E-03
  16  norm          .10000E-03    .22762       -.97401E-05** at limit **
  17  Prefactor     379.39        1.0008       -.20375E-06   -.73176E-02
  18  Prefactor     .10000E-03    .23150        .67667E-05** at limit **
  19  Prefactor     .10000E-03    .20571       -.13509E-05** at limit **
  20  Prefactor     .10000E-03    .98430E-01   -.30706E-04** at limit **
  21  Normalizat    .10000E-01    .25703        .86144E-04** at limit **
  22  Prefactor     1.8358        1.0264        .39500E-05   -.98500E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110053
  Prefactor  = 10.0637
  Prefactor  = 0.000106395
  Prefactor  = 0.0001
  Prefactor  = 1.32793
  Prefactor  = 4.85416
  norm       = 110.772
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100147
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 82.959
  norm       = 0.0001
  Prefactor  = 379.391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.01
  Prefactor  = 1.83581
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   771.3271     FROM HESSE     STATUS=FAILED        17 CALLS      575 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11005E-03    2271.7        .43221E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.064        20.221        .31839E-02   -1.5073    
   3  Prefactor     .10639E-03    2055.6        .12460E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    420.94        .10093E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     581.19        579.63         .0000       -1.5477    
   6  Prefactor     4.8542        1.0054         .0000       -1.5267    
   7  norm          110.77        1.0003       -.46901E-07   -1.3599    
   8  Prefactor     .10000E-03    .35201        .45865E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .21517       -.59245E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571       -.82988E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10015E-03    .72874E-01   -.25521E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .27532       -.17849E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .22217       -.45378E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .20571        .50286E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     82.959        1.0020        .62685E-06   -1.3884    
  16  norm          .10000E-03    .22762       -.97401E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     379.39        1.0008       -.20375E-06   -1.1787    
  18  Prefactor     .10000E-03    .23150        .67667E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571       -.13509E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .98430E-01   -.30706E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .25703        .86144E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.8358        1.0264        .39500E-05   -.68521    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.44435e-09
Minuit parameter uncertainties:
  1  0.315035
  2  20.2348
  3  0.237989
  4  0.000365913
  5  1.09833
  6  1.0054
  7  1.0003
  8  1.835e-05
  9  9.23955e-06
  10  2.27837e-06
  11  0.000206717
  12  1.34851e-05
  13  6.49544e-06
  14  1.36277e-06
  15  1.00201
  16  1.8736e-05
  17  1.00077
  18  1.06991e-05
  19  1.80476e-07
  20  3.92845e-05
  21  1.53516e-06
  22  1.03886
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 771.327104034

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.836e+00  1.039e+00  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.000e-02  1.535e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250041/likelihoodResults_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.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) = 771.32711641
delta logL = -1.23757440633e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 771.32711564
delta logL = -1.16058016602e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96036E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6046       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8358       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=   771.3271     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      256 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11149E-03    729.34        .18149E-01** at limit **
   2  Index         2.4259        8.7847        .50000        .60833E-06
   3  Normalizat    .10000E-01    .32079E-02    .11993E-01** at limit **
   4  Prefactor     1.8358        .16795E-01    .22636E-03    .84751E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111492
  Index      = 2.42586
  Normalizat = 0.01
  Prefactor  = 1.83581
 **********
 **   18 **HESSE 
 **********

 FCN=   771.3271     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11149E-03    6596.5        .36298E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4259        6.1387        .50000       -.54081    
   3  Normalizat    .10000E-01    .15652E-01    .23986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8358        .37012E-01    .90546E-05   -.68521    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.75846e-09
Minuit parameter uncertainties:
  1  0.407175
  2  2106.21
  3  1.65008e-07
  4  0.0370121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250041': 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) = 771.327104015
delta logL = 1.91778326553e-08

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.115e-04  4.072e-01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.426e+00  2.106e+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:  1.836e+00  3.701e-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.000e-02  1.650e-07  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/250041/cmap_HighResolution_560217601_560476801_4FGL_J2359.2-3134_daily_bin1238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-02', job_status='DONE', photon_flux_upper_limit='7.40e-07', time_completed='2021-09-30 12:29:17.704668', job_id='250041', GAL2='1.84', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633030157.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.84', dlogl='1.92e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1238' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:29:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 250041: <4FGL_J2359.2-3134_daily_bin1238> in cluster <slac> Done

Job <4FGL_J2359.2-3134_daily_bin1238> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 12:20:16 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 12:20:18 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:18 2021
Terminated at Thu Sep 30 12:29:18 2021
Results reported at Thu Sep 30 12:29:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1238 359.817 -31.5832 560217601 560476801 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 :                                   334.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             233.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            542 sec.

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

