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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin170
RA = 344.953, Dec = -15.8809
tmin = 283392001, tmax = 283651201
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='621544', job_status='RUN', time_executed='2021-09-29 04:33:01.379751', time_epoch_executed='1632915181.38' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621544

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621544/ft1_4FGL_J2259.8-1552_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621544/ft2_4FGL_J2259.8-1552_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621544/ft1_4FGL_J2259.8-1552_daily_bin170.fits outfile=/scratch/kocevski/621544/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin170.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=283392001.0 tmax=283651201.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.63
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621544/ft2_4FGL_J2259.8-1552_daily_bin170.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/621544/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/621544/ft1_filtered_4FGL_J2259.8-1552_daily_bin170.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621544/ft1_filtered_4FGL_J2259.8-1552_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/621544/ft2_4FGL_J2259.8-1552_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/621544/ltcube_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.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/621544/ft2_4FGL_J2259.8-1552_daily_bin170.fits
.....................!
real 11.88
user 11.42
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621544/ft1_filtered_4FGL_J2259.8-1552_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/621544/ft2_4FGL_J2259.8-1552_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/621544/ltcube_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.fits outfile=/scratch/kocevski/621544/expmap_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.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/621544/ltcube_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.fits
.....................!
real 191.09
user 184.40
sys 6.35

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/621544/ft1_filtered_4FGL_J2259.8-1552_daily_bin170.fits scfile=/scratch/kocevski/621544/ft2_4FGL_J2259.8-1552_daily_bin170.fits outfile=/scratch/kocevski/621544/cmap_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621544/ft1_filtered_4FGL_J2259.8-1552_daily_bin170.fits scfile=/scratch/kocevski/621544/ft2_4FGL_J2259.8-1552_daily_bin170.fits outfile=/scratch/kocevski/621544/cmap_HighResolution_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621544/ft1_filtered_4FGL_J2259.8-1552_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/621544/ft2_4FGL_J2259.8-1552_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621544/Model_4FGL_J2259.8-1552_daily_bin170.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/621544/ft1_filtered_4FGL_J2259.8-1552_daily_bin170.fits.....................!
real 44.46
user 43.18
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/621544/ft1_filtered_4FGL_J2259.8-1552_daily_bin170.fits', '/scratch/kocevski/621544/ft2_4FGL_J2259.8-1552_daily_bin170.fits', expMap='/scratch/kocevski/621544/expmap_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.fits', expCube='/scratch/kocevski/621544/ltcube_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/621544/Model_4FGL_J2259.8-1552_daily_bin170.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/621544/ft1_filtered_4FGL_J2259.8-1552_daily_bin170.fits
Spacecraft file(s): /scratch/kocevski/621544/ft2_4FGL_J2259.8-1552_daily_bin170.fits
Exposure map: /scratch/kocevski/621544/expmap_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.fits
Exposure cube: /scratch/kocevski/621544/ltcube_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/621544/Model_4FGL_J2259.8-1552_daily_bin170.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) = 4743.9621909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.915       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0011       1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5315       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.226       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.249       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32957E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .13604E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0424       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.651       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1466       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.083       1.0000         .10000E-03   10000.    
    26 'norm      '    .93025       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94837       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91401       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=   4743.938     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3719 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.630        .18964E-05** at limit **
   2  Prefactor     .10000E-03    39.731        .81015E-06** at limit **
   3  Prefactor     .10000E-03    35.853        .11088E-05** at limit **
   4  norm          10.916        5.0766       -.14585E-06   -.26974E-03
   5  Prefactor     12.291        92.721        .40533E-06   -.15232E-04
   6  Prefactor     .10000E-03    14.196        .13431E-05** at limit **
   7  norm          2.0013        1.3108        .11114E-06   -.45255E-03
   8  norm          .10000E-03    .93108       -.54446E-06** at limit **
   9  Prefactor     14.770        49.476        .75969E-06    .12475E-04
  10  Prefactor     .10000E-03    9.2336        .12508E-05** at limit **
  11  norm          .10000E-03    .47224        .70372E-06** at limit **
  12  Prefactor     .10000E-03    71.429        .71469E-05** at limit **
  13  Prefactor     .10000E-03    11.392       -.11004E-06** at limit **
  14  Prefactor     16.132        17.056       -.44826E-06   -.37284E-04
  15  Prefactor     1.0130        9.6839        .26646E-05    .67802E-04
  16  Prefactor     5.5346        17.367        .21088E-05   -.79996E-05
  17  Prefactor     13.224        15.827       -.72554E-08   -.32574E-04
  18  Prefactor     21.168        53.152       -.10745E-05   -.13551E-04
  19  Prefactor     .10000E-03    9.5273       -.14301E-06** at limit **
  20  Prefactor     .10002E-03    37.929       -.63006E-05** at limit **
  21  norm          .10005E-03    29.291       -.68194E-05** at limit **
  22  norm          3.0428        2.7758       -.81442E-07   -.81102E-04
  23  Prefactor     20.587        45.680        .15505E-05   -.29414E-04
  24  Prefactor     1.1579        57.362       -.51168E-05   -.24214E-04
  25  Prefactor     14.076        38.391       -.31263E-06   -.13338E-04
  26  norm          .93026        .57974       -.86768E-07   -.55083E-03
  27  norm          .10000E-03    2.7431        .10232E-06** at limit **
  28  Normalizat    .94809        .23144        .26592E-05   -.28201E-03
  29  Prefactor     .91417        .18448       -.29022E-05   -.73804E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9159
  Prefactor  = 12.2906
  Prefactor  = 0.0001
  norm       = 2.00131
  norm       = 0.0001
  Prefactor  = 14.7702
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 16.1323
  Prefactor  = 1.01303
  Prefactor  = 5.53456
  Prefactor  = 13.2244
  Prefactor  = 21.1679
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.000100047
  norm       = 3.04282
  Prefactor  = 20.5875
  Prefactor  = 1.15795
  Prefactor  = 14.076
  norm       = 0.930265
  norm       = 0.0001
  Normalizat = 0.948086
  Prefactor  = 0.914168
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.938     FROM HESSE     STATUS=OK           559 CALLS     4278 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.916        5.0783        .99951E-04   -1.5047    
   5  Prefactor     12.291        92.936        .11416E-03   -1.5007    
   6  Prefactor     .10000E-03    14.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0013        1.2984        .59410E-04   -1.5425    
   8  norm          .10000E-03    .93942        .64976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.770        49.508        .10417E-03   -1.4939    
  10  Prefactor     .10000E-03    9.2477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .48076        .91554E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    71.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.132        17.026        .99734E-04   -1.4904    
  15  Prefactor     1.0130        9.6620        .41374E-03   -1.5507    
  16  Prefactor     5.5346        17.366        .85414E-03   -1.5237    
  17  Prefactor     13.224        15.796        .11014E-03   -1.4980    
  18  Prefactor     21.168        53.615        .86890E-04   -1.4787    
  19  Prefactor     .10000E-03    9.5296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    53.058        .35297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10005E-03    56.637        .33644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0428        2.7700        .10432E-03   -1.5359    
  23  Prefactor     20.587        46.292        .88138E-04   -1.4800    
  24  Prefactor     1.1579        59.149        .21647E-02   -1.5493    
  25  Prefactor     14.076        38.336        .10673E-03   -1.4957    
  26  norm          .93026        .57970        .39953E-04   -1.5515    
  27  norm          .10000E-03    2.7618        .11131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .94809        .25961        .26464E-03   -.94790    
  29  Prefactor     .91417        .20685        .22286E-03   -.95648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67604e-09
Minuit parameter uncertainties:
  1  0.000101683
  2  5.26207e-06
  3  0.000240787
  4  5.07847
  5  67.7409
  6  9.44813e-05
  7  1.29838
  8  9.08063e-06
  9  49.6464
  10  1.18012e-05
  11  2.7334e-06
  12  0.000697007
  13  8.38269e-08
  14  17.0313
  15  6.25812
  16  17.3822
  17  15.8008
  18  53.7371
  19  3.17253e-06
  20  0.00200123
  21  0.00327624
  22  2.77009
  23  46.3733
  24  16.5685
  25  38.4028
  26  0.5797
  27  6.04396e-06
  28  0.259956
  29  0.207024
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  5.535e+00  1.738e+01  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:  9.142e-01  2.070e-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:  9.481e-01  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621544/likelihoodResults_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.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) = 4743.42792976
delta logL = 0.51031709764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4743.39643673
delta logL = 0.541810130561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4715       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2940       1.0000          .0000       10.000    
     3 'Normalizat'    .87531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94639       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=   4743.396     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      250 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4640        57.486        .65024E-02    .59247E-03
   2  Index         3.2952        3.2306        .97337E-01    .16217E-03
   3  Normalizat    .87527        .64420E-01    .44585E-01   -.24809E-04
   4  Prefactor     .94642        .51997E-01    .45593E-01   -.54218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46397
  Index      = 3.29516
  Normalizat = 0.875268
  Prefactor  = 0.946417
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.396     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4640        104.72        .99355E-04   -1.5394    
   2  Index         3.2952        6.6472        .49528E-02   -.34795    
   3  Normalizat    .87527        .25458        .27422E-03   -.97335    
   4  Prefactor     .94642        .21835        .21933E-03   -.94538    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.67947e-10
Minuit parameter uncertainties:
  1  32.1857
  2  5.82674
  3  0.254934
  4  0.218557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621544': 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) = 4743.39643613
delta logL = 0.541810730353

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.464e+00  3.219e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.295e+00  5.827e+00  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:  9.464e-01  2.186e-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.753e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 3.30 +/- 5.83
Photon Flux (Free Index): 7.83e-08 +/- 7.90e-08
Energy Flux (Free Index): 1.39e-05 +/- 2.84e-05

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/621544/cmap_HighResolution_283392001_283651201_4FGL_J2259.8-1552_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='5.42e-01', photon_flux2='7.83e-08', job_status='DONE', time_completed='2021-09-29 04:43:36.833871', photon_index_error2='5.83', photon_index2='3.30', ts='0.11', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='2.84e-05', EG='0.95', time_epoch_completed='1632915816.83', return_code='0', job_id='621544', GAL2='0.95', EG2='0.88', return_code2='102', photon_flux_error2='7.90e-08', ts2='1.26', photon_index='2.13' WHERE bin_id='170' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:43:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 621544: <4FGL_J2259.8-1552_daily_bin170> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 04:30:29 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:30:31 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:30:31 2021
Terminated at Wed Sep 29 04:43:37 2021
Results reported at Wed Sep 29 04:43:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin170 344.953 -15.8809 283392001 283651201 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 :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            788 sec.

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

