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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1326
RA = 359.817, Dec = -31.5832
tmin = 583027201, tmax = 583286401
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='250169', job_status='RUN', time_executed='2021-09-30 12:22:14.659789', time_epoch_executed='1633029734.66' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250169/ft1_4FGL_J2359.2-3134_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250169/ft2_4FGL_J2359.2-3134_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250169/ft1_4FGL_J2359.2-3134_daily_bin1326.fits outfile=/scratch/kocevski/250169/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1326.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=583027201.0 tmax=583286401.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.55
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250169/ft2_4FGL_J2359.2-3134_daily_bin1326.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/250169/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1326.fits evtable="EVENTS" outfile="/scratch/kocevski/250169/ft1_filtered_4FGL_J2359.2-3134_daily_bin1326.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250169/ft1_filtered_4FGL_J2359.2-3134_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/250169/ft2_4FGL_J2359.2-3134_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/250169/ltcube_583027201_583286401_4FGL_J2359.2-3134_daily_bin1326.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/250169/ft2_4FGL_J2359.2-3134_daily_bin1326.fits
.....................!
real 12.12
user 11.42
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250169/ft1_filtered_4FGL_J2359.2-3134_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/250169/ft2_4FGL_J2359.2-3134_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/250169/ltcube_583027201_583286401_4FGL_J2359.2-3134_daily_bin1326.fits outfile=/scratch/kocevski/250169/expmap_583027201_583286401_4FGL_J2359.2-3134_daily_bin1326.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/250169/ltcube_583027201_583286401_4FGL_J2359.2-3134_daily_bin1326.fits
.....................!
real 190.58
user 185.04
sys 5.22

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/250169/ft1_filtered_4FGL_J2359.2-3134_daily_bin1326.fits scfile=/scratch/kocevski/250169/ft2_4FGL_J2359.2-3134_daily_bin1326.fits outfile=/scratch/kocevski/250169/cmap_583027201_583286401_4FGL_J2359.2-3134_daily_bin1326.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=359.817 yref=-31.5832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250169/ft1_filtered_4FGL_J2359.2-3134_daily_bin1326.fits scfile=/scratch/kocevski/250169/ft2_4FGL_J2359.2-3134_daily_bin1326.fits outfile=/scratch/kocevski/250169/cmap_HighResolution_583027201_583286401_4FGL_J2359.2-3134_daily_bin1326.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4449       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1248       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8524       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.1680       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.675       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0279       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6108       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4322       1.0000         .10000E-03   10000.    
    16 'norm      '    .18921E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    110.64       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17618E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30154E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0798       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89920       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=   4998.581     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2369 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.046        .44344E-05** at limit **
   2  Prefactor     6.4375        4.4824       -.45790E-07    .17326E-03
   3  Prefactor     3.0951        41.867       -.20002E-06    .18763E-04
   4  Prefactor     .10000E-03    15.004       -.26119E-06** at limit **
   5  Prefactor     .10000E-03    11.211       -.11269E-06** at limit **
   6  Prefactor     .10000E-03    47.772       -.29471E-05** at limit **
   7  norm          8.8543        5.9573       -.15840E-07    .11269E-04
   8  Prefactor     .10000E-03    6.9906       -.12483E-06** at limit **
   9  norm          .10000E-03    2.1113       -.73844E-07** at limit **
  10  norm          9.1708        8.0421        .73064E-08   -.36849E-04
  11  Prefactor     23.610        51.313       -.51966E-05   -.15867E-03
  12  Prefactor     .10000E-03    29.783        .75735E-06** at limit **
  13  norm          4.0316        5.5724       -.90734E-06   -.52685E-03
  14  norm          2.6150        3.7344        .34107E-07    .25464E-04
  15  Prefactor     4.4280        28.918       -.28842E-05   -.37628E-05
  16  norm          .10000E-03    3.1829        .31914E-06** at limit **
  17  Prefactor     110.61        91.998       -.17875E-05    .20139E-04
  18  Prefactor     .10000E-03    14.901       -.26121E-06** at limit **
  19  Prefactor     .10003E-03    4.6828        .13526E-05** at limit **
  20  Prefactor     .10005E-03    177.69       -.31562E-04** at limit **
  21  Normalizat    1.0797        .18340       -.52265E-06   -.13337E-04
  22  Prefactor     .89926        .20342        .11276E-05   -.69391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.43747
  Prefactor  = 3.09513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.85428
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.17082
  Prefactor  = 23.6105
  Prefactor  = 0.0001
  norm       = 4.03156
  norm       = 2.61498
  Prefactor  = 4.42802
  norm       = 0.000100002
  Prefactor  = 110.611
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.000100047
  Normalizat = 1.07966
  Prefactor  = 0.899258
 **********
 **   18 **HESSE 
 **********

 FCN=   4998.581     FROM HESSE     STATUS=OK           348 CALLS     2717 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4375        4.4236        .10651E-03   -1.5200    
   3  Prefactor     3.0951        40.865        .22935E-03   -1.5356    
   4  Prefactor     .10000E-03    15.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.8543        5.9564        .13472E-03   -1.5113    
   8  Prefactor     .10000E-03    7.1018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.1131        .10034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.1708        8.0407        .13237E-03   -1.5102    
  11  Prefactor     23.610        51.680        .82324E-04   -1.4736    
  12  Prefactor     .10000E-03    29.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0316        5.6246        .83574E-03   -1.5306    
  14  norm          2.6150        3.7092        .15493E-03   -1.5385    
  15  Prefactor     4.4280        28.665        .95640E-03   -1.5287    
  16  norm          .10000E-03    6.3110        .23152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     110.61        91.861        .19120E-03   -1.3601    
  18  Prefactor     .10000E-03    14.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    12.919        .28034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10005E-03    183.18        .71026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0797        .21135        .21757E-03   -.90408    
  22  Prefactor     .89926        .23488        .26571E-03   -.96167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83292e-09
Minuit parameter uncertainties:
  1  0.000337747
  2  4.42387
  3  22.5114
  4  2.65713e-05
  5  1.49043e-06
  6  0.000111988
  7  5.95683
  8  1.63937e-05
  9  2.89313e-06
  10  8.04163
  11  51.7785
  12  2.09537e-05
  13  5.62535
  14  3.70949
  15  22.5482
  16  0.00025046
  17  91.9792
  18  9.47915e-06
  19  0.00114581
  20  0.00587766
  21  0.211511
  22  0.235148
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  5.878e-03  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.993e-01  2.351e-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.080e+00  2.115e-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: 7.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250169/likelihoodResults_583027201_583286401_4FGL_J2359.2-3134_daily_bin1326.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) = 4998.58130052
delta logL = -2.52572181125e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4998.5812777
delta logL = -2.43343129114e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16188E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7328       1.0000          .0000       10.000    
     3 'Normalizat'    1.0797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89926       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.

 FCN=   4998.581     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      239 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12638E-03    1.4320        .12729    ** at limit **
   2  Index         2.7431        5.7012        .50000       -.32958E-05
   3  Normalizat    1.0797        .10654E-02    .38896E-01    .25512E-03
   4  Prefactor     .89926        .12051E-02    .44996E-01    .14848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000126376
  Index      = 2.74309
  Normalizat = 1.07966
  Prefactor  = 0.899258
 **********
 **   18 **HESSE 
 **********

 FCN=   4998.581     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      280 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12638E-03    1.9174        .11118       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7431        6.3665        .50000       -.46831    
   3  Normalizat    1.0797        .11319E-02    .21756E-03   -.90408    
   4  Prefactor     .89926        .12800E-02    .26572E-03   -.96167    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.63443e-09
Minuit parameter uncertainties:
  1  0.0142234
  2  61.2689
  3  0.00113194
  4  0.00127997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250169': 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) = 4998.5812752
delta logL = 6.18019839749e-08

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.264e-04  1.422e-02  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.743e+00  6.127e+01  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.993e-01  1.280e-03  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.080e+00  1.132e-03  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/250169/cmap_HighResolution_583027201_583286401_4FGL_J2359.2-3134_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', job_status='DONE', photon_flux_upper_limit='7.36e-08', time_completed='2021-09-30 12:33:16.222707', job_id='250169', GAL2='0.90', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1633030396.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1326' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:33:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 250169: <4FGL_J2359.2-3134_daily_bin1326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1326 359.817 -31.5832 583027201 583286401 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 :                                   578.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.00 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.

