/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 214 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 = 7429
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2359.2-3134_daily_bin399
RA = 359.817, Dec = -31.5832
tmin = 342748801, tmax = 343008001
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='245730', job_status='RUN', time_executed='2021-09-30 12:09:14.079594', time_epoch_executed='1633028954.08' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/245730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/245730/ft1_4FGL_J2359.2-3134_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/245730/ft2_4FGL_J2359.2-3134_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/245730/ft1_4FGL_J2359.2-3134_daily_bin399.fits outfile=/scratch/kocevski/245730/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin399.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=342748801.0 tmax=343008001.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.52
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/245730/ft1_filtered_4FGL_J2359.2-3134_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/245730/ft2_4FGL_J2359.2-3134_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/245730/ltcube_342748801_343008001_4FGL_J2359.2-3134_daily_bin399.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/245730/ft2_4FGL_J2359.2-3134_daily_bin399.fits
.....................!
real 11.93
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/245730/ft1_filtered_4FGL_J2359.2-3134_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/245730/ft2_4FGL_J2359.2-3134_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/245730/ltcube_342748801_343008001_4FGL_J2359.2-3134_daily_bin399.fits outfile=/scratch/kocevski/245730/expmap_342748801_343008001_4FGL_J2359.2-3134_daily_bin399.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/245730/ltcube_342748801_343008001_4FGL_J2359.2-3134_daily_bin399.fits
.....................!
real 192.93
user 187.49
sys 5.03

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/245730/ft1_filtered_4FGL_J2359.2-3134_daily_bin399.fits scfile=/scratch/kocevski/245730/ft2_4FGL_J2359.2-3134_daily_bin399.fits outfile=/scratch/kocevski/245730/cmap_342748801_343008001_4FGL_J2359.2-3134_daily_bin399.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.54
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/245730/ft1_filtered_4FGL_J2359.2-3134_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/245730/ft2_4FGL_J2359.2-3134_daily_bin399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/245730/Model_4FGL_J2359.2-3134_daily_bin399.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/245730/ft1_filtered_4FGL_J2359.2-3134_daily_bin399.fits....................!
real 36.62
user 34.95
sys 1.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.831       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6435       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10707E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2466       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4380       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5054       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.719       1.0000         .10000E-03   10000.    
    16 'norm      '    .32768E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94775       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75467       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=   4279.424     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2345 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.812        54.896        .22134E-05   -.10236E-04
   2  Prefactor     4.1817        3.8502        .48991E-07    .11452E-04
   3  Prefactor     .10000E-03    50.396       -.16470E-06** at limit **
   4  Prefactor     9.1812        12.559        .23505E-07   -.55675E-05
   5  Prefactor     1.6279        59.206        .15576E-04   -.66925E-06
   6  Prefactor     .10000E-03    79.796       -.14067E-07** at limit **
   7  norm          .10000E-03    2.4207        .33938E-07** at limit **
   8  Prefactor     .10000E-03    6.6523        .46366E-07** at limit **
   9  norm          1.2453        4.0124        .20108E-07   -.11638E-03
  10  norm          .10000E-03    1.8992        .15078E-07** at limit **
  11  Prefactor     10.183        69.757        .88268E-06   -.15860E-04
  12  Prefactor     .10000E-03    15.964        .43900E-06** at limit **
  13  norm          6.4432        7.8776       -.19933E-07   -.80857E-05
  14  norm          6.5055        4.4480        .11156E-07   -.73102E-05
  15  Prefactor     26.719        33.564        .10485E-06   -.40430E-05
  16  norm          .10000E-03    2.5079        .56600E-06** at limit **
  17  Prefactor     .10000E-03    21.027        .28157E-06** at limit **
  18  Prefactor     .10000E-03    16.411       -.11133E-05** at limit **
  19  Prefactor     .10000E-03    1.3498       -.42445E-08** at limit **
  20  Prefactor     .10000E-03    15.920        .58607E-06** at limit **
  21  Normalizat    .94760        .17132        .61198E-06    .12707E-04
  22  Prefactor     .75478        .18924       -.14124E-05   -.78410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.8123
  Prefactor  = 4.18175
  Prefactor  = 0.0001
  Prefactor  = 9.18121
  Prefactor  = 1.62787
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.2453
  norm       = 0.0001
  Prefactor  = 10.1827
  Prefactor  = 0.0001
  norm       = 6.44317
  norm       = 6.5055
  Prefactor  = 26.719
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.947597
  Prefactor  = 0.75478
 **********
 **   18 **HESSE 
 **********

 FCN=   4279.424     FROM HESSE     STATUS=OK           344 CALLS     2689 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.812        54.999        .74615E-04   -1.4634    
   2  Prefactor     4.1817        3.8520        .11716E-03   -1.5299    
   3  Prefactor     .10000E-03    50.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1812        12.577        .13228E-03   -1.5102    
   5  Prefactor     1.6279        59.961        .16476E-02   -1.5453    
   6  Prefactor     .10000E-03    80.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4316        .99395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6991        .16476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2453        4.0007        .19983E-03   -1.5485    
  10  norm          .10000E-03    1.9008        .88043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.183        71.643        .12551E-03   -1.5070    
  12  Prefactor     .10000E-03    15.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4432        7.9019        .12069E-03   -1.5200    
  14  norm          6.5055        4.4425        .10537E-03   -1.5198    
  15  Prefactor     26.719        33.544        .77502E-04   -1.4674    
  16  norm          .10000E-03    9.3289        .19109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3532        .74219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94760        .20538        .20244E-03   -.94807    
  22  Prefactor     .75478        .22542        .25141E-03   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8235e-10
Minuit parameter uncertainties:
  1  55.0963
  2  3.85227
  3  5.05189e-05
  4  12.5802
  5  19.7803
  6  0.000231717
  7  2.86648e-06
  8  4.52088e-06
  9  4.00155
  10  1.09745e-06
  11  54.1113
  12  6.76229e-06
  13  7.9032
  14  4.44274
  15  33.568
  16  0.000106578
  17  3.09298e-06
  18  1.37375e-05
  19  5.83943e-07
  20  1.3052e-07
  21  0.205553
  22  0.225698
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  1.305e-07  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:  7.548e-01  2.257e-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.476e-01  2.056e-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.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/245730/likelihoodResults_342748801_343008001_4FGL_J2359.2-3134_daily_bin399.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) = 4279.42380798
delta logL = -0.000298692044453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4279.42351191
delta logL = -2.61906825472e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0497       1.0000          .0000       10.000    
     3 'Normalizat'    .94759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75478       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=   4279.424     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      290 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.781        .18142E-01** at limit **
   2  Index         2.0681        8.3829        .50000        .12968E-06
   3  Normalizat    .94760        .62583E-02    .20244E-03    .61166E-03
   4  Prefactor     .75478        .70468E-02    .25141E-03    .49580E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06813
  Normalizat = 0.947596
  Prefactor  = 0.754783
 **********
 **   18 **HESSE 
 **********

 FCN=   4279.424     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      317 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    300.63        .30083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0681        8.7147        .50000       -.62658    
   3  Normalizat    .94760        .15443E-01    .40489E-04   -.94807    
   4  Prefactor     .75478        .17388E-01    .50283E-04   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.53623e-10
Minuit parameter uncertainties:
  1  8.17584e-05
  2  778.162
  3  0.0154427
  4  0.0173885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/245730': 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): 102
logL (Free Index) = 4279.4235084
delta logL = 8.87770511326e-07

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  1.000e-04  8.176e-05  1.000e-04  1.000e+04 ( 1.000e-13)
591        Index:  2.068e+00  7.782e+02  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:  7.548e-01  1.739e-02  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.476e-01  1.544e-02  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/245730/cmap_HighResolution_342748801_343008001_4FGL_J2359.2-3134_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.65e-08', time_completed='2021-09-30 12:18:23.801146', job_id='245730', GAL2='0.75', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1633029503.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='8.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='399' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:18:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 245730: <4FGL_J2359.2-3134_daily_bin399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin399 359.817 -31.5832 342748801 343008001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2359.2-3134 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   547.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            774 sec.

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

