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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin364
RA = 194.945, Dec = -32.3898
tmin = 333676801, tmax = 333936001
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='83037', job_status='RUN', time_executed='2021-09-06 14:03:05.238981', time_epoch_executed='1630962185.24' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83037

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83037/ft1_4FGL_J1259.7-3223_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83037/ft2_4FGL_J1259.7-3223_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83037/ft1_4FGL_J1259.7-3223_daily_bin364.fits outfile=/scratch/kocevski/83037/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin364.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=333676801.0 tmax=333936001.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.20
user 2.95
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83037/ft1_filtered_4FGL_J1259.7-3223_daily_bin364.fits" evtable="EVENTS" scfile=/scratch/kocevski/83037/ft2_4FGL_J1259.7-3223_daily_bin364.fits sctable="SC_DATA" outfile=/scratch/kocevski/83037/ltcube_333676801_333936001_4FGL_J1259.7-3223_daily_bin364.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/83037/ft2_4FGL_J1259.7-3223_daily_bin364.fits
.....................!
real 11.52
user 11.00
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83037/ft1_filtered_4FGL_J1259.7-3223_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/83037/ft2_4FGL_J1259.7-3223_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/83037/ltcube_333676801_333936001_4FGL_J1259.7-3223_daily_bin364.fits outfile=/scratch/kocevski/83037/expmap_333676801_333936001_4FGL_J1259.7-3223_daily_bin364.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/83037/ltcube_333676801_333936001_4FGL_J1259.7-3223_daily_bin364.fits
.....................!
real 157.23
user 152.61
sys 3.79

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/83037/ft1_filtered_4FGL_J1259.7-3223_daily_bin364.fits scfile=/scratch/kocevski/83037/ft2_4FGL_J1259.7-3223_daily_bin364.fits outfile=/scratch/kocevski/83037/cmap_333676801_333936001_4FGL_J1259.7-3223_daily_bin364.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.55
user 0.32
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83037/ft1_filtered_4FGL_J1259.7-3223_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/83037/ft2_4FGL_J1259.7-3223_daily_bin364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83037/Model_4FGL_J1259.7-3223_daily_bin364.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/83037/ft1_filtered_4FGL_J1259.7-3223_daily_bin364.fits.....................!
real 163.16
user 161.42
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.410       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8698       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.8662       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.309       1.0000         .10000E-03   10000.    
     6 'norm      '    12.354       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .98219       1.0000         .10000E-03   10000.    
    10 'norm      '    13.078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0816       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2461       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4077       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.965       1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.111       1.0000         .10000E-03   10000.    
    18 'norm      '    9.1386       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2202       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0009       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=   12003.39     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1733 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.408        14.506        .17700E-06   -.44057E-04
   2  Prefactor     2.8332        95.929       -.24912E-05   -.66942E-04
   3  Prefactor     .10000E-03    8.6749       -.76294E-06** at limit **
   4  norm          4.8662        1.1687        .24552E-07   -.10627E-03
   5  Prefactor     15.310        61.621        .53499E-06   -.77421E-06
   6  norm          12.354        6.1296        .54776E-07   -.27703E-04
   7  Prefactor     .10000E-03    1.7804        .46493E-07** at limit **
   8  norm          .10000E-03    1.7826        .48798E-07** at limit **
   9  Prefactor     .98223        8.3616        .63630E-05   -.64114E-04
  10  norm          13.078        10.584        .81078E-07   -.14914E-04
  11  Prefactor     5.0816        4.1383        .74172E-07   -.48113E-04
  12  norm          2.2461        2.6381        .51469E-06    .60671E-05
  13  norm          1.4074        3.6810        .20301E-05   -.17723E-06
  14  Prefactor     .10000E-03    4.4255        .15519E-06** at limit **
  15  Prefactor     17.999        53.767        .18753E-05    .63055E-04
  16  norm          .10000E-03    15.157        .53017E-07** at limit **
  17  norm          25.111        24.121        .21484E-06   -.10289E-04
  18  norm          9.1385        8.0138        .13152E-06   -.98799E-05
  19  Normalizat    1.2202        .21747        .57007E-06   -.27506E-03
  20  Prefactor     1.0009        .89165E-01   -.12957E-05   -.23055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4081
  Prefactor  = 2.83316
  Prefactor  = 0.0001
  norm       = 4.86619
  Prefactor  = 15.3095
  norm       = 12.3536
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.982229
  norm       = 13.0779
  Prefactor  = 5.08163
  norm       = 2.24615
  norm       = 1.40744
  Prefactor  = 0.0001
  Prefactor  = 17.999
  norm       = 0.0001
  norm       = 25.1108
  norm       = 9.13851
  Normalizat = 1.22024
  Prefactor  = 1.00086
 **********
 **   18 **HESSE 
 **********

 FCN=   12003.39     FROM HESSE     STATUS=OK           295 CALLS     2028 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.408        14.512        .88657E-04   -1.4804    
   2  Prefactor     2.8332        97.760        .23995E-03   -1.5371    
   3  Prefactor     .10000E-03    8.6905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.8662        1.1692        .55652E-04   -1.5267    
   5  Prefactor     15.310        61.461        .10237E-03   -1.4925    
   6  norm          12.354        6.1165        .11397E-03   -1.5005    
   7  Prefactor     .10000E-03    1.7863        .14261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8094        .14281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .98223        8.4137        .52410E-02   -1.5510    
  10  norm          13.078        10.584        .11076E-03   -1.4985    
  11  Prefactor     5.0816        4.1383        .17836E-03   -1.5257    
  12  norm          2.2461        2.6310        .18611E-03   -1.5408    
  13  norm          1.4074        3.6860        .32855E-03   -1.5471    
  14  Prefactor     .10000E-03    4.4677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.999        53.781        .94494E-04   -1.4859    
  16  norm          .10000E-03    15.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.111        24.125        .79939E-04   -1.4705    
  18  norm          9.1385        8.0128        .13258E-03   -1.5103    
  19  Normalizat    1.2202        .25730        .39251E-03   -.85980    
  20  Prefactor     1.0009        .10489        .17624E-03   -.92701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.938e-07
Minuit parameter uncertainties:
  1  14.5146
  2  33.3435
  3  4.61381e-06
  4  1.16919
  5  61.4597
  6  6.11685
  7  1.33247e-06
  8  6.96996e-07
  9  5.75029
  10  10.586
  11  4.13852
  12  2.63118
  13  3.68662
  14  7.90888e-06
  15  53.9262
  16  1.34591e-05
  17  24.1345
  18  8.0137
  19  0.257565
  20  0.104912
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  6.970e-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.001e+00  1.049e-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.220e+00  2.576e-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: 5.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83037/likelihoodResults_333676801_333936001_4FGL_J1259.7-3223_daily_bin364.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) = 12003.3905418
delta logL = -0.00263327579705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12003.3879085
delta logL = -6.44104147796e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3227       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0009       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=   12003.39     FROM MIGRAD    STATUS=FAILED        84 CALLS      231 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    384.12        .14282E-02** at limit **
   2  alpha         2.3110        3.5328        .16513        .12124E-05
   3  Normalizat    1.2202        .13771        .39250E-03    .32209E-04
   4  Prefactor     1.0009        .57046E-01    .17624E-03    .52974E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12003.39     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      396 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    384.12        .23430E-03** at limit **
   2  alpha         2.3110        3.5328        .18325E-05    .12124E-05
   3  Normalizat    1.2202        .13771        .11127E-06    .32209E-04
   4  Prefactor     1.0009        .57046E-01    .46631E-07    .52974E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12003.39     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      431 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8264        .28563E-03** at limit **
   2  alpha         2.2957        3.1379        .66053E-01    .48192E-08
   3  Normalizat    1.2202        .24939        .15700E-04   -.27806E-04
   4  Prefactor     1.0009        .10337        .35247E-04   -.66701E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.29572
  Normalizat = 1.22024
  Prefactor  = 1.00086
 **********
 **   18 **HESSE 
 **********

 FCN=   12003.39     FROM HESSE     STATUS=OK            23 CALLS      454 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8109        .57127E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2957        3.1461        .26421E-02   -.81802E-01
   3  Normalizat    1.2202        .24930        .31400E-05   -.85980    
   4  Prefactor     1.0009        .10334        .70495E-05   -.92701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32634e-12
Minuit parameter uncertainties:
  1  3.71145e-07
  2  178.235
  3  0.249544
  4  0.103363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83037': 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) = 12003.3879085
delta logL = 1.24236976262e-08

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  3.711e-07  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.296e+00  1.782e+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.001e+00  1.034e-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.220e+00  2.495e-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/83037/cmap_HighResolution_333676801_333936001_4FGL_J1259.7-3223_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-05', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-09-06 14:16:55.919497', job_id='83037', GAL2='1.00', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630963015.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='364' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:16:55 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin364 194.945 -32.3898 333676801 333936001 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 :                                   827.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             329.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

