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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1211
RA = 359.817, Dec = -31.5832
tmin = 553219201, tmax = 553478401
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='250002', job_status='RUN', time_executed='2021-09-30 12:22:32.987094', time_epoch_executed='1633029752.99' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250002

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250002/ft1_4FGL_J2359.2-3134_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250002/ft2_4FGL_J2359.2-3134_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250002/ft1_4FGL_J2359.2-3134_daily_bin1211.fits outfile=/scratch/kocevski/250002/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1211.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.73
user 2.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250002/ft2_4FGL_J2359.2-3134_daily_bin1211.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/250002/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/250002/ft1_filtered_4FGL_J2359.2-3134_daily_bin1211.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250002/ft1_filtered_4FGL_J2359.2-3134_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/250002/ft2_4FGL_J2359.2-3134_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/250002/ltcube_553219201_553478401_4FGL_J2359.2-3134_daily_bin1211.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/250002/ft2_4FGL_J2359.2-3134_daily_bin1211.fits
.....................!
real 12.51
user 12.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250002/ft1_filtered_4FGL_J2359.2-3134_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/250002/ft2_4FGL_J2359.2-3134_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/250002/ltcube_553219201_553478401_4FGL_J2359.2-3134_daily_bin1211.fits outfile=/scratch/kocevski/250002/expmap_553219201_553478401_4FGL_J2359.2-3134_daily_bin1211.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/250002/ltcube_553219201_553478401_4FGL_J2359.2-3134_daily_bin1211.fits
.....................!
real 191.04
user 185.23
sys 5.48

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/250002/ft1_filtered_4FGL_J2359.2-3134_daily_bin1211.fits scfile=/scratch/kocevski/250002/ft2_4FGL_J2359.2-3134_daily_bin1211.fits outfile=/scratch/kocevski/250002/cmap_553219201_553478401_4FGL_J2359.2-3134_daily_bin1211.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250002/ft1_filtered_4FGL_J2359.2-3134_daily_bin1211.fits scfile=/scratch/kocevski/250002/ft2_4FGL_J2359.2-3134_daily_bin1211.fits outfile=/scratch/kocevski/250002/cmap_HighResolution_553219201_553478401_4FGL_J2359.2-3134_daily_bin1211.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/250002/ft1_filtered_4FGL_J2359.2-3134_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/250002/ft2_4FGL_J2359.2-3134_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250002/Model_4FGL_J2359.2-3134_daily_bin1211.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/250002/ft1_filtered_4FGL_J2359.2-3134_daily_bin1211.fits....................!
real 45.89
user 44.59
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8628       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5155       1.0000         .10000E-03   10000.    
     7 'norm      '    162.41       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7404       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9568       1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    90.206       1.0000         .10000E-03   10000.    
    13 'norm      '    .98012       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.894       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.287       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93650       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80024       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=   5534.781     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2334 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.069        68.272        .24113E-06   -.52886E-05
   2  Prefactor     6.8641        3.9549       -.25397E-07   -.23122E-04
   3  Prefactor     .10000E-03    13.533       -.14925E-06** at limit **
   4  Prefactor     .10000E-03    7.0148       -.50632E-07** at limit **
   5  Prefactor     .10000E-03    30.664       -.12921E-05** at limit **
   6  Prefactor     1.4888        176.51        .58372E-05   -.36982E-05
   7  norm          162.41        17.245       -.15318E-08   -.48653E-05
   8  Prefactor     4.7411        5.0078       -.12219E-06   -.99840E-04
   9  norm          .10000E-03    5.5210       -.29056E-06** at limit **
  10  norm          3.9579        8.2517        .33446E-06    .29272E-03
  11  Prefactor     45.665        86.986        .23697E-06   -.73549E-04
  12  Prefactor     90.176        59.626        .19345E-05    .70540E-04
  13  norm          .96874        18.220       -.76924E-05    .34990E-04
  14  norm          .10000E-03    1.4328       -.49054E-07** at limit **
  15  Prefactor     .10000E-03    25.668       -.29106E-06** at limit **
  16  norm          10.896        6.7445        .68995E-06    .49166E-04
  17  Prefactor     37.279        75.384        .72508E-06    .83546E-05
  18  Prefactor     .10000E-03    26.483       -.37731E-06** at limit **
  19  Prefactor     .10000E-03    3.0626       -.23784E-06** at limit **
  20  Prefactor     .10000E-03    23.459        .52214E-06** at limit **
  21  Normalizat    .93587        .18575       -.47175E-06    .12903E-04
  22  Prefactor     .80099        .19963        .65789E-06   -.13979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.0689
  Prefactor  = 6.86414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48882
  norm       = 162.41
  Prefactor  = 4.74112
  norm       = 0.0001
  norm       = 3.95787
  Prefactor  = 45.6655
  Prefactor  = 90.1763
  norm       = 0.968739
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8963
  Prefactor  = 37.2785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.935873
  Prefactor  = 0.800987
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.781     FROM HESSE     STATUS=OK           342 CALLS     2676 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.069        68.438        .41656E-04   -1.3776    
   2  Prefactor     6.8641        3.9684        .10693E-03   -1.5184    
   3  Prefactor     .10000E-03    13.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4888        180.84        .34726E-03   -1.5464    
   7  norm          162.41        17.263        .31646E-04   -1.3152    
   8  Prefactor     4.7411        5.0092        .16587E-03   -1.5272    
   9  norm          .10000E-03    5.5419        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9579        8.2957        .10139E-02   -1.5310    
  11  Prefactor     45.665        93.819        .59410E-04   -1.4355    
  12  Prefactor     90.176        59.909        .21154E-03   -1.3806    
  13  norm          .96874        21.672        .30859E-02   -1.5511    
  14  norm          .10000E-03    1.4386        .86964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.896        6.7403        .12139E-03   -1.5048    
  17  Prefactor     37.279        75.444        .65635E-04   -1.4486    
  18  Prefactor     .10000E-03    26.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.0863        .12717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93587        .22329        .24728E-03   -.95211    
  22  Prefactor     .80099        .23904        .29657E-03   -.99692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92632e-10
Minuit parameter uncertainties:
  1  68.4956
  2  3.9685
  3  1.08184e-05
  4  4.77305e-06
  5  0.000238703
  6  32.9179
  7  17.2639
  8  5.00966
  9  6.24083e-05
  10  8.29808
  11  94.1249
  12  59.9489
  13  9.16733
  14  2.13599e-06
  15  4.90306e-05
  16  6.74078
  17  75.6384
  18  4.04571e-05
  19  1.53533e-05
  20  1.00395e-05
  21  0.223511
  22  0.239354
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  8.010e-01  2.394e-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:  9.359e-01  2.235e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250002/likelihoodResults_553219201_553478401_4FGL_J2359.2-3134_daily_bin1211.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) = 5534.78150294
delta logL = -0.000202817192985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5534.78130125
delta logL = -1.12123962026e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7433       1.0000          .0000       10.000    
     3 'Normalizat'    .93586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80099       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=   5534.781     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      243 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1568.9        .90712E-02** at limit **
   2  Index         3.7325        8.0426        .50000        .70325E-05
   3  Normalizat    .93587        .54905E-01    .45358E-01    .48116E-04
   4  Prefactor     .80099        .60543E-01    .67034E-01    .29123E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.73249
  Normalizat = 0.935873
  Prefactor  = 0.800987
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.781     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7325        6.7914        .50000       -.25630    
   3  Normalizat    .93587        .20803        .24728E-03   -.95211    
   4  Prefactor     .80099        .23338        .29657E-03   -.99692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02487e-10
Minuit parameter uncertainties:
  1  0.000137053
  2  5.17138
  3  0.208208
  4  0.233668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250002': 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) = 5534.78130123
delta logL = -1.09832581074e-06

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  1.371e-04  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  3.732e+00  5.171e+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:  8.010e-01  2.337e-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:  9.359e-01  2.082e-01  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/250002/cmap_HighResolution_553219201_553478401_4FGL_J2359.2-3134_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2021-09-30 12:32:52.041696', job_id='250002', GAL2='0.80', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1633030372.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1211' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:32:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 250002: <4FGL_J2359.2-3134_daily_bin1211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1211 359.817 -31.5832 553219201 553478401 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 :                                   617.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            764 sec.

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

