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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1330
RA = 344.953, Dec = -15.8809
tmin = 584064001, tmax = 584323201
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='628690', job_status='RUN', time_executed='2021-09-29 04:56:10.919927', time_epoch_executed='1632916570.92' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628690/ft1_4FGL_J2259.8-1552_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628690/ft2_4FGL_J2259.8-1552_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628690/ft1_4FGL_J2259.8-1552_daily_bin1330.fits outfile=/scratch/kocevski/628690/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1330.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=584064001.0 tmax=584323201.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.54
user 4.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628690/ft1_filtered_4FGL_J2259.8-1552_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/628690/ft2_4FGL_J2259.8-1552_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/628690/ltcube_584064001_584323201_4FGL_J2259.8-1552_daily_bin1330.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/628690/ft2_4FGL_J2259.8-1552_daily_bin1330.fits
.....................!
real 11.89
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628690/ft1_filtered_4FGL_J2259.8-1552_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/628690/ft2_4FGL_J2259.8-1552_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/628690/ltcube_584064001_584323201_4FGL_J2259.8-1552_daily_bin1330.fits outfile=/scratch/kocevski/628690/expmap_584064001_584323201_4FGL_J2259.8-1552_daily_bin1330.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/628690/ltcube_584064001_584323201_4FGL_J2259.8-1552_daily_bin1330.fits
.....................!
real 191.55
user 185.58
sys 5.34

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/628690/ft1_filtered_4FGL_J2259.8-1552_daily_bin1330.fits scfile=/scratch/kocevski/628690/ft2_4FGL_J2259.8-1552_daily_bin1330.fits outfile=/scratch/kocevski/628690/cmap_584064001_584323201_4FGL_J2259.8-1552_daily_bin1330.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628690/ft1_filtered_4FGL_J2259.8-1552_daily_bin1330.fits scfile=/scratch/kocevski/628690/ft2_4FGL_J2259.8-1552_daily_bin1330.fits outfile=/scratch/kocevski/628690/cmap_HighResolution_584064001_584323201_4FGL_J2259.8-1552_daily_bin1330.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/628690/ft1_filtered_4FGL_J2259.8-1552_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/628690/ft2_4FGL_J2259.8-1552_daily_bin1330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628690/Model_4FGL_J2259.8-1552_daily_bin1330.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/628690/ft1_filtered_4FGL_J2259.8-1552_daily_bin1330.fits.....................!
real 63.37
user 61.96
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11690E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4639       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2167       1.0000         .10000E-03   10000.    
     8 'norm      '    .12386E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    74.898       1.0000         .10000E-03   10000.    
    11 'norm      '    8.3979       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40369       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9137       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.615       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9316       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.765       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.7089       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0312       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11326E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.8267       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .25045       1.0000         .10000E-03   10000.    
    27 'norm      '    5.2317       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93481       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83500       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=   7957.111     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3764 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.900        18.107       -.65496E-07   -.14380E-04
   2  Prefactor     .10000E-03    55.999       -.94949E-06** at limit **
   3  Prefactor     9.5611        69.102        .16054E-06   -.18425E-04
   4  norm          .10000E-03    1.9804        .92424E-07** at limit **
   5  Prefactor     .10000E-03    68.249        .78994E-06** at limit **
   6  Prefactor     .10000E-03    8.0230        .31705E-07** at limit **
   7  norm          1.2164        .82850       -.87130E-08    .41183E-04
   8  norm          .10002E-03    .79506        .12835E-06** at limit **
   9  Prefactor     .10000E-03    22.098       -.11818E-06** at limit **
  10  Prefactor     74.965        38.153       -.98293E-06   -.67449E-04
  11  norm          8.3933        3.2772       -.71741E-07   -.31461E-03
  12  Prefactor     .25857        30.909       -.99236E-06    .38802E-03
  13  Prefactor     3.9085        12.091        .40389E-06   -.17378E-05
  14  Prefactor     15.618        11.488       -.25689E-08   -.55787E-04
  15  Prefactor     .10000E-03    3.6693        .21908E-07** at limit **
  16  Prefactor     9.9327        9.6083       -.44549E-07    .33281E-05
  17  Prefactor     .10000E-03    5.1200       -.21988E-06** at limit **
  18  Prefactor     .10000E-03    15.796        .86152E-07** at limit **
  19  Prefactor     18.767        18.257        .83739E-07    .37263E-06
  20  Prefactor     .10000E-03    3.6806        .11447E-06** at limit **
  21  norm          8.7087        5.2003        .50209E-07    .26877E-04
  22  norm          2.0312        1.7539        .61756E-07    .21872E-04
  23  Prefactor     .10000E-03    45.275        .57503E-06** at limit **
  24  Prefactor     9.8318        10.230        .31242E-06    .84407E-05
  25  Prefactor     .10000E-03    5.3845        .99473E-08** at limit **
  26  norm          .25038        .46011        .27147E-06    .95069E-03
  27  norm          5.2324        4.4623       -.25063E-06    .11432E-03
  28  Normalizat    .93452        .16418       -.18876E-06   -.70913E-04
  29  Prefactor     .83526        .13553       -.22789E-06   -.69816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.9005
  Prefactor  = 0.000100002
  Prefactor  = 9.56106
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.2164
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 74.9655
  norm       = 8.39331
  Prefactor  = 0.258572
  Prefactor  = 3.90851
  Prefactor  = 15.6176
  Prefactor  = 0.0001
  Prefactor  = 9.93266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7668
  Prefactor  = 0.0001
  norm       = 8.7087
  norm       = 2.03123
  Prefactor  = 0.0001
  Prefactor  = 9.83179
  Prefactor  = 0.0001
  norm       = 0.25038
  norm       = 5.2324
  Normalizat = 0.934519
  Prefactor  = 0.835263
 **********
 **   18 **HESSE 
 **********

 FCN=   7957.111     FROM HESSE     STATUS=OK           577 CALLS     4341 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.900        18.104        .66887E-04   -1.4509    
   2  Prefactor     .10000E-03    56.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5611        68.697        .13027E-03   -1.5089    
   4  norm          .10000E-03    2.0621        .24506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    68.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2164        .81338        .62150E-04   -1.5487    
   8  norm          .10002E-03    1.2892        .29503E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     74.965        41.921        .46394E-04   -1.3974    
  11  norm          8.3933        3.5484        .51378E-04   -1.5128    
  12  Prefactor     .25857        57.865        .10768       -1.5606    
  13  Prefactor     3.9085        11.977        .20393E-03   -1.5313    
  14  Prefactor     15.618        11.438        .10136E-03   -1.4917    
  15  Prefactor     .10000E-03    3.6811        .16686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9327        9.6135        .12715E-03   -1.5078    
  17  Prefactor     .10000E-03    5.1350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.767        18.255        .92459E-04   -1.4841    
  20  Prefactor     .10000E-03    3.6955        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.7087        5.1962        .13583E-03   -1.5118    
  22  norm          2.0312        1.7491        .10619E-03   -1.5423    
  23  Prefactor     .10000E-03    45.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.8318        10.193        .12783E-03   -1.5081    
  25  Prefactor     .10000E-03    5.3857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .25038        .42890        .63130E-03   -1.5608    
  27  norm          5.2324        4.4534        .13465E-03   -1.5250    
  28  Normalizat    .93452        .19139        .26621E-03   -.95258    
  29  Prefactor     .83526        .15663        .23929E-03   -.98441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21074e-09
Minuit parameter uncertainties:
  1  18.1066
  2  0.000625392
  3  51.3403
  4  6.03946e-06
  5  0.000546743
  6  6.86639e-06
  7  0.813389
  8  0.000279778
  9  2.55083e-05
  10  41.9372
  11  3.54847
  12  7.74233
  13  11.9848
  14  11.44
  15  5.55005e-06
  16  9.61499
  17  4.5853e-06
  18  6.98234e-06
  19  18.2605
  20  3.69914e-06
  21  5.19642
  22  1.74911
  23  0.000215535
  24  10.1952
  25  7.23889e-07
  26  0.428908
  27  4.45368
  28  0.191531
  29  0.156711
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  9.933e+00  9.615e+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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.353e-01  1.567e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  9.345e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/628690/likelihoodResults_584064001_584323201_4FGL_J2259.8-1552_daily_bin1330.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) = 7957.10402549
delta logL = 0.0064858177866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7957.08155387
delta logL = 0.0289574375629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6446       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6083       1.0000          .0000       10.000    
     3 'Normalizat'    .91973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84413       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7957.082     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      238 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6589        123.10        .42270E-02    .30567E-03
   2  Index         2.6067        3.6811        .13376        .16836E-03
   3  Normalizat    .91968        .62888E-01    .45153E-01    .13588E-03
   4  Prefactor     .84419        .43332E-01    .44289E-01    .13944E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.65894
  Index      = 2.60673
  Normalizat = 0.919681
  Prefactor  = 0.844194
 **********
 **   18 **HESSE 
 **********

 FCN=   7957.082     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6589        220.25        .16908E-03   -1.5232    
   2  Index         2.6067        5.4958        .81651E-02   -.49912    
   3  Normalizat    .91968        .27389        .26797E-03   -.95772    
   4  Prefactor     .84419        .18822        .23810E-03   -.98119    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.46648e-09
Minuit parameter uncertainties:
  1  70.889
  2  8.33589
  3  0.274304
  4  0.18836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628690': 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) = 7957.08155332
delta logL = 0.0289579837126

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  5.659e+00  7.089e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.607e+00  8.336e+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:  8.442e-01  1.884e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  9.197e-01  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.61 +/- 8.34
Photon Flux (Free Index): 4.00e-08 +/- 1.96e-07
Energy Flux (Free Index): 1.04e-05 +/- 3.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/628690/cmap_HighResolution_584064001_584323201_4FGL_J2259.8-1552_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-03', comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='1.04e-05', photon_flux_error='2.68e-08', dlogl='2.90e-02', energy_flux='1.42e-05', photon_flux2='4.00e-08', job_status='DONE', time_completed='2021-09-29 05:11:34.548801', photon_index_error2='8.34', photon_index2='2.61', ts='2.04', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.06e-08', energy_flux_error2='3.12e-05', EG='0.93', time_epoch_completed='1632917494.55', return_code='0', job_id='628690', GAL2='0.84', EG2='0.92', return_code2='102', energy_flux_error='1.37e-05', photon_flux_error2='1.96e-07', ts2='2.10', photon_index='2.13' WHERE bin_id='1330' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:11:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 628690: <4FGL_J2259.8-1552_daily_bin1330> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1330 344.953 -15.8809 584064001 584323201 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 :                                   895.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             315.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            969 sec.

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

