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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1274
RA = 344.953, Dec = -15.8809
tmin = 569548801, tmax = 569808001
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='628608', job_status='RUN', time_executed='2021-09-29 04:56:27.175106', time_epoch_executed='1632916587.18' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628608

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628608/ft1_4FGL_J2259.8-1552_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628608/ft2_4FGL_J2259.8-1552_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628608/ft1_4FGL_J2259.8-1552_daily_bin1274.fits outfile=/scratch/kocevski/628608/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1274.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=569548801.0 tmax=569808001.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.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628608/ft1_filtered_4FGL_J2259.8-1552_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/628608/ft2_4FGL_J2259.8-1552_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/628608/ltcube_569548801_569808001_4FGL_J2259.8-1552_daily_bin1274.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/628608/ft2_4FGL_J2259.8-1552_daily_bin1274.fits
.....................!
real 11.85
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628608/ft1_filtered_4FGL_J2259.8-1552_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/628608/ft2_4FGL_J2259.8-1552_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/628608/ltcube_569548801_569808001_4FGL_J2259.8-1552_daily_bin1274.fits outfile=/scratch/kocevski/628608/expmap_569548801_569808001_4FGL_J2259.8-1552_daily_bin1274.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/628608/ltcube_569548801_569808001_4FGL_J2259.8-1552_daily_bin1274.fits
.....................!
real 191.01
user 185.52
sys 5.10

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/628608/ft1_filtered_4FGL_J2259.8-1552_daily_bin1274.fits scfile=/scratch/kocevski/628608/ft2_4FGL_J2259.8-1552_daily_bin1274.fits outfile=/scratch/kocevski/628608/cmap_569548801_569808001_4FGL_J2259.8-1552_daily_bin1274.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628608/ft1_filtered_4FGL_J2259.8-1552_daily_bin1274.fits scfile=/scratch/kocevski/628608/ft2_4FGL_J2259.8-1552_daily_bin1274.fits outfile=/scratch/kocevski/628608/cmap_HighResolution_569548801_569808001_4FGL_J2259.8-1552_daily_bin1274.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628608/ft1_filtered_4FGL_J2259.8-1552_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/628608/ft2_4FGL_J2259.8-1552_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628608/Model_4FGL_J2259.8-1552_daily_bin1274.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/628608/ft1_filtered_4FGL_J2259.8-1552_daily_bin1274.fits.....................!
real 51.21
user 49.95
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.794       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5321       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5447       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    65.544       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9809       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.3301       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0964       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.683       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11400E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11210E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7416       1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.571       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.0765       1.0000         .10000E-03   10000.    
    26 'norm      '    .29982       1.0000         .10000E-03   10000.    
    27 'norm      '    17.017       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1008       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97371       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=   5792.539     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3842 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.833        21.720        .53735E-06   -.60380E-05
   2  Prefactor     .10000E-03    32.508       -.91717E-06** at limit **
   3  Prefactor     55.786        90.422       -.72776E-06   -.81526E-04
   4  norm          4.5319        4.0496        .13498E-06    .53427E-04
   5  Prefactor     .10000E-03    28.084        .12565E-05** at limit **
   6  Prefactor     5.5490        15.370        .12544E-06   -.26895E-03
   7  norm          .10000E-03    .37541       -.36842E-07** at limit **
   8  norm          .10000E-03    2.1402        .31274E-05** at limit **
   9  Prefactor     46.739        55.740       -.17866E-05   -.39301E-03
  10  Prefactor     65.561        51.417        .27369E-05    .19183E-03
  11  norm          2.4996        4.0353       -.79728E-06    .75260E-04
  12  Prefactor     .10000E-03    111.37        .14165E-05** at limit **
  13  Prefactor     .10000E-03    25.681       -.55741E-06** at limit **
  14  Prefactor     3.9812        24.487        .34808E-06   -.19383E-03
  15  Prefactor     9.3300        9.4047       -.92074E-07   -.26720E-04
  16  Prefactor     .10000E-03    3.7434        .44066E-07** at limit **
  17  Prefactor     2.0977        63.083        .12170E-05   -.87782E-04
  18  Prefactor     .10000E-03    51.692        .83019E-06** at limit **
  19  Prefactor     20.673        27.818       -.79198E-06   -.61733E-04
  20  Prefactor     .10003E-03    6.6585       -.37546E-06** at limit **
  21  norm          .10000E-03    5.8535        .51065E-07** at limit **
  22  norm          3.7415        3.3658        .12133E-06   -.19071E-04
  23  Prefactor     52.602        73.509        .78005E-05    .21345E-03
  24  Prefactor     .10000E-03    12.392        .87728E-06** at limit **
  25  Prefactor     7.0755        25.781        .60825E-06   -.70370E-05
  26  norm          .29927        .50254        .31302E-06    .18048E-02
  27  norm          17.020        7.7966        .24557E-06    .70035E-03
  28  Normalizat    1.1005        .26693       -.76169E-05   -.21734E-03
  29  Prefactor     .97396        .19730        .42587E-05   -.55698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8329
  Prefactor  = 0.0001
  Prefactor  = 55.7863
  norm       = 4.53185
  Prefactor  = 0.000100001
  Prefactor  = 5.54901
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 46.7389
  Prefactor  = 65.5615
  norm       = 2.49965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.98122
  Prefactor  = 9.33004
  Prefactor  = 0.0001
  Prefactor  = 2.09771
  Prefactor  = 0.000100001
  Prefactor  = 20.6725
  Prefactor  = 0.000100035
  norm       = 0.000100004
  norm       = 3.7415
  Prefactor  = 52.6019
  Prefactor  = 0.0001
  Prefactor  = 7.07551
  norm       = 0.299273
  norm       = 17.0197
  Normalizat = 1.10055
  Prefactor  = 0.973959
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.539     FROM HESSE     STATUS=OK           553 CALLS     4395 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.833        21.712        .11182E-03   -1.4991    
   2  Prefactor     .10000E-03    32.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.786        90.380        .53703E-04   -1.4213    
   4  norm          4.5319        4.0480        .13880E-03   -1.5282    
   5  Prefactor     .10000E-03    28.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5490        15.348        .17062E-03   -1.5237    
   7  norm          .10000E-03    .38567        .90725E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8205        .18466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.739        56.795        .58674E-04   -1.4340    
  10  Prefactor     65.561        51.539        .49572E-04   -1.4087    
  11  norm          2.4996        4.0187        .79921E-04   -1.5392    
  12  Prefactor     .10000E-03    111.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9812        17.944        .20215E-03   -1.5309    
  15  Prefactor     9.3300        9.3994        .13120E-03   -1.5097    
  16  Prefactor     .10000E-03    3.7472        .14381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0977        46.417        .28507E-03   -1.5418    
  18  Prefactor     .10000E-03    51.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.673        27.837        .88071E-04   -1.4798    
  20  Prefactor     .10003E-03    32.178        .35302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    15.224        .33424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.7415        3.3544        .12576E-03   -1.5321    
  23  Prefactor     52.602        74.372        .55316E-04   -1.4256    
  24  Prefactor     .10000E-03    12.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.0755        25.745        .15080E-03   -1.5176    
  26  norm          .29927        .44923        .62678E-03   -1.5599    
  27  norm          17.020        7.6440        .97091E-04   -1.4883    
  28  Normalizat    1.1005        .29598        .28779E-03   -.89734    
  29  Prefactor     .97396        .22091        .24892E-03   -.93603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44827e-09
Minuit parameter uncertainties:
  1  21.725
  2  0.000207116
  3  90.6032
  4  4.04823
  5  0.000277698
  6  15.3585
  7  6.22542e-07
  8  0.000168795
  9  56.861
  10  51.5741
  11  4.01916
  12  0.000416995
  13  0.000101708
  14  16.9126
  15  9.40088
  16  3.93499e-06
  17  19.7522
  18  0.000345727
  19  27.854
  20  0.00210951
  21  0.000495758
  22  3.35459
  23  74.5041
  24  1.38497e-05
  25  25.7858
  26  0.44924
  27  7.64445
  28  0.296431
  29  0.221112
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.935e-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:  9.740e-01  2.211e-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.101e+00  2.964e-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: 5.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628608/likelihoodResults_569548801_569808001_4FGL_J2259.8-1552_daily_bin1274.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) = 5792.54064976
delta logL = -0.0012512749754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5792.53939843
delta logL = 4.92427716381e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1206       1.0000          .0000       10.000    
     3 'Normalizat'    1.1005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97398       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=   5792.539     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      238 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    861.76        .14456E-01** at limit **
   2  Index         1.7591        5.7429        .10055E-01   -.38441E-07
   3  Normalizat    1.1005        .14047        .28780E-03    .23306E-04
   4  Prefactor     .97396        .11563        .24892E-03    .30920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.7591
  Normalizat = 1.10054
  Prefactor  = 0.973964
 **********
 **   18 **HESSE 
 **********

 FCN=   5792.539     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1192        .15080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7591        8.1526        .40221E-03   -.70519    
   3  Normalizat    1.1005        .25380        .11512E-04   -.89734    
   4  Prefactor     .97396        .20914        .99568E-05   -.93602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18506e-12
Minuit parameter uncertainties:
  1  6.08157e-06
  2  227.094
  3  0.254082
  4  0.209311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628608': 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) = 5792.53939728
delta logL = 1.20501499623e-06

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.082e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.759e+00  2.271e+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:  9.740e-01  2.093e-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.101e+00  2.541e-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/628608/cmap_HighResolution_569548801_569808001_4FGL_J2259.8-1552_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-29 05:09:05.930927', job_id='628608', GAL2='0.97', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632917345.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1274' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:09:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 628608: <4FGL_J2259.8-1552_daily_bin1274> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1274> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:55:19 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:55:21 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:55:21 2021
Terminated at Wed Sep 29 05:09:06 2021
Results reported at Wed Sep 29 05:09:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1274 344.953 -15.8809 569548801 569808001 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 :                                   714.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

