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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin1000
RA = 194.945, Dec = -32.3898
tmin = 498528001, tmax = 498787201
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='88131', job_status='RUN', time_executed='2021-09-06 14:18:04.350222', time_epoch_executed='1630963084.35' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88131

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88131/ft1_4FGL_J1259.7-3223_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88131/ft1_4FGL_J1259.7-3223_daily_bin1000.fits outfile=/scratch/kocevski/88131/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1000.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=498528001.0 tmax=498787201.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 5.04
user 4.65
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.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/88131/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1000.fits evtable="EVENTS" outfile="/scratch/kocevski/88131/ft1_filtered_4FGL_J1259.7-3223_daily_bin1000.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88131/ft1_filtered_4FGL_J1259.7-3223_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/88131/ltcube_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.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/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits
.....................!
real 11.84
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88131/ft1_filtered_4FGL_J1259.7-3223_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/88131/ltcube_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.fits outfile=/scratch/kocevski/88131/expmap_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.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/88131/ltcube_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.fits
.....................!
real 189.91
user 184.97
sys 4.45

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 192 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1259.7-3223 @ 194.945 -32.3898

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/88131/ft1_filtered_4FGL_J1259.7-3223_daily_bin1000.fits scfile=/scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits outfile=/scratch/kocevski/88131/cmap_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.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=194.945 yref=-32.3898 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88131/ft1_filtered_4FGL_J1259.7-3223_daily_bin1000.fits scfile=/scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits outfile=/scratch/kocevski/88131/cmap_HighResolution_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.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=194.945 yref=-32.3898 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88131/ft1_filtered_4FGL_J1259.7-3223_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88131/Model_4FGL_J1259.7-3223_daily_bin1000.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/88131/ft1_filtered_4FGL_J1259.7-3223_daily_bin1000.fits.....................!
real 109.23
user 107.42
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88131/ft1_filtered_4FGL_J1259.7-3223_daily_bin1000.fits', '/scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits', expMap='/scratch/kocevski/88131/expmap_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.fits', expCube='/scratch/kocevski/88131/ltcube_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88131/Model_4FGL_J1259.7-3223_daily_bin1000.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1259.7-3223'

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.897e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.324e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/88131/ft1_filtered_4FGL_J1259.7-3223_daily_bin1000.fits
Spacecraft file(s): /scratch/kocevski/88131/ft2_4FGL_J1259.7-3223_daily_bin1000.fits
Exposure map: /scratch/kocevski/88131/expmap_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.fits
Exposure cube: /scratch/kocevski/88131/ltcube_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88131/Model_4FGL_J1259.7-3223_daily_bin1000.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) = 6167.53997192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6371       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.279       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.317       1.0000         .10000E-03   10000.    
     4 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    109.97       1.0000         .10000E-03   10000.    
     6 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12026E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .16672E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8722       1.0000         .10000E-03   10000.    
    10 'norm      '    20.588       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3014       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9512       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13100E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10943       1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.6468       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85242       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6167.100     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2257 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6398        30.775       -.87198E-05   -.96918E-04
   2  Prefactor     38.269        47.448        .17762E-05    .68895E-04
   3  Prefactor     20.315        21.375        .90195E-06    .94986E-04
   4  norm          .10000E-03    .55136       -.93442E-07** at limit **
   5  Prefactor     109.88        96.444       -.71452E-06    .15331E-03
   6  norm          .10013E-03    5.6554       -.23199E-05** at limit **
   7  Prefactor     .10000E-03    9.6768       -.92548E-06** at limit **
   8  norm          .10000E-03    15.345       -.10187E-06** at limit **
   9  Prefactor     1.8710        6.6232       -.13183E-06   -.59007E-04
  10  norm          20.589        18.409        .42834E-06    .57789E-04
  11  Prefactor     1.3025        5.7709        .11011E-05   -.32968E-04
  12  norm          4.9495        3.6728        .10462E-05    .37438E-03
  13  norm          .10000E-03    3.3224       -.24384E-08** at limit **
  14  Prefactor     .10000E-03    5.2974       -.83778E-07** at limit **
  15  Prefactor     .10000E-03    75.212       -.44549E-06** at limit **
  16  norm          .10000E-03    10.047        .15721E-06** at limit **
  17  norm          .10025E-03    39.021       -.10048E-05** at limit **
  18  norm          .10000E-03    5.8082       -.48770E-07** at limit **
  19  Normalizat    1.6464        .29837        .34685E-05    .29563E-03
  20  Prefactor     .85249        .11796       -.56561E-06    .67975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.63982
  Prefactor  = 38.2693
  Prefactor  = 20.3147
  norm       = 0.0001
  Prefactor  = 109.882
  norm       = 0.000100131
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.87097
  norm       = 20.5887
  Prefactor  = 1.30251
  norm       = 4.94953
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100245
  norm       = 0.0001
  Normalizat = 1.64643
  Prefactor  = 0.852495
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.100     FROM HESSE     STATUS=OK           295 CALLS     2552 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6398        31.892        .18690E-03   -1.5277    
   2  Prefactor     38.269        47.506        .64781E-04   -1.4470    
   3  Prefactor     20.315        21.389        .88860E-04   -1.4806    
   4  norm          .10000E-03    1.0379        .11328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     109.88        96.195        .19178E-03   -1.3608    
   6  norm          .10013E-03    21.569        .30852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8710        6.6133        .30437E-03   -1.5434    
  10  norm          20.589        18.354        .88274E-04   -1.4800    
  11  Prefactor     1.3025        5.6974        .35881E-03   -1.5480    
  12  norm          4.9495        3.7032        .63392E-03   -1.5263    
  13  norm          .10000E-03    3.3397        .13977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3299        .17654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    75.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10025E-03    39.281        .14314       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.8223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.6464        .35381        .34720E-03   -.73743    
  20  Prefactor     .85249        .14246        .18412E-03   -.97821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56532e-09
Minuit parameter uncertainties:
  1  24.3471
  2  47.5534
  3  21.3973
  4  6.6414e-07
  5  96.332
  6  0.00335923
  7  3.21894e-05
  8  0.000103697
  9  6.61591
  10  18.3588
  11  5.44896
  12  3.70342
  13  8.29311e-06
  14  1.06302e-05
  15  0.000127501
  16  7.43263e-06
  17  0.00621106
  18  6.15358e-06
  19  0.354354
  20  0.14252
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  1.037e-04  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.324e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  8.525e-01  1.425e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.646e+00  3.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.945 -32.390
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88131/likelihoodResults_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.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) = 6167.1000522
delta logL = -0.00029714480479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6167.09976104
delta logL = -5.99221766606e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76421E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4376       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6166.931     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3393        141.20        .10465E-01   -.10183E-02
   2  alpha         3.3896        2.7370        .41168        .48798E-04
   3  Normalizat    1.5915        .15081        .79513E-01   -.79963E-04
   4  Prefactor     .86168        .49448E-01    .44393E-01   -.29059E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33931
  alpha      = 3.38957
  Normalizat = 1.59145
  Prefactor  = 0.861676
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.931     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3393        4.3033        .14941E-03   -1.5939    
   2  alpha         3.3896        1.4972        .22891E-01    .36380    
   3  Normalizat    1.5915        .36060        .35191E-03   -.75240    
   4  Prefactor     .86168        .14090        .18318E-03   -.97493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9282e-08
Minuit parameter uncertainties:
  1  4.30427
  2  1.62506
  3  0.361187
  4  0.140954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88131': 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) = 6166.93118409
delta logL = 0.168570959512

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.339e+00  4.304e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  3.390e+00  1.625e+00  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  8.617e-01  1.410e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.591e+00  3.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.945 -32.390

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/88131/cmap_HighResolution_498528001_498787201_4FGL_J1259.7-3223_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-05', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-06 14:30:14.966138', job_id='88131', GAL2='0.86', fit_tolerance='1e-08', EG2='1.59', EG='1.65', time_epoch_completed='1630963814.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.69e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1000' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:30:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 88131: <4FGL_J1259.7-3223_daily_bin1000> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin1000> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:15:25 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:15:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:15:26 2021
Terminated at Mon Sep  6 14:30:15 2021
Results reported at Mon Sep  6 14:30:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin1000 194.945 -32.3898 498528001 498787201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1259.7-3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   722.38 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            890 sec.

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

