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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin1317
RA = 194.945, Dec = -32.3898
tmin = 580694401, tmax = 580953601
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='89994', job_status='RUN', time_executed='2021-09-06 14:21:59.859172', time_epoch_executed='1630963319.86' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89994

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89994/ft1_4FGL_J1259.7-3223_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89994/ft2_4FGL_J1259.7-3223_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89994/ft1_4FGL_J1259.7-3223_daily_bin1317.fits outfile=/scratch/kocevski/89994/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1317.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=580694401.0 tmax=580953601.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.82
user 2.62
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89994/ft1_filtered_4FGL_J1259.7-3223_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/89994/ft2_4FGL_J1259.7-3223_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/89994/ltcube_580694401_580953601_4FGL_J1259.7-3223_daily_bin1317.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/89994/ft2_4FGL_J1259.7-3223_daily_bin1317.fits
.....................!
real 12.94
user 12.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89994/ft1_filtered_4FGL_J1259.7-3223_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/89994/ft2_4FGL_J1259.7-3223_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/89994/ltcube_580694401_580953601_4FGL_J1259.7-3223_daily_bin1317.fits outfile=/scratch/kocevski/89994/expmap_580694401_580953601_4FGL_J1259.7-3223_daily_bin1317.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/89994/ltcube_580694401_580953601_4FGL_J1259.7-3223_daily_bin1317.fits
.....................!
real 191.33
user 185.28
sys 5.46

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/89994/ft1_filtered_4FGL_J1259.7-3223_daily_bin1317.fits scfile=/scratch/kocevski/89994/ft2_4FGL_J1259.7-3223_daily_bin1317.fits outfile=/scratch/kocevski/89994/cmap_580694401_580953601_4FGL_J1259.7-3223_daily_bin1317.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.65
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89994/ft1_filtered_4FGL_J1259.7-3223_daily_bin1317.fits scfile=/scratch/kocevski/89994/ft2_4FGL_J1259.7-3223_daily_bin1317.fits outfile=/scratch/kocevski/89994/cmap_HighResolution_580694401_580953601_4FGL_J1259.7-3223_daily_bin1317.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.67
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/89994/ft1_filtered_4FGL_J1259.7-3223_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/89994/ft2_4FGL_J1259.7-3223_daily_bin1317.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89994/Model_4FGL_J1259.7-3223_daily_bin1317.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/89994/ft1_filtered_4FGL_J1259.7-3223_daily_bin1317.fits.....................!
real 85.59
user 83.23
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10741E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.853       1.0000         .10000E-03   10000.    
     4 'norm      '    4.0892       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .37306E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.201       1.0000         .10000E-03   10000.    
     8 'norm      '    10.621       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.840       1.0000         .10000E-03   10000.    
    10 'norm      '    .10627E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12939E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.340       1.0000         .10000E-03   10000.    
    15 'Prefactor '    107.62       1.0000         .10000E-03   10000.    
    16 'norm      '    .14304E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .98180       1.0000         .10000E-03   10000.    
    18 'norm      '    .12048E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5033       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85508       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=   4432.969     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2422 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.201       -.97135E-07** at limit **
   2  Prefactor     .10000E-03    23.189        .39607E-08** at limit **
   3  Prefactor     56.877        41.721       -.76749E-07    .17729E-04
   4  norm          4.0893        1.7920       -.16481E-06    .92462E-04
   5  Prefactor     .10000E-03    87.414        .62621E-05** at limit **
   6  norm          .10019E-03    9.8934       -.44956E-06** at limit **
   7  Prefactor     13.203        12.133       -.33106E-06    .14649E-03
   8  norm          10.629        11.661        .15718E-05   -.32982E-04
   9  Prefactor     28.815        18.068        .95419E-06    .17702E-04
  10  norm          .10000E-03    9.2006       -.17799E-07** at limit **
  11  Prefactor     .10001E-03    6.1386       -.77712E-06** at limit **
  12  norm          .10000E-03    1.6508       -.24501E-07** at limit **
  13  norm          .10000E-03    19.347        .15107E-06** at limit **
  14  Prefactor     25.303        24.416       -.12566E-04    .37759E-05
  15  Prefactor     107.47        159.37       -.12779E-03   -.14693E-04
  16  norm          .10000E-03    39.099        .69211E-06** at limit **
  17  norm          1.6170        95.519        .84722E-05   -.53881E-04
  18  norm          .10000E-03    35.457        .23319E-06** at limit **
  19  Normalizat    1.5037        .39278        .29312E-05    .94087E-05
  20  Prefactor     .85488        .14757        .23106E-05   -.83051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.8771
  norm       = 4.08928
  Prefactor  = 0.0001
  norm       = 0.000100189
  Prefactor  = 13.2028
  norm       = 10.6292
  Prefactor  = 28.8145
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.303
  Prefactor  = 107.467
  norm       = 0.0001
  norm       = 1.617
  norm       = 0.000100001
  Normalizat = 1.50372
  Prefactor  = 0.854877
 **********
 **   18 **HESSE 
 **********

 FCN=   4432.969     FROM HESSE     STATUS=OK           313 CALLS     2735 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.877        41.866        .53203E-04   -1.4198    
   4  norm          4.0893        1.7913        .56286E-04   -1.5304    
   5  Prefactor     .10000E-03    87.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10019E-03    29.047        .50838E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.203        12.934        .11025E-03   -1.4981    
   8  norm          10.629        11.663        .12294E-03   -1.5056    
   9  Prefactor     28.815        18.079        .74603E-04   -1.4634    
  10  norm          .10000E-03    9.2058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    57.208        .32042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6563        .83529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    19.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.303        24.428        .79578E-04   -1.4701    
  15  Prefactor     107.47        159.60        .19383E-03   -1.3631    
  16  norm          .10000E-03    39.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6170        97.199        .19876       -1.5454    
  18  norm          .10000E-03    35.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5037        .47493        .39277E-03   -.77674    
  20  Prefactor     .85488        .17822        .19233E-03   -.97736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80904e-10
Minuit parameter uncertainties:
  1  3.2854e-05
  2  3.85921e-05
  3  41.8873
  4  1.79131
  5  5.54451e-05
  6  0.00469043
  7  12.937
  8  11.6654
  9  18.0828
  10  6.0077e-06
  11  0.00143197
  12  2.80471e-06
  13  5.68997e-05
  14  24.4373
  15  160.243
  16  4.48099e-05
  17  25.1156
  18  0.000276715
  19  0.476345
  20  0.178345
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  8.549e-01  1.783e-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.504e+00  4.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 194.945 -32.390
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 8.27e-08 +/- 9.08e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 3.29e-05

TS (Fixed Index): 1.11
Ra Dec: 194.945 -32.390
Photon Flux Upper Limit: 2.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89994/likelihoodResults_580694401_580953601_4FGL_J1259.7-3223_daily_bin1317.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) = 4432.8602782
delta logL = 0.108561110601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4432.8559238
delta logL = 0.112915511719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7397       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7284       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86539       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=   4432.856     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7490        225.46        .33897E-02    .15692E-03
   2  alpha         2.7292        3.6901        .37788        .42457E-04
   3  Normalizat    1.4610        .13493        .89728E-01    .14280E-04
   4  Prefactor     .86497        .49290E-01    .44562E-01   -.29506E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.74899
  alpha      = 2.72923
  Normalizat = 1.46102
  Prefactor  = 0.864969
 **********
 **   18 **HESSE 
 **********

 FCN=   4432.856     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7490        11.866        .13559E-03   -1.5116    
   2  alpha         2.7292        .90565        .13165E-01    .91821E-01
   3  Normalizat    1.4610        .47149        .39734E-03   -.78880    
   4  Prefactor     .86497        .17884        .19129E-03   -.97376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54569e-11
Minuit parameter uncertainties:
  1  11.8691
  2  0.926914
  3  0.47291
  4  0.178961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89994': 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) = 4432.85591763
delta logL = 0.112921678872

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  8.650e-01  1.790e-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.461e+00  4.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 2.73 +/- 0.93
Photon Flux (Free Index): 1.19e-07 +/- 1.27e-07
Energy Flux (Free Index): 3.04e-05 +/- 3.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/89994/cmap_HighResolution_580694401_580953601_4FGL_J1259.7-3223_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', comment='SUCCESS', photon_flux='8.27e-08', energy_flux2='3.04e-05', photon_flux_error='9.08e-08', dlogl='1.13e-01', energy_flux='3.00e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-06 14:33:20.826992', photon_index_error2='0.93', photon_index2='2.73', ts='1.11', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='2.80e-07', energy_flux_error2='3.06e-05', EG='1.50', time_epoch_completed='1630964000.83', return_code='0', job_id='89994', GAL2='0.86', EG2='1.46', return_code2='0', energy_flux_error='3.29e-05', photon_flux_error2='1.27e-07', ts2='1.34', photon_index='2.32' WHERE bin_id='1317' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:33:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 89994: <4FGL_J1259.7-3223_daily_bin1317> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin1317> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 14:20:26 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:20:27 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:20:27 2021
Terminated at Mon Sep  6 14:33:21 2021
Results reported at Mon Sep  6 14:33:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin1317 194.945 -32.3898 580694401 580953601 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 :                                   606.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            775 sec.

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

