/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 165 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 = 7380
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1259.7-3223_daily_bin257
RA = 194.945, Dec = -32.3898
tmin = 305942401, tmax = 306201601
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='82769', job_status='RUN', time_executed='2021-09-06 14:03:24.908098', time_epoch_executed='1630962204.91' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='257'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82769

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82769/ft1_4FGL_J1259.7-3223_daily_bin257.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82769/ft2_4FGL_J1259.7-3223_daily_bin257.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82769/ft1_4FGL_J1259.7-3223_daily_bin257.fits outfile=/scratch/kocevski/82769/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin257.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=305942401.0 tmax=306201601.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.92
user 2.70
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82769/ft2_4FGL_J1259.7-3223_daily_bin257.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/82769/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin257.fits evtable="EVENTS" outfile="/scratch/kocevski/82769/ft1_filtered_4FGL_J1259.7-3223_daily_bin257.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.43
user 0.27
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82769/ft1_filtered_4FGL_J1259.7-3223_daily_bin257.fits" evtable="EVENTS" scfile=/scratch/kocevski/82769/ft2_4FGL_J1259.7-3223_daily_bin257.fits sctable="SC_DATA" outfile=/scratch/kocevski/82769/ltcube_305942401_306201601_4FGL_J1259.7-3223_daily_bin257.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/82769/ft2_4FGL_J1259.7-3223_daily_bin257.fits
.....................!
real 10.05
user 9.72
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82769/ft1_filtered_4FGL_J1259.7-3223_daily_bin257.fits evtable="EVENTS" scfile=/scratch/kocevski/82769/ft2_4FGL_J1259.7-3223_daily_bin257.fits sctable="SC_DATA" expcube=/scratch/kocevski/82769/ltcube_305942401_306201601_4FGL_J1259.7-3223_daily_bin257.fits outfile=/scratch/kocevski/82769/expmap_305942401_306201601_4FGL_J1259.7-3223_daily_bin257.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/82769/ltcube_305942401_306201601_4FGL_J1259.7-3223_daily_bin257.fits
.....................!
real 157.28
user 152.27
sys 4.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/82769/ft1_filtered_4FGL_J1259.7-3223_daily_bin257.fits scfile=/scratch/kocevski/82769/ft2_4FGL_J1259.7-3223_daily_bin257.fits outfile=/scratch/kocevski/82769/cmap_305942401_306201601_4FGL_J1259.7-3223_daily_bin257.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.50
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82769/ft1_filtered_4FGL_J1259.7-3223_daily_bin257.fits scfile=/scratch/kocevski/82769/ft2_4FGL_J1259.7-3223_daily_bin257.fits outfile=/scratch/kocevski/82769/cmap_HighResolution_305942401_306201601_4FGL_J1259.7-3223_daily_bin257.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.51
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82769/ft1_filtered_4FGL_J1259.7-3223_daily_bin257.fits evtable="EVENTS" scfile=/scratch/kocevski/82769/ft2_4FGL_J1259.7-3223_daily_bin257.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82769/Model_4FGL_J1259.7-3223_daily_bin257.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/82769/ft1_filtered_4FGL_J1259.7-3223_daily_bin257.fits.....................!
real 151.93
user 150.18
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9689       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13130E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.4043       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.3087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5208       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4053       1.0000         .10000E-03   10000.    
    13 'norm      '    8.6758       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5440       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2391       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95568       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=   11390.50     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     1759 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3321        .12786E-07** at limit **
   2  Prefactor     .10000E-03    10.491        .26856E-07** at limit **
   3  Prefactor     1.9695        11.194        .76169E-05    .94033E-05
   4  norm          2.7921        .98883       -.20094E-07   -.27375E-03
   5  Prefactor     .10000E-03    124.80        .57433E-06** at limit **
   6  norm          5.3958        5.0680        .10317E-05   -.34187E-03
   7  Prefactor     .10000E-03    2.6151        .26071E-07** at limit **
   8  norm          3.3091        4.7935        .30658E-06   -.17615E-04
   9  Prefactor     .10000E-03    4.1044        .10377E-07** at limit **
  10  norm          .10000E-03    2.5296        .28229E-08** at limit **
  11  Prefactor     3.5208        2.9779       -.10844E-07   -.30467E-05
  12  norm          3.4053        1.9931       -.19666E-07   -.38197E-04
  13  norm          8.6760        5.0301        .56513E-07   -.62388E-04
  14  Prefactor     .42159        4.6213       -.21141E-05   -.60409E-04
  15  Prefactor     .10000E-03    46.909       -.93922E-06** at limit **
  16  norm          .10000E-03    7.4716       -.53301E-08** at limit **
  17  norm          .10000E-03    43.357        .10770E-06** at limit **
  18  norm          2.5441        4.7588        .12368E-06    .61701E-05
  19  Normalizat    1.2391        .20740       -.69278E-06   -.13963E-03
  20  Prefactor     .95567        .83172E-01   -.15134E-06   -.34988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96948
  norm       = 2.79211
  Prefactor  = 0.0001
  norm       = 5.39579
  Prefactor  = 0.0001
  norm       = 3.30912
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.52084
  norm       = 3.40533
  norm       = 8.67604
  Prefactor  = 0.421593
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 2.5441
  Normalizat = 1.23915
  Prefactor  = 0.955666
 **********
 **   18 **HESSE 
 **********

 FCN=   11390.50     FROM HESSE     STATUS=OK           293 CALLS     2052 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9695        11.508        .14776E-02   -1.5427    
   4  norm          2.7921        .98820        .60510E-04   -1.5374    
   5  Prefactor     .10000E-03    125.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3958        5.0795        .86430E-03   -1.5243    
   7  Prefactor     .10000E-03    2.6284        .16809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3091        4.7853        .22256E-03   -1.5344    
   9  Prefactor     .10000E-03    4.1637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.5311        .16577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5208        2.9793        .82534E-03   -1.5333    
  12  norm          3.4053        1.9941        .11221E-03   -1.5339    
  13  norm          8.6760        5.0304        .13609E-03   -1.5119    
  14  Prefactor     .42159        20.506        .41771E-02   -1.5578    
  15  Prefactor     .10000E-03    47.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    43.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5441        4.7361        .25603E-03   -1.5389    
  19  Normalizat    1.2391        .24559        .37460E-03   -.85402    
  20  Prefactor     .95567        .99075E-01    .17226E-03   -.94222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48293e-08
Minuit parameter uncertainties:
  1  1.73313e-06
  2  3.14377e-06
  3  9.5239
  4  0.988202
  5  0.000122347
  6  5.07986
  7  2.28593e-06
  8  4.78587
  9  2.01434e-06
  10  3.20012e-07
  11  2.97943
  12  1.99417
  13  5.03061
  14  5.88204
  15  0.000583797
  16  2.86756e-07
  17  0.000825002
  18  4.73675
  19  0.245815
  20  0.0990937
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  3.309e+00  4.786e+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

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  9.557e-01  9.909e-02  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.239e+00  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/82769/likelihoodResults_305942401_306201601_4FGL_J1259.7-3223_daily_bin257.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) = 11390.1304423
delta logL = 0.369497252021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11390.1279411
delta logL = 0.371998457616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66560       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9908       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97606       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=   11390.13     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      305 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66331        7.2977        .11929E-01    .20191E-02
   2  alpha         3.9929        4.3447        .50000        .95068E-04
   3  Normalizat    1.1660        .42120E-01    .86833E-01   -.65448E-05
   4  Prefactor     .97604        .17352E-01    .45967E-01   -.61297E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.663307
  alpha      = 3.99292
  Normalizat = 1.16599
  Prefactor  = 0.976039
 **********
 **   18 **HESSE 
 **********

 FCN=   11390.13     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      336 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66331        25.276        .75495E-04   -1.5545    
   2  alpha         3.9929        3.5451        .23929E-01    .63996    
   3  Normalizat    1.1660        .20999        .38452E-03   -.87660    
   4  Prefactor     .97604        .85692E-01    .17063E-03   -.93533    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.35516e-06
Minuit parameter uncertainties:
  1  8.19226
  2  7.09933
  3  0.210145
  4  0.0857041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82769': 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) = 11390.1279404
delta logL = 0.371999174458

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  6.633e-01  8.192e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  3.993e+00  7.099e+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:  9.760e-01  8.570e-02  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.166e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 3.99 +/- 7.10
Photon Flux (Free Index): 7.01e-08 +/- 6.26e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.82e-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/82769/cmap_HighResolution_305942401_306201601_4FGL_J1259.7-3223_daily_bin257.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='3.72e-01', photon_flux2='7.01e-08', job_status='DONE', time_completed='2021-09-06 14:16:21.248196', photon_index_error2='7.10', photon_index2='3.99', ts='0.56', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.82e-05', EG='1.24', time_epoch_completed='1630962981.25', return_code='0', job_id='82769', GAL2='0.98', EG2='1.17', return_code2='102', photon_flux_error2='6.26e-08', ts2='1.40', photon_index='2.32' WHERE bin_id='257' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 82769: <4FGL_J1259.7-3223_daily_bin257> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin257> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 14:00:29 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:00: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:00:32 2021
Terminated at Mon Sep  6 14:16:22 2021
Results reported at Mon Sep  6 14:16:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin257 194.945 -32.3898 305942401 306201601 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 :                                   771.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            953 sec.

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

