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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1555
RA = 359.817, Dec = -31.5832
tmin = 642384001, tmax = 642643201
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='250511', job_status='RUN', time_executed='2021-09-30 12:22:33.334350', time_epoch_executed='1633029753.33' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250511

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250511/ft1_4FGL_J2359.2-3134_daily_bin1555.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250511/ft2_4FGL_J2359.2-3134_daily_bin1555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250511/ft1_4FGL_J2359.2-3134_daily_bin1555.fits outfile=/scratch/kocevski/250511/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1555.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=642384001.0 tmax=642643201.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.62
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250511/ft1_filtered_4FGL_J2359.2-3134_daily_bin1555.fits" evtable="EVENTS" scfile=/scratch/kocevski/250511/ft2_4FGL_J2359.2-3134_daily_bin1555.fits sctable="SC_DATA" outfile=/scratch/kocevski/250511/ltcube_642384001_642643201_4FGL_J2359.2-3134_daily_bin1555.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/250511/ft2_4FGL_J2359.2-3134_daily_bin1555.fits
.....................!
real 11.85
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250511/ft1_filtered_4FGL_J2359.2-3134_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/250511/ft2_4FGL_J2359.2-3134_daily_bin1555.fits sctable="SC_DATA" expcube=/scratch/kocevski/250511/ltcube_642384001_642643201_4FGL_J2359.2-3134_daily_bin1555.fits outfile=/scratch/kocevski/250511/expmap_642384001_642643201_4FGL_J2359.2-3134_daily_bin1555.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/250511/ltcube_642384001_642643201_4FGL_J2359.2-3134_daily_bin1555.fits
.....................!
real 191.37
user 185.07
sys 5.99

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/250511/ft1_filtered_4FGL_J2359.2-3134_daily_bin1555.fits scfile=/scratch/kocevski/250511/ft2_4FGL_J2359.2-3134_daily_bin1555.fits outfile=/scratch/kocevski/250511/cmap_642384001_642643201_4FGL_J2359.2-3134_daily_bin1555.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.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250511/ft1_filtered_4FGL_J2359.2-3134_daily_bin1555.fits evtable="EVENTS" scfile=/scratch/kocevski/250511/ft2_4FGL_J2359.2-3134_daily_bin1555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250511/Model_4FGL_J2359.2-3134_daily_bin1555.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/250511/ft1_filtered_4FGL_J2359.2-3134_daily_bin1555.fits.....................!
real 40.06
user 38.78
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.162       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    35.115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .32982E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.031       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1857       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11329E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9396       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.599       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3423       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .40168       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=   4688.594     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2005 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.766       -.32380E-04** at limit **
   2  Prefactor     .10000E-03    1.8479        .24263E-06** at limit **
   3  Prefactor     75.156        32.606       -.30879E-05    .12639E-04
   4  Prefactor     .10000E-03    3.2690        .12783E-06** at limit **
   5  Prefactor     .10000E-03    19.055        .30972E-06** at limit **
   6  Prefactor     .10000E-03    14.928       -.69621E-05** at limit **
   7  norm          35.116        9.8104       -.14060E-06    .61685E-05
   8  Prefactor     .10000E-03    7.4116        .39009E-06** at limit **
   9  norm          .10000E-03    1.9603        .19074E-06** at limit **
  10  norm          .10000E-03    9.0977        .81560E-06** at limit **
  11  Prefactor     .10000E-03    16.937        .11766E-04** at limit **
  12  Prefactor     .10000E-03    39.402        .83607E-05** at limit **
  13  norm          .10000E-03    1.8405        .12115E-06** at limit **
  14  norm          .10139E-03    2.2138        .30389E-05** at limit **
  15  Prefactor     28.002        29.063       -.17031E-04   -.52490E-03
  16  norm          1.1848        2.4519       -.58253E-06   -.10134E-02
  17  Prefactor     .10000E-03    46.531        .37507E-04** at limit **
  18  Prefactor     .10000E-03    77.666       -.38323E-04** at limit **
  19  Prefactor     5.9395        6.8237       -.25567E-06   -.13717E-03
  20  Prefactor     23.592        25.772       -.30374E-05    .42304E-04
  21  Normalizat    1.3422        .18754        .14125E-05   -.42389E-03
  22  Prefactor     .40183        .19908       -.38045E-06   -.17045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.1157
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000101386
  Prefactor  = 28.0023
  norm       = 1.18481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.93949
  Prefactor  = 23.5916
  Normalizat = 1.34218
  Prefactor  = 0.401834
 **********
 **   18 **HESSE 
 **********

 FCN=   4688.594     FROM HESSE     STATUS=OK           334 CALLS     2339 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8629        .90787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     75.156        32.564        .46314E-04   -1.3972    
   4  Prefactor     .10000E-03    3.2718        .12091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          35.116        9.8097        .67627E-04   -1.4522    
   8  Prefactor     .10000E-03    7.5354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9639        .93627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.2676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8612        .90688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10139E-03    60.924        .19071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.002        28.731        .75669E-04   -1.4649    
  16  norm          1.1848        1.9856        .15032E-02   -1.5490    
  17  Prefactor     .10000E-03    46.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    77.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9395        6.8323        .16477E-03   -1.5220    
  20  Prefactor     23.592        25.756        .82456E-04   -1.4736    
  21  Normalizat    1.3422        .20454        .19025E-03   -.82316    
  22  Prefactor     .40183        .21511        .35402E-03   -1.1671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14413e-08
Minuit parameter uncertainties:
  1  4.98547e-06
  2  1.55883e-05
  3  32.5721
  4  1.05364e-07
  5  6.62778e-06
  6  4.08241e-06
  7  9.81016
  8  1.43344e-05
  9  5.97086e-07
  10  2.35762e-05
  11  4.74417e-06
  12  4.89384e-05
  13  1.73983e-06
  14  0.0183999
  15  28.7447
  16  1.98574
  17  7.48745e-05
  18  0.000376771
  19  6.83319
  20  25.7684
  21  0.20466
  22  0.215538
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  2.359e+01  2.577e+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:  4.018e-01  2.155e-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.342e+00  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 2.03e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 5.30e-06 +/- 5.79e-06

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

Saving results to:
/scratch/kocevski/250511/likelihoodResults_642384001_642643201_4FGL_J2359.2-3134_daily_bin1555.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) = 4687.97159232
delta logL = 0.622342072395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4687.96311942
delta logL = 0.630814976474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.092       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6811       1.0000          .0000       10.000    
     3 'Normalizat'    1.3554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39179       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=   4687.963     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.092        28.594        .19242E-02    .13501E-02
   2  Index         1.6806        .52224        .25562       -.33811E-04
   3  Normalizat    1.3555        .18557        .31879E-01   -.22562E-05
   4  Prefactor     .39178        .19922        .80842E-01    .36063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.0923
  Index      = 1.68058
  Normalizat = 1.35548
  Prefactor  = 0.391776
 **********
 **   18 **HESSE 
 **********

 FCN=   4687.963     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.092        30.500        .76966E-04   -1.4666    
   2  Index         1.6806        .67873        .92643E-02   -.72600    
   3  Normalizat    1.3555        .20012        .18946E-03   -.81925    
   4  Prefactor     .39178        .21417        .35815E-03   -1.1723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44713e-09
Minuit parameter uncertainties:
  1  30.5172
  2  0.682515
  3  0.200232
  4  0.214611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250511': 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) = 4687.96311908
delta logL = 0.630815315584

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  2.709e+01  3.052e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  1.681e+00  6.825e-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:  3.918e-01  2.146e-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.355e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.94
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 1.68 +/- 0.68
Photon Flux (Free Index): 9.48e-09 +/- 1.22e-08
Energy Flux (Free Index): 1.65e-05 +/- 2.95e-05

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/250511/cmap_HighResolution_642384001_642643201_4FGL_J2359.2-3134_daily_bin1555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-03', comment='SUCCESS', photon_flux='2.03e-08', energy_flux2='1.65e-05', photon_flux_error='2.22e-08', dlogl='6.31e-01', energy_flux='5.30e-06', photon_flux2='9.48e-09', job_status='DONE', time_completed='2021-09-30 12:31:38.720165', photon_index_error2='0.68', photon_index2='1.68', ts='2.67', fit_tolerance='1e-08', GAL='0.40', photon_index_error='0.00', photon_flux_upper_limit='9.10e-08', energy_flux_error2='2.95e-05', EG='1.34', time_epoch_completed='1633030298.72', return_code='0', job_id='250511', GAL2='0.39', EG2='1.36', return_code2='0', energy_flux_error='5.79e-06', photon_flux_error2='1.22e-08', ts2='3.94', photon_index='2.60' WHERE bin_id='1555' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:31:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 250511: <4FGL_J2359.2-3134_daily_bin1555> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1555 359.817 -31.5832 642384001 642643201 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 :                                   542.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            645 sec.

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

