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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin771
RA = 194.945, Dec = -32.3898
tmin = 439171201, tmax = 439430401
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='86458', job_status='RUN', time_executed='2021-09-06 14:12:47.664388', time_epoch_executed='1630962767.66' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86458

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86458/ft1_4FGL_J1259.7-3223_daily_bin771.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86458/ft2_4FGL_J1259.7-3223_daily_bin771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86458/ft1_4FGL_J1259.7-3223_daily_bin771.fits outfile=/scratch/kocevski/86458/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin771.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=439171201.0 tmax=439430401.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.66
user 5.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86458/ft1_filtered_4FGL_J1259.7-3223_daily_bin771.fits" evtable="EVENTS" scfile=/scratch/kocevski/86458/ft2_4FGL_J1259.7-3223_daily_bin771.fits sctable="SC_DATA" outfile=/scratch/kocevski/86458/ltcube_439171201_439430401_4FGL_J1259.7-3223_daily_bin771.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/86458/ft2_4FGL_J1259.7-3223_daily_bin771.fits
.....................!
real 12.26
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86458/ft1_filtered_4FGL_J1259.7-3223_daily_bin771.fits evtable="EVENTS" scfile=/scratch/kocevski/86458/ft2_4FGL_J1259.7-3223_daily_bin771.fits sctable="SC_DATA" expcube=/scratch/kocevski/86458/ltcube_439171201_439430401_4FGL_J1259.7-3223_daily_bin771.fits outfile=/scratch/kocevski/86458/expmap_439171201_439430401_4FGL_J1259.7-3223_daily_bin771.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/86458/ltcube_439171201_439430401_4FGL_J1259.7-3223_daily_bin771.fits
.....................!
real 190.34
user 185.83
sys 4.00

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/86458/ft1_filtered_4FGL_J1259.7-3223_daily_bin771.fits scfile=/scratch/kocevski/86458/ft2_4FGL_J1259.7-3223_daily_bin771.fits outfile=/scratch/kocevski/86458/cmap_439171201_439430401_4FGL_J1259.7-3223_daily_bin771.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86458/ft1_filtered_4FGL_J1259.7-3223_daily_bin771.fits scfile=/scratch/kocevski/86458/ft2_4FGL_J1259.7-3223_daily_bin771.fits outfile=/scratch/kocevski/86458/cmap_HighResolution_439171201_439430401_4FGL_J1259.7-3223_daily_bin771.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86458/ft1_filtered_4FGL_J1259.7-3223_daily_bin771.fits evtable="EVENTS" scfile=/scratch/kocevski/86458/ft2_4FGL_J1259.7-3223_daily_bin771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86458/Model_4FGL_J1259.7-3223_daily_bin771.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/86458/ft1_filtered_4FGL_J1259.7-3223_daily_bin771.fits.....................!
real 143.25
user 141.73
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11658E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.8620       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2700       1.0000         .10000E-03   10000.    
    10 'norm      '    26.587       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8261       1.0000         .10000E-03   10000.    
    13 'norm      '    5.7165       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.5388       1.0000         .10000E-03   10000.    
    18 'norm      '    15.131       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68962       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1790       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=   8463.343     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     1793 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8722       -.71043E-06** at limit **
   2  Prefactor     .10000E-03    29.358       -.21472E-05** at limit **
   3  Prefactor     .10000E-03    6.6990       -.17386E-06** at limit **
   4  norm          .10000E-03    .50358        .48830E-07** at limit **
   5  Prefactor     .10000E-03    169.15       -.20870E-03** at limit **
   6  norm          2.8547        5.3092        .10233E-05    .10803E-02
   7  Prefactor     .10000E-03    3.3106       -.18945E-07** at limit **
   8  norm          .10000E-03    2.8537        .11493E-07** at limit **
   9  Prefactor     3.2701        8.9384       -.11011E-05   -.21547E-03
  10  norm          26.587        16.667        .71919E-07   -.14015E-04
  11  Prefactor     .10000E-03    3.7696        .68450E-06** at limit **
  12  norm          3.8263        2.5551       -.11846E-07    .78014E-04
  13  norm          5.7166        4.8312       -.88927E-07   -.24011E-03
  14  Prefactor     .10000E-03    5.0567        .18065E-06** at limit **
  15  Prefactor     .10000E-03    125.18        .13387E-03** at limit **
  16  norm          .10000E-03    12.511        .31490E-06** at limit **
  17  norm          5.5354        19.784        .39541E-05   -.44744E-04
  18  norm          15.131        11.835       -.49380E-06   -.54658E-03
  19  Normalizat    .68954        .25651       -.12494E-06   -.17402E-05
  20  Prefactor     1.1790        .10880        .62486E-07    .12027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.85472
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.27012
  norm       = 26.5871
  Prefactor  = 0.0001
  norm       = 3.82626
  norm       = 5.71656
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.53536
  norm       = 15.1307
  Normalizat = 0.689543
  Prefactor  = 1.17899
 **********
 **   18 **HESSE 
 **********

 FCN=   8463.343     FROM HESSE     STATUS=OK           289 CALLS     2082 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8773        .17680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1496        .12620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    169.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.8547        5.2657        .24030E-03   -1.5370    
   7  Prefactor     .10000E-03    3.3323        .16276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8857        .15172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2701        8.9239        .22394E-03   -1.5346    
  10  norm          26.587        16.674        .77692E-04   -1.4676    
  11  Prefactor     .10000E-03    3.7934        .17437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8263        2.5543        .11655E-03   -1.5317    
  13  norm          5.7166        4.8239        .16800E-03   -1.5230    
  14  Prefactor     .10000E-03    5.0883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    125.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.5354        19.783        .17071E-03   -1.5237    
  18  norm          15.131        11.834        .51483E-03   -1.4930    
  19  Normalizat    .68954        .28134        .48223E-03   -1.0431    
  20  Prefactor     1.1790        .12072        .15927E-03   -.86980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55693e-09
Minuit parameter uncertainties:
  1  2.23928e-07
  2  7.09436e-06
  3  3.90004e-07
  4  2.05849e-06
  5  0.00125011
  6  5.26653
  7  4.90043e-06
  8  7.8096e-07
  9  8.92752
  10  16.6766
  11  9.73891e-07
  12  2.55439
  13  4.82424
  14  1.26131e-07
  15  0.000696078
  16  2.3311e-07
  17  19.806
  18  11.8358
  19  0.28193
  20  0.120744
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  7.810e-07  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:  1.179e+00  1.207e-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:  6.895e-01  2.819e-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: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86458/likelihoodResults_439171201_439430401_4FGL_J1259.7-3223_daily_bin771.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8463.34421656
delta logL = -0.0016516302021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8463.34161304
delta logL = 0.000951893985984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12166E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5420       1.0000          .0000       5.0000    
     3 'Normalizat'    .68513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1800       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8463.342     FROM MIGRAD    STATUS=FAILED        91 CALLS      350 TOTAL
                     EDM=   .61E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11890E-01    151.41        .60045E-03    .84923E-02
   2  alpha         4.5452        2.9942        .50000        .13032E-03
   3  Normalizat    .68547        .87658E-01    .48358E-03    .12414E-02
   4  Prefactor     1.1799        .34138E-01    .15921E-03    .21291E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8463.342     FROM SIMPLEX   STATUS=UNCHANGED    101 CALLS      451 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11890E-01    151.41        .14850E-03    .84923E-02
   2  alpha         4.5452        2.9942        .13149E-01    .13032E-03
   3  Normalizat    .68547        .87658E-01    .15950E-03    .12414E-02
   4  Prefactor     1.1799        .34138E-01    .22393E-04    .21291E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8463.342     FROM MIGRAD    STATUS=FAILED        81 CALLS      532 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11812E-01    204.52        .96073E-06   -.19455E-04
   2  alpha         4.5466        2.6450        .50000        .12302E-03
   3  Normalizat    .68546        .10973        .38686E-05    .14106E-04
   4  Prefactor     1.1799        .43541E-01    .63685E-05   -.10925E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0118116
  alpha      = 4.5466
  Normalizat = 0.685464
  Prefactor  = 1.17992
 **********
 **   18 **HESSE 
 **********

 FCN=   8463.342     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      559 TOTAL
                     EDM=   .12E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11812E-01    204.61        .37399E-06   -1.5686    
   2  alpha         4.5466        2.6304        .50000        .95904    
   3  Normalizat    .68546        .10927        .77373E-06   -1.0447    
   4  Prefactor     1.1799        .43505E-01    .12737E-05   -.86951    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000116643
Minuit parameter uncertainties:
  1  3.10669
  2  125.985
  3  0.109301
  4  0.0435068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86458': 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): 1
logL (Free Index) = 8463.34161208
delta logL = 0.000952857632001

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.181e-02  3.107e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  4.547e+00  1.260e+02  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:  1.180e+00  4.351e-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:  6.855e-01  1.093e-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/86458/cmap_HighResolution_439171201_439430401_4FGL_J1259.7-3223_daily_bin771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-06 14:26:42.540286', job_id='86458', GAL2='1.18', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630963602.54', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='9.53e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='771' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:26:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 86458: <4FGL_J1259.7-3223_daily_bin771> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin771 194.945 -32.3898 439171201 439430401 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 :                                   830.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

