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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin875
RA = 194.945, Dec = -32.3898
tmin = 466128001, tmax = 466387201
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='86621', job_status='RUN', time_executed='2021-09-06 14:13:10.342060', time_epoch_executed='1630962790.34' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86621/ft1_4FGL_J1259.7-3223_daily_bin875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86621/ft2_4FGL_J1259.7-3223_daily_bin875.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86621/ft1_4FGL_J1259.7-3223_daily_bin875.fits outfile=/scratch/kocevski/86621/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin875.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=466128001.0 tmax=466387201.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.53
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86621/ft2_4FGL_J1259.7-3223_daily_bin875.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/86621/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin875.fits evtable="EVENTS" outfile="/scratch/kocevski/86621/ft1_filtered_4FGL_J1259.7-3223_daily_bin875.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86621/ft1_filtered_4FGL_J1259.7-3223_daily_bin875.fits" evtable="EVENTS" scfile=/scratch/kocevski/86621/ft2_4FGL_J1259.7-3223_daily_bin875.fits sctable="SC_DATA" outfile=/scratch/kocevski/86621/ltcube_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.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/86621/ft2_4FGL_J1259.7-3223_daily_bin875.fits
.....................!
real 11.95
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86621/ft1_filtered_4FGL_J1259.7-3223_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/86621/ft2_4FGL_J1259.7-3223_daily_bin875.fits sctable="SC_DATA" expcube=/scratch/kocevski/86621/ltcube_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.fits outfile=/scratch/kocevski/86621/expmap_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.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/86621/ltcube_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.fits
.....................!
real 190.20
user 184.76
sys 5.07

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/86621/ft1_filtered_4FGL_J1259.7-3223_daily_bin875.fits scfile=/scratch/kocevski/86621/ft2_4FGL_J1259.7-3223_daily_bin875.fits outfile=/scratch/kocevski/86621/cmap_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86621/ft1_filtered_4FGL_J1259.7-3223_daily_bin875.fits scfile=/scratch/kocevski/86621/ft2_4FGL_J1259.7-3223_daily_bin875.fits outfile=/scratch/kocevski/86621/cmap_HighResolution_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86621/ft1_filtered_4FGL_J1259.7-3223_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/86621/ft2_4FGL_J1259.7-3223_daily_bin875.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86621/Model_4FGL_J1259.7-3223_daily_bin875.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/86621/ft1_filtered_4FGL_J1259.7-3223_daily_bin875.fits.....................!
real 142.98
user 141.45
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86621/ft1_filtered_4FGL_J1259.7-3223_daily_bin875.fits', '/scratch/kocevski/86621/ft2_4FGL_J1259.7-3223_daily_bin875.fits', expMap='/scratch/kocevski/86621/expmap_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.fits', expCube='/scratch/kocevski/86621/ltcube_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86621/Model_4FGL_J1259.7-3223_daily_bin875.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/86621/ft1_filtered_4FGL_J1259.7-3223_daily_bin875.fits
Spacecraft file(s): /scratch/kocevski/86621/ft2_4FGL_J1259.7-3223_daily_bin875.fits
Exposure map: /scratch/kocevski/86621/expmap_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.fits
Exposure cube: /scratch/kocevski/86621/ltcube_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86621/Model_4FGL_J1259.7-3223_daily_bin875.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) = 8278.05006573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.488       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.233       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6139       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8572       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.969       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18539E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.3517       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4119       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94538       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8278.047     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2048 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.487        14.254         .0000        .22125E-04
   2  Prefactor     .10000E-03    16.556         .0000    ** at limit **
   3  Prefactor     35.232        31.529         .0000        .29678E-03
   4  norm          1.6137        1.2913         .0000        .86771E-03
   5  Prefactor     .10000E-03    96.533         .0000    ** at limit **
   6  norm          2.8502        4.8400         .0000        .14136E-01
   7  Prefactor     .10000E-03    4.9758         .0000    ** at limit **
   8  norm          .10000E-03    2.7853         .0000    ** at limit **
   9  Prefactor     .10000E-03    8.0630         .0000    ** at limit **
  10  norm          19.980        16.057         .0000        .15587E-03
  11  Prefactor     .10000E-03    3.8825         .0000    ** at limit **
  12  norm          .10000E-03    .65242         .0000    ** at limit **
  13  norm          7.3517        6.0821         .0000        .19881E-03
  14  Prefactor     20.031        16.891         .0000        .48625E-03
  15  Prefactor     .10000E-03    22.030         .0000    ** at limit **
  16  norm          .10000E-03    10.591         .0000    ** at limit **
  17  norm          .10000E-03    48.101         .0000    ** at limit **
  18  norm          .10000E-03    10.604         .0000    ** at limit **
  19  Normalizat    1.4120        .26503         .0000       -.56278E-06
  20  Prefactor     .94536        .10202         .0000       -.23180E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4874
  Prefactor  = 0.0001
  Prefactor  = 35.2316
  norm       = 1.61365
  Prefactor  = 0.0001
  norm       = 2.85023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.9796
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.35165
  Prefactor  = 20.0306
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Normalizat = 1.41199
  Prefactor  = 0.945363
 **********
 **   18 **HESSE 
 **********

 FCN=   8278.047     FROM HESSE     STATUS=OK           285 CALLS     2333 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.487        14.258        .86408E-04   -1.4781    
   2  Prefactor     .10000E-03    16.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.232        31.620        .67515E-04   -1.4520    
   4  norm          1.6137        1.2770        .87793E-04   -1.5454    
   5  Prefactor     .10000E-03    96.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8502        4.8011        .12026E-02   -1.5370    
   7  Prefactor     .10000E-03    5.0012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8106        .14825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.980        15.744        .89631E-04   -1.4814    
  11  Prefactor     .10000E-03    11.306        .34020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .65401        .71767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.3517        6.0836        .14792E-03   -1.5166    
  14  Prefactor     20.031        16.941        .44745E-03   -1.4813    
  15  Prefactor     .10000E-03    22.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    48.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4120        .31594        .38463E-03   -.80282    
  20  Prefactor     .94536        .12167        .18080E-03   -.94574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6411e-10
Minuit parameter uncertainties:
  1  14.2602
  2  1.58259e-05
  3  31.6355
  4  1.27697
  5  0.000273348
  6  4.80173
  7  1.07449e-05
  8  5.5792e-06
  9  1.66554e-05
  10  15.747
  11  3.57883e-05
  12  1.3887e-06
  13  6.08408
  14  16.9455
  15  5.19421e-06
  16  0.000131661
  17  6.56317e-05
  18  0.000198627
  19  0.316383
  20  0.121709
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  5.579e-06  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:  9.454e-01  1.217e-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.412e+00  3.164e-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: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86621/likelihoodResults_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.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) = 8278.04880034
delta logL = -0.00169494333022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8278.04711031
delta logL = -4.91027822136e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3308       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94519       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8277.905     FROM MIGRAD    STATUS=CONVERGED    176 CALLS      312 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80038E-01    .12853        .10080E-01   -.45785E-02
   2  alpha         5.0000        3.7197        .50000    ** at limit **
   3  Normalizat    1.3462        .31683        .38463E-03    .91570E-04
   4  Prefactor     .96084        .12286        .18080E-03    .45853E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0800376
  alpha      = 5
  Normalizat = 1.34618
  Prefactor  = 0.960843
 **********
 **   18 **HESSE 
 **********

 FCN=   8277.905     FROM HESSE     STATUS=OK            31 CALLS      343 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80038E-01    .15639        .40358E-03   -1.5765    
   2  alpha         5.0000        3.8740        .13077        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3462        .32668        .15385E-04   -.82198    
   4  Prefactor     .96084        .12425        .36160E-04   -.94046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15837e-08
Minuit parameter uncertainties:
  1  0.156388
  2  3.12733e-05
  3  0.327181
  4  0.124287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86621': 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) = 8277.9053092
delta logL = 0.141796195607

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  8.004e-02  1.564e-01  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  5.000e+00  3.127e-05  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:  9.608e-01  1.243e-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.346e+00  3.272e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/86621/cmap_HighResolution_466128001_466387201_4FGL_J1259.7-3223_daily_bin875.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-05', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-06 14:26:50.976565', job_id='86621', GAL2='0.96', fit_tolerance='1e-08', EG2='1.35', EG='1.41', time_epoch_completed='1630963610.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.42e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='875' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:26:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 86621: <4FGL_J1259.7-3223_daily_bin875> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin875> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:10:31 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:10:32 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:10:32 2021
Terminated at Mon Sep  6 14:26:51 2021
Results reported at Mon Sep  6 14:26:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin875 194.945 -32.3898 466128001 466387201 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 :                                   819.00 sec.
    Max Memory :                                 1229 MB
    Average Memory :                             294.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            980 sec.

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

