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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1590
RA = 359.817, Dec = -31.5832
tmin = 651456001, tmax = 651715201
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='250565', job_status='RUN', time_executed='2021-09-30 12:23:55.418995', time_epoch_executed='1633029835.42' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250565/ft1_4FGL_J2359.2-3134_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250565/ft2_4FGL_J2359.2-3134_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250565/ft1_4FGL_J2359.2-3134_daily_bin1590.fits outfile=/scratch/kocevski/250565/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1590.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=651456001.0 tmax=651715201.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.51
user 3.24
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250565/ft1_filtered_4FGL_J2359.2-3134_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/250565/ft2_4FGL_J2359.2-3134_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/250565/ltcube_651456001_651715201_4FGL_J2359.2-3134_daily_bin1590.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/250565/ft2_4FGL_J2359.2-3134_daily_bin1590.fits
.....................!
real 11.70
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250565/ft1_filtered_4FGL_J2359.2-3134_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/250565/ft2_4FGL_J2359.2-3134_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/250565/ltcube_651456001_651715201_4FGL_J2359.2-3134_daily_bin1590.fits outfile=/scratch/kocevski/250565/expmap_651456001_651715201_4FGL_J2359.2-3134_daily_bin1590.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/250565/ltcube_651456001_651715201_4FGL_J2359.2-3134_daily_bin1590.fits
.....................!
real 190.84
user 185.13
sys 5.37

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/250565/ft1_filtered_4FGL_J2359.2-3134_daily_bin1590.fits scfile=/scratch/kocevski/250565/ft2_4FGL_J2359.2-3134_daily_bin1590.fits outfile=/scratch/kocevski/250565/cmap_651456001_651715201_4FGL_J2359.2-3134_daily_bin1590.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250565/ft1_filtered_4FGL_J2359.2-3134_daily_bin1590.fits scfile=/scratch/kocevski/250565/ft2_4FGL_J2359.2-3134_daily_bin1590.fits outfile=/scratch/kocevski/250565/cmap_HighResolution_651456001_651715201_4FGL_J2359.2-3134_daily_bin1590.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250565/ft1_filtered_4FGL_J2359.2-3134_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/250565/ft2_4FGL_J2359.2-3134_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250565/Model_4FGL_J2359.2-3134_daily_bin1590.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/250565/ft1_filtered_4FGL_J2359.2-3134_daily_bin1590.fits.....................!
real 37.96
user 36.73
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27236E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.168       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21975E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    29.719       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .27514E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.6685       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.759       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11607E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.389       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.5243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.583       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7753       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81085       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1958       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=   4395.436     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2378 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.572        .50802E-06** at limit **
   2  Prefactor     .10000E-03    2.7070        .40534E-06** at limit **
   3  Prefactor     19.182        18.437       -.28861E-06   -.62126E-04
   4  Prefactor     .10044E-03    12.109        .16043E-05** at limit **
   5  Prefactor     .10000E-03    41.757        .10488E-06** at limit **
   6  Prefactor     .10000E-03    13.825        .40285E-07** at limit **
   7  norm          29.718        10.902        .47028E-08   -.15313E-03
   8  Prefactor     .10000E-03    3.0726        .32167E-07** at limit **
   9  norm          .10001E-03    4.1837       -.43463E-06** at limit **
  10  norm          7.6675        8.8860        .10134E-06    .17780E-04
  11  Prefactor     11.700        98.321       -.53607E-05   -.13204E-04
  12  Prefactor     .10000E-03    57.170       -.42038E-06** at limit **
  13  norm          .10000E-03    8.3789       -.29924E-05** at limit **
  14  norm          10.389        5.5564        .10580E-07   -.14883E-04
  15  Prefactor     .10000E-03    20.195       -.45943E-06** at limit **
  16  norm          6.5239        8.3344        .82102E-06    .25456E-03
  17  Prefactor     .10000E-03    109.95        .63033E-07** at limit **
  18  Prefactor     .10000E-03    108.62        .88511E-06** at limit **
  19  Prefactor     11.584        10.339        .16821E-05    .19706E-03
  20  Prefactor     9.7902        76.710       -.27072E-05    .30742E-05
  21  Normalizat    .81068        .21371        .13934E-05   -.11774E-03
  22  Prefactor     1.1960        .23496       -.19504E-05   -.28323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1822
  Prefactor  = 0.000100444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.7184
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 7.66753
  Prefactor  = 11.7003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.3892
  Prefactor  = 0.0001
  norm       = 6.52385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5839
  Prefactor  = 9.79016
  Normalizat = 0.810676
  Prefactor  = 1.19601
 **********
 **   18 **HESSE 
 **********

 FCN=   4395.436     FROM HESSE     STATUS=OK           346 CALLS     2724 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7765        .20689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.182        18.352        .91481E-04   -1.4832    
   4  Prefactor     .10044E-03    110.17        .41488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    42.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          29.718        10.869        .73493E-04   -1.4617    
   8  Prefactor     .10000E-03    3.0781        .11349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    11.681        .25765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.6675        8.8806        .14481E-03   -1.5154    
  11  Prefactor     11.700        99.761        .11682E-03   -1.5024    
  12  Prefactor     .10000E-03    57.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.4610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.389        5.5554        .11046E-03   -1.5063    
  15  Prefactor     .10000E-03    20.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.5239        8.3977        .15712E-03   -1.5197    
  17  Prefactor     .10000E-03    110.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    108.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.584        10.596        .58853E-03   -1.5027    
  20  Prefactor     9.7902        76.409        .12817E-03   -1.5082    
  21  Normalizat    .81068        .25266        .25704E-03   -.99674    
  22  Prefactor     1.1960        .27711        .24645E-03   -.86454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4815e-09
Minuit parameter uncertainties:
  1  6.94039e-05
  2  6.73534e-05
  3  18.3576
  4  0.0140211
  5  3.16075e-05
  6  1.40907e-06
  7  10.8696
  8  2.75398e-07
  9  0.000491304
  10  8.88216
  11  68.4836
  12  0.000107622
  13  4.35024e-05
  14  5.55569
  15  6.55905e-05
  16  8.39925
  17  5.44831e-06
  18  0.000114311
  19  10.598
  20  54.7977
  21  0.253031
  22  0.277444
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.196e+00  2.774e-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.107e-01  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250565/likelihoodResults_651456001_651715201_4FGL_J2359.2-3134_daily_bin1590.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4395.42259422
delta logL = 0.0133124249023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4395.42177579
delta logL = 0.0141308564398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7010       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9722       1.0000          .0000       10.000    
     3 'Normalizat'    .80538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2001       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=   4395.422     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      297 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6536        58.693        .13589E-03   -.69271E-04
   2  Index         2.9825        2.4051        .90149E-02   -.42578E-04
   3  Normalizat    .80587        .24345        .25773E-03    .18116E-03
   4  Prefactor     1.1994        .27495        .24614E-03   -.73273E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.65362
  Index      = 2.9825
  Normalizat = 0.805873
  Prefactor  = 1.19941
 **********
 **   18 **HESSE 
 **********

 FCN=   4395.422     FROM HESSE     STATUS=OK            23 CALLS      320 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6536        50.784        .54356E-05   -1.5120    
   2  Index         2.9825        2.2518        .36060E-03   -.41534    
   3  Normalizat    .80587        .24383        .10309E-04   -.99851    
   4  Prefactor     1.1994        .27528        .49227E-04   -.86349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50367e-10
Minuit parameter uncertainties:
  1  41.9803
  2  2.3543
  3  0.244162
  4  0.275607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250565': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4395.42176088
delta logL = 0.0141457623859

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.199e+00  2.756e-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.059e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/250565/cmap_HighResolution_651456001_651715201_4FGL_J2359.2-3134_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-30 12:33:11.256819', job_id='250565', GAL2='1.20', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1633030391.26', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.41e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1590' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:33:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 250565: <4FGL_J2359.2-3134_daily_bin1590> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1590 359.817 -31.5832 651456001 651715201 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 :                                   547.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             234.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            734 sec.

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

