/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 65 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin500
RA = 344.953, Dec = -15.8809
tmin = 368928001, tmax = 369187201
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='623193', job_status='RUN', time_executed='2021-09-29 04:37:09.743575', time_epoch_executed='1632915429.74' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623193

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623193/ft1_4FGL_J2259.8-1552_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623193/ft1_4FGL_J2259.8-1552_daily_bin500.fits outfile=/scratch/kocevski/623193/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin500.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=368928001.0 tmax=369187201.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.05
user 3.21
sys 0.57

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.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/623193/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin500.fits evtable="EVENTS" outfile="/scratch/kocevski/623193/ft1_filtered_4FGL_J2259.8-1552_daily_bin500.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623193/ft1_filtered_4FGL_J2259.8-1552_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/623193/ltcube_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.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/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits
.....................!
real 15.81
user 15.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623193/ft1_filtered_4FGL_J2259.8-1552_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/623193/ltcube_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.fits outfile=/scratch/kocevski/623193/expmap_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.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/623193/ltcube_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.fits
.....................!
real 191.39
user 186.15
sys 4.88

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2259.8-1552 @ 344.953 -15.8809

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/623193/ft1_filtered_4FGL_J2259.8-1552_daily_bin500.fits scfile=/scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits outfile=/scratch/kocevski/623193/cmap_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.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=344.953 yref=-15.8809 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/623193/ft1_filtered_4FGL_J2259.8-1552_daily_bin500.fits scfile=/scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits outfile=/scratch/kocevski/623193/cmap_HighResolution_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.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=344.953 yref=-15.8809 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/623193/ft1_filtered_4FGL_J2259.8-1552_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623193/Model_4FGL_J2259.8-1552_daily_bin500.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/623193/ft1_filtered_4FGL_J2259.8-1552_daily_bin500.fits.....................!
real 57.51
user 56.20
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/623193/ft1_filtered_4FGL_J2259.8-1552_daily_bin500.fits', '/scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits', expMap='/scratch/kocevski/623193/expmap_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.fits', expCube='/scratch/kocevski/623193/ltcube_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/623193/Model_4FGL_J2259.8-1552_daily_bin500.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2259.8-1552'

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.289e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/623193/ft1_filtered_4FGL_J2259.8-1552_daily_bin500.fits
Spacecraft file(s): /scratch/kocevski/623193/ft2_4FGL_J2259.8-1552_daily_bin500.fits
Exposure map: /scratch/kocevski/623193/expmap_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.fits
Exposure cube: /scratch/kocevski/623193/ltcube_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/623193/Model_4FGL_J2259.8-1552_daily_bin500.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) = 7156.09650221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1627       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.6326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    117.55       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8475       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7629       1.0000         .10000E-03   10000.    
     8 'norm      '    6.8662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.520       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10695E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11204E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3903       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.707       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.321       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.942       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0148       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4097       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5192       1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.339       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .52422       1.0000         .10000E-03   10000.    
    27 'norm      '    3.7214       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82099       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84749       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7156.093     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3653 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6799        12.044        .65116E-06   -.43693E-04
   2  Prefactor     8.1578        37.348        .10993E-05    .35972E-05
   3  Prefactor     .10000E-03    47.475        .10312E-05** at limit **
   4  norm          8.6327        4.2598       -.10425E-06   -.31438E-03
   5  Prefactor     117.55        78.476       -.21030E-07   -.22255E-04
   6  Prefactor     9.8482        10.794        .22775E-06   -.14460E-04
   7  norm          3.7628        1.0086       -.55821E-07   -.14645E-02
   8  norm          6.8662        3.1652        .28519E-07   -.61010E-04
   9  Prefactor     11.522        50.922       -.98822E-07   -.69882E-05
  10  Prefactor     .10000E-03    8.4658       -.37119E-07** at limit **
  11  norm          .10000E-03    .43275       -.69297E-06** at limit **
  12  Prefactor     1.3979        45.859        .15533E-04   -.20601E-03
  13  Prefactor     11.707        11.300        .20038E-07    .90913E-05
  14  Prefactor     21.317        11.779        .12517E-06    .24310E-04
  15  Prefactor     17.937        11.519       -.86871E-06   -.26441E-03
  16  Prefactor     6.0140        7.0259       -.24365E-06   -.13537E-03
  17  Prefactor     .10000E-03    5.5751       -.53608E-07** at limit **
  18  Prefactor     .10000E-03    33.963       -.13953E-05** at limit **
  19  Prefactor     .10000E-03    11.771        .85632E-06** at limit **
  20  Prefactor     5.4074        5.5998        .57844E-06    .46229E-03
  21  norm          .10000E-03    1.7640       -.98835E-07** at limit **
  22  norm          1.5194        2.6387        .27093E-06    .92314E-04
  23  Prefactor     36.330        34.618        .21333E-05    .30731E-03
  24  Prefactor     .10000E-03    10.241       -.20166E-05** at limit **
  25  Prefactor     .10000E-03    10.797       -.48252E-06** at limit **
  26  norm          .52419        .37907       -.29248E-07   -.74461E-03
  27  norm          3.7215        3.5411        .56328E-07    .75349E-04
  28  Normalizat    .82093        .16690       -.14049E-06   -.73624E-04
  29  Prefactor     .84749        .13823       -.10970E-05   -.29439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.67991
  Prefactor  = 8.15776
  Prefactor  = 0.0001
  norm       = 8.63271
  Prefactor  = 117.549
  Prefactor  = 9.84822
  norm       = 3.76284
  norm       = 6.86623
  Prefactor  = 11.5215
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.39792
  Prefactor  = 11.7072
  Prefactor  = 21.3175
  Prefactor  = 17.9374
  Prefactor  = 6.01396
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.40743
  norm       = 0.0001
  norm       = 1.51936
  Prefactor  = 36.3303
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.524194
  norm       = 3.72153
  Normalizat = 0.82093
  Prefactor  = 0.847491
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.093     FROM HESSE     STATUS=OK           557 CALLS     4210 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6799        12.029        .68027E-03   -1.5119    
   2  Prefactor     8.1578        37.375        .14033E-03   -1.5137    
   3  Prefactor     .10000E-03    47.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6327        4.2580        .11363E-03   -1.5120    
   5  Prefactor     117.55        78.475        .37113E-04   -1.3535    
   6  Prefactor     9.8482        10.779        .12769E-03   -1.5080    
   7  norm          3.7628        1.0083        .20812E-04   -1.5320    
   8  norm          6.8662        3.1778        .83767E-04   -1.5184    
   9  Prefactor     11.522        51.035        .11803E-03   -1.5029    
  10  Prefactor     .10000E-03    8.5693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .74692        .10367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3979        51.807        .18429E-02   -1.5471    
  13  Prefactor     11.707        11.294        .11708E-03   -1.5024    
  14  Prefactor     21.317        11.787        .86744E-04   -1.4784    
  15  Prefactor     17.937        11.497        .94556E-04   -1.4861    
  16  Prefactor     6.0140        7.0180        .16372E-03   -1.5217    
  17  Prefactor     .10000E-03    5.5970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4074        5.6171        .17277E-03   -1.5243    
  21  norm          .10000E-03    1.7769        .10968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5194        2.6158        .16966E-03   -1.5461    
  23  Prefactor     36.330        35.309        .66483E-04   -1.4502    
  24  Prefactor     .10000E-03    10.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .52419        .38786        .40142E-04   -1.5563    
  27  norm          3.7215        3.5890        .14032E-03   -1.5322    
  28  Normalizat    .82093        .19604        .25975E-03   -.99297    
  29  Prefactor     .84749        .16170        .22301E-03   -.98001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17583e-09
Minuit parameter uncertainties:
  1  12.0324
  2  34.9583
  3  0.000120471
  4  4.2581
  5  78.5449
  6  10.7816
  7  1.00833
  8  3.1779
  9  48.5669
  10  3.73936e-05
  11  3.71429e-05
  12  17.0355
  13  11.296
  14  11.7882
  15  11.4983
  16  7.01899
  17  7.59206e-06
  18  0.000317959
  19  1.12666e-05
  20  5.6177
  21  9.46673e-06
  22  2.61603
  23  35.3298
  24  0.000330401
  25  1.68988e-05
  26  0.387865
  27  3.58923
  28  0.196209
  29  0.161787
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  6.014e+00  7.019e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.475e-01  1.618e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.209e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.68e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 8.60e-06 +/- 1.00e-05

TS (Fixed Index): 1.13
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623193/likelihoodResults_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.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) = 7156.09139536
delta logL = 0.00205531979736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7156.0905836
delta logL = 0.00286708685326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7099       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1955       1.0000          .0000       10.000    
     3 'Normalizat'    .81939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84824       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7156.091     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      208 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7099        229.76        .42024E-02    .37713E-03
   2  Index         2.1956        5.8860        .17229        .82743E-04
   3  Normalizat    .81938        .67100E-01    .43863E-01    .20032E-04
   4  Prefactor     .84825        .46481E-01    .44342E-01    .11699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.70986
  Index      = 2.1956
  Normalizat = 0.819383
  Prefactor  = 0.848247
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.091     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7099        8.3944        .16810E-03   -1.5230    
   2  Index         2.1956        .89828        .10229E-01   -.59545    
   3  Normalizat    .81938        .18055        .25997E-03   -.99354    
   4  Prefactor     .84825        .15730        .22292E-03   -.97974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64186e-09
Minuit parameter uncertainties:
  1  8.39611
  2  0.905484
  3  0.180687
  4  0.157388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623193': 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) = 7156.09058358
delta logL = 0.0028670990414

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  5.710e+00  8.396e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.196e+00  9.055e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.482e-01  1.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  8.194e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.20 +/- 0.91
Photon Flux (Free Index): 1.79e-08 +/- 2.48e-08
Energy Flux (Free Index): 8.10e-06 +/- 1.19e-05

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/623193/cmap_HighResolution_368928001_369187201_4FGL_J2259.8-1552_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', comment='SUCCESS', photon_flux='1.68e-08', energy_flux2='8.10e-06', photon_flux_error='1.95e-08', dlogl='2.87e-03', energy_flux='8.60e-06', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-29 04:50:57.930707', photon_index_error2='0.91', photon_index2='2.20', ts='1.13', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.61e-08', energy_flux_error2='1.19e-05', EG='0.82', time_epoch_completed='1632916257.93', return_code='0', job_id='623193', GAL2='0.85', EG2='0.82', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='2.48e-08', ts2='1.13', photon_index='2.13' WHERE bin_id='500' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 623193: <4FGL_J2259.8-1552_daily_bin500> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin500> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:51 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 04:35:53 2021
Terminated at Wed Sep 29 04:50:58 2021
Results reported at Wed Sep 29 04:50:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin500 344.953 -15.8809 368928001 369187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2259.8-1552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   817.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

