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


Performing analysis on: 4FGL_J2359.2-3134_daily_bin1345
RA = 359.817, Dec = -31.5832
tmin = 587952001, tmax = 588211201
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='250198', job_status='RUN', time_executed='2021-09-30 12:22:08.714156', time_epoch_executed='1633029728.71' WHERE source_name='4FGL J2359.2-3134' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250198/ft1_4FGL_J2359.2-3134_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250198/ft2_4FGL_J2359.2-3134_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250198/ft1_4FGL_J2359.2-3134_daily_bin1345.fits outfile=/scratch/kocevski/250198/ft1_filteredMKT_4FGL_J2359.2-3134_daily_bin1345.fits ra=359.817 dec=-31.5832 rad=12.0 tmin=587952001.0 tmax=588211201.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.48
user 3.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250198/ft1_filtered_4FGL_J2359.2-3134_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/250198/ft2_4FGL_J2359.2-3134_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/250198/ltcube_587952001_588211201_4FGL_J2359.2-3134_daily_bin1345.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/250198/ft2_4FGL_J2359.2-3134_daily_bin1345.fits
.....................!
real 12.41
user 11.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250198/ft1_filtered_4FGL_J2359.2-3134_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/250198/ft2_4FGL_J2359.2-3134_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/250198/ltcube_587952001_588211201_4FGL_J2359.2-3134_daily_bin1345.fits outfile=/scratch/kocevski/250198/expmap_587952001_588211201_4FGL_J2359.2-3134_daily_bin1345.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/250198/ltcube_587952001_588211201_4FGL_J2359.2-3134_daily_bin1345.fits
.....................!
real 190.80
user 185.59
sys 4.61

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/250198/ft1_filtered_4FGL_J2359.2-3134_daily_bin1345.fits scfile=/scratch/kocevski/250198/ft2_4FGL_J2359.2-3134_daily_bin1345.fits outfile=/scratch/kocevski/250198/cmap_587952001_588211201_4FGL_J2359.2-3134_daily_bin1345.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250198/ft1_filtered_4FGL_J2359.2-3134_daily_bin1345.fits scfile=/scratch/kocevski/250198/ft2_4FGL_J2359.2-3134_daily_bin1345.fits outfile=/scratch/kocevski/250198/cmap_HighResolution_587952001_588211201_4FGL_J2359.2-3134_daily_bin1345.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250198/ft1_filtered_4FGL_J2359.2-3134_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/250198/ft2_4FGL_J2359.2-3134_daily_bin1345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250198/Model_4FGL_J2359.2-3134_daily_bin1345.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/250198/ft1_filtered_4FGL_J2359.2-3134_daily_bin1345.fits.....................!
real 37.03
user 35.64
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12717E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11735E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7153       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .79124       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8856       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.906       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3355       1.0000         .10000E-03   10000.    
    14 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.548       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.724       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.630       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63431       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0966       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=   4615.766     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2371 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    89.611        .60460E-05** at limit **
   2  Prefactor     .10000E-03    1.7315       -.15155E-06** at limit **
   3  Prefactor     .10000E-03    40.640       -.22940E-04** at limit **
   4  Prefactor     7.7154        8.4096       -.16795E-05    .72139E-04
   5  Prefactor     .10000E-03    11.440        .34122E-06** at limit **
   6  Prefactor     .10001E-03    47.895        .20219E-04** at limit **
   7  norm          10.158        5.6577        .37653E-06    .10814E-03
   8  Prefactor     .78424        4.6015       -.72024E-05    .66624E-03
   9  norm          2.8852        4.0062       -.19509E-05   -.70959E-04
  10  norm          .10000E-03    2.8502       -.42736E-06** at limit **
  11  Prefactor     .10000E-03    15.144       -.32714E-05** at limit **
  12  Prefactor     19.906        29.925       -.22859E-05    .46331E-04
  13  norm          3.3361        3.3912       -.11992E-06   -.20769E-03
  14  norm          .10000E-03    3.2193        .88374E-06** at limit **
  15  Prefactor     .10001E-03    17.225        .48034E-05** at limit **
  16  norm          .10000E-03    2.7561       -.30642E-06** at limit **
  17  Prefactor     62.183        121.77       -.43288E-03    .78284E-04
  18  Prefactor     48.729        44.782        .89517E-05    .74087E-04
  19  Prefactor     .10000E-03    3.9387       -.22980E-06** at limit **
  20  Prefactor     67.631        42.425        .49368E-06    .20056E-03
  21  Normalizat    .63433        .16821        .17101E-04    .61754E-03
  22  Prefactor     1.0966        .19418        .11430E-04    .49066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.71538
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 10.1577
  Prefactor  = 0.78424
  norm       = 2.88521
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9059
  norm       = 3.33615
  norm       = 0.000100002
  Prefactor  = 0.000100014
  norm       = 0.000100001
  Prefactor  = 62.1833
  Prefactor  = 48.7293
  Prefactor  = 0.000100001
  Prefactor  = 67.6307
  Normalizat = 0.634328
  Prefactor  = 1.0966
 **********
 **   18 **HESSE 
 **********

 FCN=   4615.766     FROM HESSE     STATUS=OK           336 CALLS     2707 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    89.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7575        .87178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7154        8.4097        .14437E-03   -1.5152    
   5  Prefactor     .10000E-03    11.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    48.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.158        5.6603        .11668E-03   -1.5070    
   8  Prefactor     .78424        14.543        .27717E-02   -1.5531    
   9  norm          2.8852        4.0359        .14737E-03   -1.5368    
  10  norm          .10000E-03    2.8807        .11201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.906        29.928        .89772E-04   -1.4815    
  13  norm          3.3361        3.4117        .11532E-03   -1.5343    
  14  norm          .10000E-03    3.3512        .23797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    17.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.8049        .10997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.183        122.06        .25369E-03   -1.4129    
  18  Prefactor     48.729        44.779        .57447E-04   -1.4311    
  19  Prefactor     .10000E-03    4.0480        .26304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     67.631        42.459        .48806E-04   -1.4061    
  21  Normalizat    .63433        .19742        .23709E-03   -1.0655    
  22  Prefactor     1.0966        .22897        .21720E-03   -.89575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01393e-09
Minuit parameter uncertainties:
  1  0.00238393
  2  4.363e-05
  3  0.000763224
  4  8.411
  5  9.97339e-05
  6  0.00129216
  7  5.66058
  8  6.75589
  9  4.03623
  10  4.94382e-05
  11  0.000105133
  12  29.9508
  13  3.41191
  14  0.000147571
  15  0.000998312
  16  0.000113857
  17  122.561
  18  44.8097
  19  0.00014567
  20  42.4783
  21  0.197639
  22  0.229179
Done.

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

Extracting fit parameters...

4FGL J2359.2-3134
   Spectrum: PowerLaw
590    Prefactor:  6.763e+01  4.248e+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.097e+00  2.292e-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.343e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.51
Ra Dec: 359.817 -31.583
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 5.82e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 9.55e-06

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) = 4615.71024125
delta logL = 0.0560372686004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4615.70911275
delta logL = 0.0571657651908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.010       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8147       1.0000          .0000       10.000    
     3 'Normalizat'    .62518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1043       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=   4615.709     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      285 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.029        51.408        .53130E-04    .22254E-04
   2  Index         2.8151        .67650        .56151E-02    .29247E-03
   3  Normalizat    .62525        .19675        .23863E-03    .17294E-04
   4  Prefactor     1.1042        .22977        .21654E-03   -.65552E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.0286
  Index      = 2.81511
  Normalizat = 0.62525
  Prefactor  = 1.10416
 **********
 **   18 **HESSE 
 **********

 FCN=   4615.709     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.029        49.104        .21252E-05   -1.4196    
   2  Index         2.8151        .64609        .11230E-02   -.45224    
   3  Normalizat    .62525        .19689        .95451E-05   -1.0692    
   4  Prefactor     1.1042        .22993        .43309E-04   -.89334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53475e-11
Minuit parameter uncertainties:
  1  49.1388
  2  0.648328
  3  0.197112
  4  0.230136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250198': 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) = 4615.7091112
delta logL = 0.0571673131471

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.104e+00  2.301e-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.252e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 359.817 -31.583
Photon Index (Free Index): 2.82 +/- 0.65
Photon Flux (Free Index): 6.46e-08 +/- 4.20e-08
Energy Flux (Free Index): 1.43e-05 +/- 8.94e-06

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/250198/cmap_HighResolution_587952001_588211201_4FGL_J2359.2-3134_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.82e-08', energy_flux2='1.43e-05', photon_flux_error='3.65e-08', dlogl='5.72e-02', energy_flux='1.52e-05', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-09-30 12:32:04.405258', photon_index_error2='0.65', photon_index2='2.82', ts='4.51', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='8.94e-06', EG='0.63', time_epoch_completed='1633030324.41', return_code='0', job_id='250198', GAL2='1.10', EG2='0.63', return_code2='0', energy_flux_error='9.55e-06', photon_flux_error2='4.20e-08', ts2='4.65', photon_index='2.60' WHERE bin_id='1345' AND source_name='4FGL J2359.2-3134' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 12:32:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 250198: <4FGL_J2359.2-3134_daily_bin1345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2359.2-3134_daily_bin1345 359.817 -31.5832 587952001 588211201 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 :                                   518.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            697 sec.

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

