/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 156 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_bin1278
RA = 359.817, Dec = -31.5832
tmin = 570585601, tmax = 570844801
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='250099', job_status='RUN', time_executed='2021-09-30 12:23:07.026268', time_epoch_executed='1633029787.03' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250099

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250099/ft1_4FGL_J2359.2-3134_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250099/ft2_4FGL_J2359.2-3134_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250099/ft1_4FGL_J2359.2-3134_daily_bin1278.fits outfile=/scratch/kocevski/250099/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1278.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=570585601.0 tmax=570844801.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.02
user 2.81
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250099/ft1_filtered_4FGL_J2359.2-3134_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/250099/ft2_4FGL_J2359.2-3134_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/250099/ltcube_570585601_570844801_4FGL_J2359.2-3134_daily_bin1278.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/250099/ft2_4FGL_J2359.2-3134_daily_bin1278.fits
.....................!
real 12.77
user 12.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250099/ft1_filtered_4FGL_J2359.2-3134_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/250099/ft2_4FGL_J2359.2-3134_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/250099/ltcube_570585601_570844801_4FGL_J2359.2-3134_daily_bin1278.fits outfile=/scratch/kocevski/250099/expmap_570585601_570844801_4FGL_J2359.2-3134_daily_bin1278.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/250099/ltcube_570585601_570844801_4FGL_J2359.2-3134_daily_bin1278.fits
.....................!
real 191.08
user 186.39
sys 4.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/250099/ft1_filtered_4FGL_J2359.2-3134_daily_bin1278.fits scfile=/scratch/kocevski/250099/ft2_4FGL_J2359.2-3134_daily_bin1278.fits outfile=/scratch/kocevski/250099/cmap_570585601_570844801_4FGL_J2359.2-3134_daily_bin1278.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250099/ft1_filtered_4FGL_J2359.2-3134_daily_bin1278.fits scfile=/scratch/kocevski/250099/ft2_4FGL_J2359.2-3134_daily_bin1278.fits outfile=/scratch/kocevski/250099/cmap_HighResolution_570585601_570844801_4FGL_J2359.2-3134_daily_bin1278.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.3822       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.454       1.0000         .10000E-03   10000.    
     7 'norm      '    14.123       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0841       1.0000         .10000E-03   10000.    
     9 'norm      '    .53705E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.177       1.0000         .10000E-03   10000.    
    13 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4293       1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.739       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.9790       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4584       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70294       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0396       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=   3504.012     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2333 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.428       -.15007E-04** at limit **
   2  Prefactor     8.3837        6.0258       -.11303E-05   -.40336E-03
   3  Prefactor     .10000E-03    26.145        .16916E-04** at limit **
   4  Prefactor     36.520        17.789       -.20405E-05    .86647E-05
   5  Prefactor     .10000E-03    24.762       -.98845E-05** at limit **
   6  Prefactor     13.459        28.188       -.10878E-04    .28333E-04
   7  norm          14.124        6.4390        .10362E-05    .30876E-04
   8  Prefactor     7.0877        9.2432       -.51896E-05   -.69079E-04
   9  norm          .10019E-03    9.0886       -.40161E-05** at limit **
  10  norm          .10000E-03    5.5778        .16475E-06** at limit **
  11  Prefactor     .10000E-03    37.991       -.80653E-05** at limit **
  12  Prefactor     51.131        81.890       -.41854E-04    .16671E-04
  13  norm          .10000E-03    5.2797        .28229E-06** at limit **
  14  norm          2.4299        3.3158       -.26239E-06   -.43860E-04
  15  Prefactor     40.681        45.164       -.41971E-05    .20668E-04
  16  norm          .10000E-03    2.0456       -.43795E-07** at limit **
  17  Prefactor     .10000E-03    392.92       -.16957E-04** at limit **
  18  Prefactor     .10000E-03    47.255        .20073E-04** at limit **
  19  Prefactor     7.9800        6.9977       -.63543E-05    .67114E-05
  20  Prefactor     6.4540        74.300       -.21340E-05   -.56378E-05
  21  Normalizat    .70259        .21629        .10237E-04   -.77359E-04
  22  Prefactor     1.0397        .23090       -.90637E-06    .23311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.38367
  Prefactor  = 0.0001
  Prefactor  = 36.5203
  Prefactor  = 0.0001
  Prefactor  = 13.4586
  norm       = 14.1245
  Prefactor  = 7.08769
  norm       = 0.000100186
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.1312
  norm       = 0.0001
  norm       = 2.42991
  Prefactor  = 40.6811
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.98001
  Prefactor  = 6.45399
  Normalizat = 0.70259
  Prefactor  = 1.03973
 **********
 **   18 **HESSE 
 **********

 FCN=   3504.012     FROM HESSE     STATUS=OK           342 CALLS     2675 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.3837        6.0432        .11105E-03   -1.5129    
   3  Prefactor     .10000E-03    26.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.520        17.794        .66322E-04   -1.4499    
   5  Prefactor     .10000E-03    24.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.459        28.168        .10920E-03   -1.4974    
   7  norm          14.124        6.4447        .97715E-04   -1.4956    
   8  Prefactor     7.0877        9.2612        .15072E-03   -1.5175    
   9  norm          .10019E-03    29.334        .34430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.5841        .13654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.131        81.979        .56061E-04   -1.4277    
  13  norm          .10000E-03    5.3588        .13253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4299        3.3014        .12146E-03   -1.5396    
  15  Prefactor     40.681        45.124        .62802E-04   -1.4431    
  16  norm          .10000E-03    2.0482        .82683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    394.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9800        6.9899        .13879E-03   -1.5143    
  20  Prefactor     6.4540        73.805        .15793E-03   -1.5200    
  21  Normalizat    .70259        .24798        .25035E-03   -1.0379    
  22  Prefactor     1.0397        .26543        .23989E-03   -.91417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97802e-09
Minuit parameter uncertainties:
  1  4.67944e-05
  2  6.04362
  3  4.76887e-05
  4  17.7965
  5  3.66911e-05
  6  28.1954
  7  6.44504
  8  9.26307
  9  0.00467491
  10  5.59518e-05
  11  4.26433e-05
  12  82.1607
  13  3.92829e-05
  14  3.30164
  15  45.1618
  16  1.71795e-07
  17  9.52508e-05
  18  5.78402e-05
  19  6.99059
  20  43.7179
  21  0.248381
  22  0.265765
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  6.454e+00  4.372e+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.040e+00  2.658e-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:  7.026e-01  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250099/likelihoodResults_570585601_570844801_4FGL_J2359.2-3134_daily_bin1278.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) = 3504.00054968
delta logL = 0.0114787201042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3503.99994872
delta logL = 0.0120796799852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6189       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1423       1.0000          .0000       10.000    
     3 'Normalizat'    .69762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0430       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=   3504.000     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      295 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6688        556.36        .42368E-02    .44838E-04
   2  Index         3.1418        2.7779        .50000        .68493E-05
   3  Normalizat    .69765        .21933E-01    .42259E-01    .14261E-04
   4  Prefactor     1.0430        .25196E-01    .40339E-01    .15311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66883
  Index      = 3.14177
  Normalizat = 0.697646
  Prefactor  = 1.04296
 **********
 **   18 **HESSE 
 **********

 FCN=   3504.000     FROM HESSE     STATUS=OK            33 CALLS      328 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6688        60.071        .16947E-03   -1.5232    
   2  Index         3.1418        3.5783        .85010E-02   -.38078    
   3  Normalizat    .69765        .23344        .25114E-03   -1.0399    
   4  Prefactor     1.0430        .26498        .23955E-03   -.91311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39981e-12
Minuit parameter uncertainties:
  1  36.9543
  2  4.08576
  3  0.233771
  4  0.265308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250099': 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) = 3503.99994699
delta logL = 0.0120814162128

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  5.669e+00  3.695e+01  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.142e+00  4.086e+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.043e+00  2.653e-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:  6.976e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/250099/cmap_HighResolution_570585601_570844801_4FGL_J2359.2-3134_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-30 12:33:40.446370', job_id='250099', GAL2='1.04', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1633030420.45', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.21e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1278' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:33:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 250099: <4FGL_J2359.2-3134_daily_bin1278> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1278 359.817 -31.5832 570585601 570844801 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 :                                   500.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

