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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin974
RA = 359.817, Dec = -31.5832
tmin = 491788801, tmax = 492048001
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='248737', job_status='RUN', time_executed='2021-09-30 12:17:23.642902', time_epoch_executed='1633029443.64' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248737

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248737/ft1_4FGL_J2359.2-3134_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248737/ft2_4FGL_J2359.2-3134_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248737/ft1_4FGL_J2359.2-3134_daily_bin974.fits outfile=/scratch/kocevski/248737/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin974.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.26
user 4.04
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248737/ft1_filtered_4FGL_J2359.2-3134_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/248737/ft2_4FGL_J2359.2-3134_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/248737/ltcube_491788801_492048001_4FGL_J2359.2-3134_daily_bin974.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/248737/ft2_4FGL_J2359.2-3134_daily_bin974.fits
.....................!
real 11.92
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248737/ft1_filtered_4FGL_J2359.2-3134_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/248737/ft2_4FGL_J2359.2-3134_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/248737/ltcube_491788801_492048001_4FGL_J2359.2-3134_daily_bin974.fits outfile=/scratch/kocevski/248737/expmap_491788801_492048001_4FGL_J2359.2-3134_daily_bin974.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/248737/ltcube_491788801_492048001_4FGL_J2359.2-3134_daily_bin974.fits
.....................!
real 190.00
user 185.23
sys 4.43

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/248737/ft1_filtered_4FGL_J2359.2-3134_daily_bin974.fits scfile=/scratch/kocevski/248737/ft2_4FGL_J2359.2-3134_daily_bin974.fits outfile=/scratch/kocevski/248737/cmap_491788801_492048001_4FGL_J2359.2-3134_daily_bin974.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248737/ft1_filtered_4FGL_J2359.2-3134_daily_bin974.fits scfile=/scratch/kocevski/248737/ft2_4FGL_J2359.2-3134_daily_bin974.fits outfile=/scratch/kocevski/248737/cmap_HighResolution_491788801_492048001_4FGL_J2359.2-3134_daily_bin974.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=359.817 yref=-31.5832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/248737/ft1_filtered_4FGL_J2359.2-3134_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/248737/ft2_4FGL_J2359.2-3134_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/248737/Model_4FGL_J2359.2-3134_daily_bin974.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/248737/ft1_filtered_4FGL_J2359.2-3134_daily_bin974.fits.....................!
real 56.84
user 55.61
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1114       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.762       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.247       1.0000         .10000E-03   10000.    
     7 'norm      '    .33122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8278       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1508       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .68695       1.0000         .10000E-03   10000.    
    14 'norm      '    .58596E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.707       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1344       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2416       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .49013       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=   8067.862     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2375 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.395       -.33349E-05** at limit **
   2  Prefactor     2.1112        2.3979        .76097E-07    .20210E-04
   3  Prefactor     .10000E-03    13.449       -.16551E-05** at limit **
   4  Prefactor     4.3492        6.3441        .56014E-06   -.13653E-02
   5  Prefactor     15.762        14.578        .19156E-07    .56691E-05
   6  Prefactor     33.248        25.149        .69941E-06    .34939E-04
   7  norm          .33109        3.1127       -.17813E-05   -.74540E-03
   8  Prefactor     .10000E-03    2.8130        .41824E-07** at limit **
   9  norm          1.8249        2.4031        .13485E-05   -.32450E-02
  10  norm          5.1497        5.5099       -.60242E-06   -.10902E-03
  11  Prefactor     .10000E-03    31.208       -.67781E-05** at limit **
  12  Prefactor     .10000E-03    11.924        .27671E-05** at limit **
  13  norm          .69022        4.5108       -.22053E-05   -.54533E-03
  14  norm          .10000E-03    1.3727       -.54011E-06** at limit **
  15  Prefactor     25.716        22.587        .54063E-05    .32579E-03
  16  norm          8.1322        3.7081        .56011E-06    .60231E-03
  17  Prefactor     .10000E-03    25.556        .10261E-04** at limit **
  18  Prefactor     .10000E-03    10.194       -.61443E-06** at limit **
  19  Prefactor     2.1444        3.8099       -.95618E-06   -.31073E-03
  20  Prefactor     .10000E-03    29.946       -.15700E-05** at limit **
  21  Normalizat    1.2415        .13175        .10309E-06    .38544E-03
  22  Prefactor     .49018        .14104       -.32551E-06    .20771E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.11121
  Prefactor  = 0.0001
  Prefactor  = 4.34916
  Prefactor  = 15.7618
  Prefactor  = 33.2482
  norm       = 0.331088
  Prefactor  = 0.0001
  norm       = 1.82494
  norm       = 5.14966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.690218
  norm       = 0.000100001
  Prefactor  = 25.7162
  norm       = 8.13219
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.1444
  Prefactor  = 0.0001
  Normalizat = 1.24155
  Prefactor  = 0.490181
 **********
 **   18 **HESSE 
 **********

 FCN=   8067.862     FROM HESSE     STATUS=OK           344 CALLS     2719 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1112        2.3862        .14085E-03   -1.5417    
   3  Prefactor     .10000E-03    13.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3492        6.9130        .96571E-03   -1.5291    
   5  Prefactor     15.762        14.574        .10088E-03   -1.4914    
   6  Prefactor     33.248        25.168        .69495E-04   -1.4554    
   7  norm          .33109        3.3593        .31614E-03   -1.5593    
   8  Prefactor     .10000E-03    2.8457        .14707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8249        3.2211        .97189E-03   -1.5438    
  10  norm          5.1497        5.5079        .17714E-03   -1.5254    
  11  Prefactor     .10000E-03    31.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .69022        4.2299        .31329E-03   -1.5542    
  14  norm          .10000E-03    5.7692        .20192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.716        22.446        .79009E-04   -1.4693    
  16  norm          8.1322        3.6410        .10686E-03   -1.5138    
  17  Prefactor     .10000E-03    25.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1444        3.8168        .22269E-03   -1.5415    
  20  Prefactor     .10000E-03    30.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2415        .14974        .18456E-03   -.85328    
  22  Prefactor     .49018        .15924        .30905E-03   -1.1243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76133e-09
Minuit parameter uncertainties:
  1  0.000104751
  2  2.38627
  3  3.89306e-05
  4  6.91426
  5  14.577
  6  25.176
  7  2.10908
  8  1.02669e-06
  9  3.22145
  10  5.50843
  11  0.000227081
  12  8.15284e-05
  13  3.41745
  14  0.000145126
  15  22.4536
  16  3.64113
  17  0.000386678
  18  1.40597e-05
  19  3.81725
  20  1.56445e-05
  21  0.149791
  22  0.159384
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  1.564e-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:  4.902e-01  1.594e-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.242e+00  1.498e-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: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248737/likelihoodResults_491788801_492048001_4FGL_J2359.2-3134_daily_bin974.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8067.86203167
delta logL = -0.000158522240781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8067.86187338
delta logL = -2.37353560806e-07

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 'Index     '    2.5261       1.0000          .0000       10.000    
     3 'Normalizat'    1.2415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49019       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=   8067.862     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      273 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    221.54        .18142E-02** at limit **
   2  Index         2.5627        6.7340        .50000       -.12815E-04
   3  Normalizat    1.2415        .14348        .18456E-03   -.10909E-03
   4  Prefactor     .49018        .15742        .30905E-03    .45615E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.56275
  Normalizat = 1.24154
  Prefactor  = 0.490182
 **********
 **   18 **HESSE 
 **********

 FCN=   8067.862     FROM HESSE     STATUS=OK            29 CALLS      302 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5627        6.2790        .50000       -.50917    
   3  Normalizat    1.2415        .14356        .36913E-04   -.85329    
   4  Prefactor     .49018        .15752        .12362E-04   -1.1243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01934e-10
Minuit parameter uncertainties:
  1  0.00073096
  2  4.44604
  3  0.143609
  4  0.157659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248737': 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) = 8067.86187327
delta logL = -1.24739017338e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  7.310e-04  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.563e+00  4.446e+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:  4.902e-01  1.577e-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.242e+00  1.436e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/248737/cmap_HighResolution_491788801_492048001_4FGL_J2359.2-3134_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-09-30 12:29:54.169918', job_id='248737', GAL2='0.49', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1633030194.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='-1.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='974' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:29:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 248737: <4FGL_J2359.2-3134_daily_bin974> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin974 359.817 -31.5832 491788801 492048001 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 :                                   747.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

