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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin599
RA = 344.953, Dec = -15.8809
tmin = 394588801, tmax = 394848001
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='624391', job_status='RUN', time_executed='2021-09-29 04:40:31.020922', time_epoch_executed='1632915631.02' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624391

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624391/ft1_4FGL_J2259.8-1552_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624391/ft2_4FGL_J2259.8-1552_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624391/ft1_4FGL_J2259.8-1552_daily_bin599.fits outfile=/scratch/kocevski/624391/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin599.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=394588801.0 tmax=394848001.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.55
user 4.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624391/ft1_filtered_4FGL_J2259.8-1552_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/624391/ft2_4FGL_J2259.8-1552_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/624391/ltcube_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.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/624391/ft2_4FGL_J2259.8-1552_daily_bin599.fits
.....................!
real 11.84
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624391/ft1_filtered_4FGL_J2259.8-1552_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/624391/ft2_4FGL_J2259.8-1552_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/624391/ltcube_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.fits outfile=/scratch/kocevski/624391/expmap_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.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/624391/ltcube_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.fits
.....................!
real 191.44
user 185.66
sys 5.46

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/624391/ft1_filtered_4FGL_J2259.8-1552_daily_bin599.fits scfile=/scratch/kocevski/624391/ft2_4FGL_J2259.8-1552_daily_bin599.fits outfile=/scratch/kocevski/624391/cmap_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624391/ft1_filtered_4FGL_J2259.8-1552_daily_bin599.fits scfile=/scratch/kocevski/624391/ft2_4FGL_J2259.8-1552_daily_bin599.fits outfile=/scratch/kocevski/624391/cmap_HighResolution_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.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/624391/ft1_filtered_4FGL_J2259.8-1552_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/624391/ft2_4FGL_J2259.8-1552_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624391/Model_4FGL_J2259.8-1552_daily_bin599.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/624391/ft1_filtered_4FGL_J2259.8-1552_daily_bin599.fits.....................!
real 41.37
user 40.16
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/624391/ft1_filtered_4FGL_J2259.8-1552_daily_bin599.fits', '/scratch/kocevski/624391/ft2_4FGL_J2259.8-1552_daily_bin599.fits', expMap='/scratch/kocevski/624391/expmap_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.fits', expCube='/scratch/kocevski/624391/ltcube_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/624391/Model_4FGL_J2259.8-1552_daily_bin599.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/624391/ft1_filtered_4FGL_J2259.8-1552_daily_bin599.fits
Spacecraft file(s): /scratch/kocevski/624391/ft2_4FGL_J2259.8-1552_daily_bin599.fits
Exposure map: /scratch/kocevski/624391/expmap_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.fits
Exposure cube: /scratch/kocevski/624391/ltcube_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/624391/Model_4FGL_J2259.8-1552_daily_bin599.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4309.10448526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1754       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.770       1.0000         .10000E-03   10000.    
     7 'norm      '    .62445       1.0000         .10000E-03   10000.    
     8 'norm      '    .22575       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.635       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3475       1.0000         .10000E-03   10000.    
    11 'norm      '    .39848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.409       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .90146       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.091       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.644       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2107       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.069       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.6849       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3312       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .58223       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4309.082     FROM MIGRAD    STATUS=FAILED      1266 CALLS     4376 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4986        25.885        .14650E-03    .35543E-04
   2  Prefactor     3.2589        401.49        .22583E-03   -.37253E-05
   3  Prefactor     .10000E-03    26.206        .18142E-02** at limit **
   4  norm          2.1755        3.4073        .14388E-03    .27996E-03
   5  Prefactor     .10000E-03    37.925        .18142E-02** at limit **
   6  Prefactor     28.761        21.547        .74693E-04   -.29826E-03
   7  norm          .62441        .74388        .61841E-03    .29080E-03
   8  norm          .22193        13.153        .18429E-02   -.12451E-03
   9  Prefactor     25.710        89.804        .79119E-04    .79490E-04
  10  Prefactor     5.3760        145.87        .17379E-03    .83601E-04
  11  norm          .39770        15.890        .12183E-03    .70116E-03
  12  Prefactor     35.376        44.152        .67347E-04    .38741E-03
  13  Prefactor     .91654        392.52        .55789E-02    .51900E-03
  14  Prefactor     16.069        31.590        .99846E-04    .60818E-03
  15  Prefactor     .10000E-03    24.100        .36285E-03** at limit **
  16  Prefactor     .10000E-03    23.843        .36285E-03** at limit **
  17  Prefactor     12.649        17.284        .11265E-03    .75275E-03
  18  Prefactor     6.2322        346.46        .16108E-03    .77635E-05
  19  Prefactor     .10000E-03    9.8334        .18142E-02** at limit **
  20  Prefactor     10.068        13.477        .12628E-03    .40964E-04
  21  norm          .10000E-03    2.4445        .10015E-02** at limit **
  22  norm          .10000E-03    1.2024        .70030E-03** at limit **
  23  Prefactor     .10000E-03    38.749        .18142E-02** at limit **
  24  Prefactor     .10000E-03    6.1717        .15923E-02** at limit **
  25  Prefactor     .10000E-03    21.510        .18142E-02** at limit **
  26  norm          3.6851        1.0034        .21040E-04    .28368E-03
  27  norm          .10000E-03    3.5668        .12078E-02** at limit **
  28  Normalizat    1.3311        .29724        .23674E-03    .44350E-03
  29  Prefactor     .58230        .22035        .27160E-03    .24842E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4309.082     FROM SIMPLEX   STATUS=UNCHANGED   1541 CALLS     5917 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4986        25.885        .25384E-06   -1.5160    
   2  Prefactor     3.2589        401.49        .59711E-05   -1.5347    
   3  Prefactor     .10000E-03    26.206        .10328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1755        3.4073        .55931E-07   -1.5413    
   5  Prefactor     .10000E-03    37.925        .12645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.761        21.547        .54283E-07   -1.4635    
   7  norm          .62441        .74388        .56596E-07   -1.5550    
   8  norm          .22193        13.153        .85503E-07   -1.5614    
   9  Prefactor     25.710        89.804        .75060E-07   -1.4693    
  10  Prefactor     5.3760        145.87        .26329E-06   -1.5244    
  11  norm          .39770        15.890        .92507E-07   -1.5582    
  12  Prefactor     35.376        44.152        .65077E-07   -1.4518    
  13  Prefactor     .91654        392.52        .19072E-05   -1.5516    
  14  Prefactor     16.069        31.590        .63923E-07   -1.4906    
  15  Prefactor     .10000E-03    24.100        .90431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.843        .18260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.649        17.284        .54167E-07   -1.4997    
  18  Prefactor     6.2322        346.46        .56714E-07   -1.5209    
  19  Prefactor     .10000E-03    9.8334        .16650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.068        13.477        .54452E-07   -1.5073    
  21  norm          .10000E-03    2.4445        .12482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2024        .14813E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.749        .27887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.1717        .90290E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.510        .27267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6851        1.0034        .55348E-07   -1.5324    
  27  norm          .10000E-03    3.5668        .41236E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3311        .29724        .29847E-07   -.82644    
  29  Prefactor     .58230        .22035        .39124E-07   -1.0834    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4309.082     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     6450 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4986        25.879        .58598E-05    .50443E-05
   2  Prefactor     3.2592        401.35        .90333E-05   -.50341E-06
   3  Prefactor     .10000E-03    26.206        .36285E-03** at limit **
   4  norm          2.1754        3.4067        .57551E-05    .41484E-04
   5  Prefactor     .10000E-03    37.925        .36285E-03** at limit **
   6  Prefactor     28.762        21.517        .14939E-04   -.60730E-04
   7  norm          .62441        .74346        .24736E-04    .39525E-04
   8  norm          .22199        12.026        .73716E-04   -.29765E-04
   9  Prefactor     25.709        86.081        .15824E-04   -.40233E-05
  10  Prefactor     5.3774        132.76        .69517E-05    .17989E-04
  11  norm          .39758        14.392        .48733E-05    .87715E-04
  12  Prefactor     35.376        43.752        .13469E-04    .60096E-04
  13  Prefactor     .91764        310.13        .11158E-02    .17046E-04
  14  Prefactor     16.068        28.305        .19969E-04   -.18332E-04
  15  Prefactor     .10000E-03    24.102        .72569E-04** at limit **
  16  Prefactor     .10000E-03    23.845        .72569E-04** at limit **
  17  Prefactor     12.649        17.272        .22530E-04    .53488E-04
  18  Prefactor     6.2325        345.51        .64433E-05    .10587E-05
  19  Prefactor     .10000E-03    9.8335        .36285E-03** at limit **
  20  Prefactor     10.068        13.464        .50510E-05    .58520E-05
  21  norm          .10000E-03    2.4445        .20030E-03** at limit **
  22  norm          .10000E-03    1.2024        .14006E-03** at limit **
  23  Prefactor     .10000E-03    38.751        .36285E-03** at limit **
  24  Prefactor     .10000E-03    6.1717        .31847E-03** at limit **
  25  Prefactor     .10000E-03    21.511        .36285E-03** at limit **
  26  norm          3.6851        1.0033        .84160E-06    .39830E-04
  27  norm          .10000E-03    3.5670        .24156E-03** at limit **
  28  Normalizat    1.3311        .29559        .47349E-04    .42835E-04
  29  Prefactor     .58230        .21936        .10864E-04    .17371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.49856
  Prefactor  = 3.2592
  Prefactor  = 0.0001
  norm       = 2.17545
  Prefactor  = 0.0001
  Prefactor  = 28.7617
  norm       = 0.624413
  norm       = 0.221987
  Prefactor  = 25.7089
  Prefactor  = 5.3774
  norm       = 0.397582
  Prefactor  = 35.3757
  Prefactor  = 0.917644
  Prefactor  = 16.0682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6488
  Prefactor  = 6.23247
  Prefactor  = 0.0001
  Prefactor  = 10.0682
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.68509
  norm       = 0.0001
  Normalizat = 1.33107
  Prefactor  = 0.5823
 **********
 **   18 **HESSE 
 **********

 FCN=   4309.082     FROM HESSE     STATUS=OK           523 CALLS     6973 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4986        25.904        .11720E-05   -1.5160    
   2  Prefactor     3.2592        397.63        .18067E-05   -1.5347    
   3  Prefactor     .10000E-03    26.206        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1754        3.4053        .11510E-05   -1.5413    
   5  Prefactor     .10000E-03    37.925        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.762        21.518        .29877E-05   -1.4635    
   7  norm          .62441        .74355        .98945E-06   -1.5550    
   8  norm          .22199        11.976        .29486E-05   -1.5614    
   9  Prefactor     25.709        85.962        .31648E-05   -1.4693    
  10  Prefactor     5.3774        134.26        .13903E-05   -1.5244    
  11  norm          .39758        14.627        .97466E-06   -1.5582    
  12  Prefactor     35.376        43.847        .26939E-05   -1.4518    
  13  Prefactor     .91764        294.25        .44631E-04   -1.5516    
  14  Prefactor     16.068        27.675        .39938E-05   -1.4906    
  15  Prefactor     .10000E-03    24.101        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.845        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.649        17.268        .45060E-05   -1.4997    
  18  Prefactor     6.2325        334.37        .12887E-05   -1.5209    
  19  Prefactor     .10000E-03    9.8335        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.068        13.467        .10102E-05   -1.5073    
  21  norm          .10000E-03    2.4445        .40061E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.2024        .28012E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.751        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.1718        .63694E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.511        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.6851        1.0032        .36535E-06   -1.5324    
  27  norm          .10000E-03    3.5670        .48311E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3311        .29377        .94697E-05   -.82644    
  29  Prefactor     .58230        .21918        .21728E-05   -1.0834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43925e-11
Minuit parameter uncertainties:
  1  25.9427
  2  72.4961
  3  5.23712e-06
  4  3.40559
  5  1.75296e-06
  6  21.5238
  7  0.743565
  8  3.26093
  9  86.3805
  10  53.8733
  11  4.82364
  12  43.8866
  13  33.0276
  14  27.6968
  15  3.84009e-05
  16  3.84526e-06
  17  17.2744
  18  91.8456
  19  7.03762e-07
  20  13.4712
  21  3.86271e-07
  22  5.43516e-07
  23  2.35178e-06
  24  6.74799e-07
  25  3.20306e-07
  26  1.00324
  27  8.04073e-07
  28  0.294136
  29  0.219503
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.845e-06  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:  5.823e-01  2.195e-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:  1.331e+00  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/624391/likelihoodResults_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.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) = 4309.08255668
delta logL = -0.000200244351618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4309.08235575
delta logL = 6.90642082191e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2165       1.0000          .0000       10.000    
     3 'Normalizat'    1.3311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58230       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4309.041     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      324 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42018        18.962        .14748E-03    .92267E-03
   2  Index         3.3303        6.6647        .11445E-01   -.11366E-03
   3  Normalizat    1.3159        .26481        .23791E-03   -.30055E-03
   4  Prefactor     .58786        .20661        .27038E-03   -.11916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.420178
  Index      = 3.33029
  Normalizat = 1.31591
  Prefactor  = 0.587856
 **********
 **   18 **HESSE 
 **********

 FCN=   4309.041     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42018        4.6092        .58990E-05   -1.5838    
   2  Index         3.3303        2.7189        .45779E-03   -.34048    
   3  Normalizat    1.3159        .26429        .47583E-04   -.83093    
   4  Prefactor     .58786        .20594        .10815E-04   -1.0810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22783e-09
Minuit parameter uncertainties:
  1  2.78323
  2  2.89811
  3  0.26456
  4  0.206208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624391': 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) = 4309.04123601
delta logL = 0.0411204282409

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  4.202e-01  2.783e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.330e+00  2.898e+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:  5.879e-01  2.062e-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:  1.316e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.953 -15.881

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/624391/cmap_HighResolution_394588801_394848001_4FGL_J2259.8-1552_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-29 04:52:46.513730', job_id='624391', GAL2='0.59', fit_tolerance='1e-08', EG2='1.32', EG='1.33', time_epoch_completed='1632916366.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='4.11e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='599' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:52:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 624391: <4FGL_J2259.8-1552_daily_bin599> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin599> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:40:17 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:40:18 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:40:18 2021
Terminated at Wed Sep 29 04:52:47 2021
Results reported at Wed Sep 29 04:52:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin599 344.953 -15.8809 394588801 394848001 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 :                                   734.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

