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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1651
RA = 344.953, Dec = -15.8809
tmin = 667267201, tmax = 667526401
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='536045', job_status='RUN', time_executed='2022-02-26 01:16:12.680759', time_epoch_executed='1645866972.68' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/536045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/536045/ft1_4FGL_J2259.8-1552_daily_bin1651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/536045/ft2_4FGL_J2259.8-1552_daily_bin1651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/536045/ft1_4FGL_J2259.8-1552_daily_bin1651.fits outfile=/scratch/kocevski/536045/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1651.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=667267201.0 tmax=667526401.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 2.96
user 2.73
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/536045/ft2_4FGL_J2259.8-1552_daily_bin1651.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/536045/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1651.fits evtable="EVENTS" outfile="/scratch/kocevski/536045/ft1_filtered_4FGL_J2259.8-1552_daily_bin1651.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
Number of photons that survived the gtmktime cut: 40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/536045/ft1_filtered_4FGL_J2259.8-1552_daily_bin1651.fits" evtable="EVENTS" scfile=/scratch/kocevski/536045/ft2_4FGL_J2259.8-1552_daily_bin1651.fits sctable="SC_DATA" outfile=/scratch/kocevski/536045/ltcube_667267201_667526401_4FGL_J2259.8-1552_daily_bin1651.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/536045/ft2_4FGL_J2259.8-1552_daily_bin1651.fits
.....................!
real 16.29
user 15.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/536045/ft1_filtered_4FGL_J2259.8-1552_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/536045/ft2_4FGL_J2259.8-1552_daily_bin1651.fits sctable="SC_DATA" expcube=/scratch/kocevski/536045/ltcube_667267201_667526401_4FGL_J2259.8-1552_daily_bin1651.fits outfile=/scratch/kocevski/536045/expmap_667267201_667526401_4FGL_J2259.8-1552_daily_bin1651.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/536045/ltcube_667267201_667526401_4FGL_J2259.8-1552_daily_bin1651.fits
.....................!
real 196.91
user 189.60
sys 5.16

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/536045/ft1_filtered_4FGL_J2259.8-1552_daily_bin1651.fits scfile=/scratch/kocevski/536045/ft2_4FGL_J2259.8-1552_daily_bin1651.fits outfile=/scratch/kocevski/536045/cmap_667267201_667526401_4FGL_J2259.8-1552_daily_bin1651.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/536045/ft1_filtered_4FGL_J2259.8-1552_daily_bin1651.fits scfile=/scratch/kocevski/536045/ft2_4FGL_J2259.8-1552_daily_bin1651.fits outfile=/scratch/kocevski/536045/cmap_HighResolution_667267201_667526401_4FGL_J2259.8-1552_daily_bin1651.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.58
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/536045/ft1_filtered_4FGL_J2259.8-1552_daily_bin1651.fits evtable="EVENTS" scfile=/scratch/kocevski/536045/ft2_4FGL_J2259.8-1552_daily_bin1651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/536045/Model_4FGL_J2259.8-1552_daily_bin1651.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/536045/ft1_filtered_4FGL_J2259.8-1552_daily_bin1651.fits....................!
real 17.77
user 16.44
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3491.2       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1731       1.0000         .10000E-03   10000.    
     4 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16455E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33613E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11267E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.093       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11379E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2547       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.195       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5713       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .59003       1.0000         .10000E-03   10000.    
    27 'norm      '    12.718       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .68825E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0662       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=   526.6973     FROM MIGRAD    STATUS=CONVERGED   1463 CALLS     5618 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    438.09        .18142E-02** at limit **
   2  Prefactor     3490.3        2710.5        .41956E-04    .67742E-07
   3  Prefactor    10000.0        8393.6        .74885E-02** at limit **
   4  norm          .10000E-03    25.006        .11209E-02** at limit **
   5  Prefactor     .10000E-03    236.55        .18142E-02** at limit **
   6  Prefactor     .10000E-03    1825.9        .20396E-02** at limit **
   7  norm          .10000E-03    25.696        .11372E-02** at limit **
   8  norm          .10000E-03    37.210        .13687E-02** at limit **
   9  Prefactor     .10000E-03    1868.8        .19702E-02** at limit **
  10  Prefactor     .10000E-03    296.23        .18142E-02** at limit **
  11  norm          16.089        12.733        .70875E-04   -.22056E-06
  12  Prefactor     .10000E-03    293.10        .18142E-02** at limit **
  13  Prefactor     .10000E-03    92.697        .18142E-02** at limit **
  14  Prefactor     6.6985        329.15        .13954E-02    .40635E-06
  15  Prefactor     12.210        61.287        .11471E-03   -.32210E-06
  16  Prefactor     .10000E-03    39.650        .14129E-02** at limit **
  17  Prefactor     .10000E-03    71.474        .18142E-02** at limit **
  18  Prefactor     .10000E-03    289.90        .18142E-02** at limit **
  19  Prefactor     .10000E-03    47.134        .15405E-02** at limit **
  20  Prefactor     .10000E-03    40.303        .14138E-02** at limit **
  21  norm          3.5779        13.168        .14501E-03    .96039E-06
  22  norm          .10000E-03    4.3929        .46946E-03** at limit **
  23  Prefactor     .10000E-03    78.607        .18142E-02** at limit **
  24  Prefactor     .10000E-03    20.493        .10152E-02** at limit **
  25  Prefactor     .10000E-03    82.780        .18142E-02** at limit **
  26  norm          .58912        2.1477        .38301E-04   -.17772E-04
  27  norm          12.725        20.563        .77076E-04   -.22494E-05
  28  Normalizat    .68104E-01    2.1397        .70636E-02    .22384E-05
  29  Prefactor     1.0664        .63063        .16761E-03    .23739E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3490.29
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.69849
  Prefactor  = 12.2099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57785
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.589123
  norm       = 12.7251
  Normalizat = 0.0681044
  Prefactor  = 1.06645
 **********
 **   18 **HESSE 
 **********

 FCN=   526.6973     FROM HESSE     STATUS=OK           527 CALLS     6145 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    438.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3490.3        2709.4        .83912E-05   -.30673    
   3  Prefactor    10000.0        8393.6        .14977E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    25.006        .22418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    236.55        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1825.9        .40793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    25.696        .22743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    37.210        .27374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1868.8        .39403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    296.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.089        12.732        .28350E-05   -1.4906    
  12  Prefactor     .10000E-03    293.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    92.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6985        313.03        .55815E-04   -1.5190    
  15  Prefactor     12.210        60.750        .45884E-05   -1.5009    
  16  Prefactor     .10000E-03    39.650        .28257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    71.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    289.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    47.134        .30809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.306        .28277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5779        13.163        .58004E-05   -1.5330    
  22  norm          .10000E-03    4.3929        .93892E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    78.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.493        .20303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    82.780        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .58912        2.1448        .15321E-05   -1.5554    
  27  norm          12.725        20.409        .30830E-05   -1.4994    
  28  Normalizat    .68104E-01    1.7515        .28254E-03   -1.4181    
  29  Prefactor     1.0664        .57208        .67045E-05   -.90546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26775e-13
Minuit parameter uncertainties:
  1  5.78354e-05
  2  2881.75
  3  0.137808
  4  2.36478e-08
  5  5.40693e-05
  6  0.000231043
  7  2.47588e-06
  8  1.5064e-06
  9  0.000562513
  10  2.80139e-05
  11  12.7339
  12  1.01864e-05
  13  8.10875e-06
  14  92.098
  15  54.5589
  16  3.19738e-08
  17  1.64369e-05
  18  6.22772e-06
  19  1.58576e-06
  20  7.39711e-07
  21  13.1735
  22  8.93072e-07
  23  1.88834e-06
  24  2.71646e-06
  25  3.14652e-07
  26  2.14505
  27  20.4199
  28  0.660505
  29  0.575409
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.197e-08  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:  1.066e+00  5.754e-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:  6.810e-02  6.605e-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: 6.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/536045/likelihoodResults_667267201_667526401_4FGL_J2259.8-1552_daily_bin1651.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) = 526.697369996
delta logL = -5.89325834426e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 526.69731295
delta logL = -1.88608919416e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17590E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4322       1.0000          .0000       10.000    
     3 'Normalizat'    .68088E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0665       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=   526.6973     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      294 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10423E-03    41.911        .12102E-01** at limit **
   2  Index         2.3336        5.1085        .50000        .85130E-05
   3  Normalizat    .68104E-01    .13507E-01    .70870E-02    .49121E-04
   4  Prefactor     1.0664        .11885E-01    .16759E-03   -.74959E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104226
  Index      = 2.33364
  Normalizat = 0.068104
  Prefactor  = 1.06645
 **********
 **   18 **HESSE 
 **********

 FCN=   526.6973     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      325 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10423E-03    369.06        .12617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3336        6.5565        .50000       -.56246    
   3  Normalizat    .68104E-01    .40732E-01    .14174E-02   -1.4181    
   4  Prefactor     1.0664        .35849E-01    .67036E-05   -.90546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.81242e-09
Minuit parameter uncertainties:
  1  0.0794809
  2  635.069
  3  0.0407512
  4  0.0358493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/536045': 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) = 526.69731145
delta logL = -3.86570377486e-07

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.042e-04  7.948e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.334e+00  6.351e+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:  1.066e+00  3.585e-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:  6.810e-02  4.075e-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/536045/cmap_HighResolution_667267201_667526401_4FGL_J2259.8-1552_daily_bin1651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-02', job_status='DONE', photon_flux_upper_limit='6.55e-07', time_completed='2022-02-26 01:22:28.798030', job_id='536045', GAL2='1.07', fit_tolerance='1e-08', EG2='0.07', EG='0.07', time_epoch_completed='1645867348.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-3.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1651' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 26 01:22:28 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 536045: <4FGL_J2259.8-1552_daily_bin1651> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1651> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Feb 26 01:10:30 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 26 01:14:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 26 01:14:34 2022
Terminated at Sat Feb 26 01:22:29 2022
Results reported at Sat Feb 26 01:22:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1651 344.953 -15.8809 667267201 667526401 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 :                                   377.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   475 sec.
    Turnaround time :                            719 sec.

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

