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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin131
RA = 344.953, Dec = -15.8809
tmin = 273283201, tmax = 273542401
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='621489', job_status='RUN', time_executed='2021-09-29 04:30:43.152415', time_epoch_executed='1632915043.15' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621489/ft1_4FGL_J2259.8-1552_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621489/ft2_4FGL_J2259.8-1552_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621489/ft1_4FGL_J2259.8-1552_daily_bin131.fits outfile=/scratch/kocevski/621489/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin131.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=273283201.0 tmax=273542401.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 1.68
user 1.51
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621489/ft1_filtered_4FGL_J2259.8-1552_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/621489/ft2_4FGL_J2259.8-1552_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/621489/ltcube_273283201_273542401_4FGL_J2259.8-1552_daily_bin131.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/621489/ft2_4FGL_J2259.8-1552_daily_bin131.fits
.....................!
real 12.34
user 12.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621489/ft1_filtered_4FGL_J2259.8-1552_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/621489/ft2_4FGL_J2259.8-1552_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/621489/ltcube_273283201_273542401_4FGL_J2259.8-1552_daily_bin131.fits outfile=/scratch/kocevski/621489/expmap_273283201_273542401_4FGL_J2259.8-1552_daily_bin131.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/621489/ltcube_273283201_273542401_4FGL_J2259.8-1552_daily_bin131.fits
.....................!
real 189.67
user 185.12
sys 4.25

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/621489/ft1_filtered_4FGL_J2259.8-1552_daily_bin131.fits scfile=/scratch/kocevski/621489/ft2_4FGL_J2259.8-1552_daily_bin131.fits outfile=/scratch/kocevski/621489/cmap_273283201_273542401_4FGL_J2259.8-1552_daily_bin131.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621489/ft1_filtered_4FGL_J2259.8-1552_daily_bin131.fits scfile=/scratch/kocevski/621489/ft2_4FGL_J2259.8-1552_daily_bin131.fits outfile=/scratch/kocevski/621489/cmap_HighResolution_273283201_273542401_4FGL_J2259.8-1552_daily_bin131.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621489/ft1_filtered_4FGL_J2259.8-1552_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/621489/ft2_4FGL_J2259.8-1552_daily_bin131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621489/Model_4FGL_J2259.8-1552_daily_bin131.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/621489/ft1_filtered_4FGL_J2259.8-1552_daily_bin131.fits.....................!
real 54.63
user 53.29
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.603       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.465       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4538       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5337       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.728       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.654       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    128.39       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7636       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12445E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0902       1.0000         .10000E-03   10000.    
    22 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.259       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.373       1.0000         .10000E-03   10000.    
    26 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77301       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87168       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=   6549.098     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3905 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0293       -.36686E-08** at limit **
   2  Prefactor     49.605        73.165        .11004E-05   -.37035E-05
   3  Prefactor     .10000E-03    157.67        .18282E-05** at limit **
   4  norm          10.465        4.0085       -.20152E-06   -.73618E-04
   5  Prefactor     .10000E-03    23.419        .48002E-06** at limit **
   6  Prefactor     3.4538        9.9799       -.27358E-05   -.15282E-03
   7  norm          1.5338        .79238       -.43276E-06   -.77234E-02
   8  norm          .10000E-03    .64790        .97020E-08** at limit **
   9  Prefactor     .10000E-03    20.235       -.21072E-06** at limit **
  10  Prefactor     .10074E-03    10.214       -.11744E-06** at limit **
  11  norm          1.1005        1.0460       -.68654E-07   -.33474E-03
  12  Prefactor     .10000E-03    12.702        .11176E-06** at limit **
  13  Prefactor     16.728        21.157        .39478E-05   -.90007E-04
  14  Prefactor     28.650        15.123       -.20672E-05    .10230E-03
  15  Prefactor     .10000E-03    3.3287       -.23848E-07** at limit **
  16  Prefactor     .10000E-03    1.9790       -.87478E-08** at limit **
  17  Prefactor     .10000E-03    5.6255        .40923E-07** at limit **
  18  Prefactor     128.40        53.147       -.38398E-05    .10607E-03
  19  Prefactor     4.7638        16.525        .44598E-05   -.90282E-04
  20  Prefactor     .10000E-03    6.9380        .35112E-06** at limit **
  21  norm          2.0894        4.2508       -.22293E-06   -.63547E-03
  22  norm          .10000E-03    1.8027        .13850E-06** at limit **
  23  Prefactor     .10000E-03    11.930       -.69896E-08** at limit **
  24  Prefactor     13.255        12.361       -.54899E-05    .27622E-03
  25  Prefactor     12.365        25.905       -.77669E-05    .76989E-04
  26  norm          .10000E-03    .19946        .45352E-07** at limit **
  27  norm          .10000E-03    1.2182        .33662E-07** at limit **
  28  Normalizat    .77316        .16997        .37856E-05   -.89464E-04
  29  Prefactor     .87156        .13827       -.52270E-06    .15992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.605
  Prefactor  = 0.0001
  norm       = 10.4649
  Prefactor  = 0.0001
  Prefactor  = 3.45379
  norm       = 1.5338
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100736
  norm       = 1.10046
  Prefactor  = 0.0001
  Prefactor  = 16.728
  Prefactor  = 28.6496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.403
  Prefactor  = 4.76376
  Prefactor  = 0.0001
  norm       = 2.08941
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2555
  Prefactor  = 12.3655
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.773164
  Prefactor  = 0.871555
 **********
 **   18 **HESSE 
 **********

 FCN=   6549.098     FROM HESSE     STATUS=OK           561 CALLS     4466 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0381        .17724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.605        73.182        .56939E-04   -1.4298    
   3  Prefactor     .10000E-03    158.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.465        4.0092        .92995E-04   -1.5061    
   5  Prefactor     .10000E-03    23.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4538        10.067        .21762E-03   -1.5336    
   7  norm          1.5338        .85232        .26388E-03   -1.5460    
   8  norm          .10000E-03    .65441        .63584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10074E-03    36.874        .55916E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1005        1.3022        .59419E-03   -1.5498    
  12  Prefactor     .10000E-03    12.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.728        21.043        .97926E-04   -1.4890    
  14  Prefactor     28.650        15.078        .74844E-04   -1.4637    
  15  Prefactor     .10000E-03    3.3424        .14419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9808        .11118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     128.40        52.543        .35531E-04   -1.3437    
  19  Prefactor     4.7638        16.387        .18435E-03   -1.5271    
  20  Prefactor     .10000E-03    6.9650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0894        4.2404        .22618E-03   -1.5419    
  22  norm          .10000E-03    1.8762        .21168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.255        12.120        .11000E-03   -1.4980    
  25  Prefactor     12.365        25.748        .11388E-03   -1.5005    
  26  norm          .10000E-03    .48732        .70020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2230        .87193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77316        .19925        .25827E-03   -1.0107    
  29  Prefactor     .87156        .16413        .21018E-03   -.97142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10327e-09
Minuit parameter uncertainties:
  1  7.55742e-06
  2  73.3151
  3  0.000268275
  4  4.00929
  5  2.19079e-05
  6  10.0715
  7  0.852322
  8  4.06343e-07
  9  4.07088e-05
  10  0.0104278
  11  1.30221
  12  9.44596e-06
  13  21.0519
  14  15.0798
  15  3.56172e-06
  16  1.46104e-06
  17  1.21252e-05
  18  52.562
  19  16.4022
  20  8.38113e-05
  21  4.24098
  22  1.76272e-05
  23  2.58994e-05
  24  12.1222
  25  25.7711
  26  4.41057e-06
  27  1.90096e-06
  28  0.199442
  29  0.164218
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.461e-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:  8.716e-01  1.642e-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:  7.732e-01  1.994e-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: 3.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621489/likelihoodResults_273283201_273542401_4FGL_J2259.8-1552_daily_bin131.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6549.1006016
delta logL = -0.00236748227235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6549.09823348
delta logL = 6.4273353928e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1063       1.0000          .0000       10.000    
     3 'Normalizat'    .77316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87155       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=   6549.098     FROM MIGRAD    STATUS=FAILED        87 CALLS      236 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10205E-03    29.327        .11412E-02** at limit **
   2  Index         2.0360        8.3933        .50000        .86463E-04
   3  Normalizat    .77317        .14416E-01    .25827E-03   -.29669E-04
   4  Prefactor     .87155        .12472E-01    .21018E-03   -.11088E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6549.098     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      359 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10205E-03    29.327        .23261E-03** at limit **
   2  Index         2.0360        8.3933        .14361E-02    .86463E-04
   3  Normalizat    .77317        .14416E-01    .12602E-04   -.29669E-04
   4  Prefactor     .87155        .12472E-01    .86126E-05   -.11088E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6549.098     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      406 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.641        .22823E-02** at limit **
   2  Index         1.5866        5.0340        .50000        .14052E-06
   3  Normalizat    .77317        .14655E-01    .10331E-04    .38737E-03
   4  Prefactor     .87155        .12679E-01    .84073E-05    .47004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.58665
  Normalizat = 0.773168
  Prefactor  = 0.871553
 **********
 **   18 **HESSE 
 **********

 FCN=   6549.098     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      435 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    168.90        .45646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5866        8.1904        .50000       -.75141    
   3  Normalizat    .77317        .33048E-01    .20661E-05   -1.0107    
   4  Prefactor     .87155        .28594E-01    .16815E-05   -.97142    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.60438e-11
Minuit parameter uncertainties:
  1  0.000109657
  2  584.966
  3  0.0330487
  4  0.0285948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621489': 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) = 6549.09822735
delta logL = 6.77351454215e-06

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.097e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.587e+00  5.850e+02  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.716e-01  2.859e-02  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:  7.732e-01  3.305e-02  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/621489/cmap_HighResolution_273283201_273542401_4FGL_J2259.8-1552_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-03', job_status='DONE', photon_flux_upper_limit='3.07e-08', time_completed='2021-09-29 04:43:58.875828', job_id='621489', GAL2='0.87', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632915838.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='6.77e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='131' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:43:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 621489: <4FGL_J2259.8-1552_daily_bin131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin131 344.953 -15.8809 273283201 273542401 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 :                                   792.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

