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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin165
RA = 194.945, Dec = -32.3898
tmin = 282096001, tmax = 282355201
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='81229', job_status='RUN', time_executed='2021-09-06 13:58:24.677325', time_epoch_executed='1630961904.68' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='165'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81229/ft1_4FGL_J1259.7-3223_daily_bin165.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81229/ft2_4FGL_J1259.7-3223_daily_bin165.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81229/ft1_4FGL_J1259.7-3223_daily_bin165.fits outfile=/scratch/kocevski/81229/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin165.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=282096001.0 tmax=282355201.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.47
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81229/ft1_filtered_4FGL_J1259.7-3223_daily_bin165.fits" evtable="EVENTS" scfile=/scratch/kocevski/81229/ft2_4FGL_J1259.7-3223_daily_bin165.fits sctable="SC_DATA" outfile=/scratch/kocevski/81229/ltcube_282096001_282355201_4FGL_J1259.7-3223_daily_bin165.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/81229/ft2_4FGL_J1259.7-3223_daily_bin165.fits
.....................!
real 11.91
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81229/ft1_filtered_4FGL_J1259.7-3223_daily_bin165.fits evtable="EVENTS" scfile=/scratch/kocevski/81229/ft2_4FGL_J1259.7-3223_daily_bin165.fits sctable="SC_DATA" expcube=/scratch/kocevski/81229/ltcube_282096001_282355201_4FGL_J1259.7-3223_daily_bin165.fits outfile=/scratch/kocevski/81229/expmap_282096001_282355201_4FGL_J1259.7-3223_daily_bin165.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/81229/ltcube_282096001_282355201_4FGL_J1259.7-3223_daily_bin165.fits
.....................!
real 191.02
user 185.23
sys 5.35

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/81229/ft1_filtered_4FGL_J1259.7-3223_daily_bin165.fits scfile=/scratch/kocevski/81229/ft2_4FGL_J1259.7-3223_daily_bin165.fits outfile=/scratch/kocevski/81229/cmap_282096001_282355201_4FGL_J1259.7-3223_daily_bin165.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81229/ft1_filtered_4FGL_J1259.7-3223_daily_bin165.fits scfile=/scratch/kocevski/81229/ft2_4FGL_J1259.7-3223_daily_bin165.fits outfile=/scratch/kocevski/81229/cmap_HighResolution_282096001_282355201_4FGL_J1259.7-3223_daily_bin165.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.9143       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.044       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7303       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.9032       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73860       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8440       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9204       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10385E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .99936       1.0000         .10000E-03   10000.    
    18 'norm      '    8.0995       1.0000         .10000E-03   10000.    
    19 'Normalizat'    2.0272       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80173       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7883.008     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     2067 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.130        .36285E-03** at limit **
   2  Prefactor     .10000E-03    13.901        .18142E-02** at limit **
   3  Prefactor     .10000E-03    23.925        .18142E-02** at limit **
   4  norm          1.9141        1.2869        .79300E-04   -.14408E-03
   5  Prefactor     .10000E-03    37.305        .18142E-02** at limit **
   6  norm          15.045        7.4695        .10326E-03   -.10844E-03
   7  Prefactor     1.7287        3.9081        .24351E-03   -.20556E-03
   8  norm          .10000E-03    1.3258        .99763E-03** at limit **
   9  Prefactor     .10000E-03    13.486        .18142E-02** at limit **
  10  norm          5.9065        12.226        .16528E-03    .96023E-04
  11  Prefactor     .73693        12.567        .37614E-02    .51232E-03
  12  norm          1.8441        1.5990        .10183E-03    .43428E-04
  13  norm          .10000E-03    5.2419        .18142E-02** at limit **
  14  Prefactor     8.9006        15.670        .13420E-03   -.71754E-04
  15  Prefactor     .10000E-03    19.174        .18142E-02** at limit **
  16  norm          .10000E-03    18.882        .18142E-02** at limit **
  17  norm          .92336        161.22        .71946E-02    .48873E-04
  18  norm          8.1075        10.117        .70439E-03   -.36140E-03
  19  Normalizat    2.0272        .35272        .35493E-03    .81140E-04
  20  Prefactor     .80183        .13555        .20106E-03    .14888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 1.91407
  Prefactor  = 0.000100003
  norm       = 15.0449
  Prefactor  = 1.72866
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.90654
  Prefactor  = 0.736934
  norm       = 1.84406
  norm       = 0.0001
  Prefactor  = 8.90061
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.92336
  norm       = 8.10755
  Normalizat = 2.02715
  Prefactor  = 0.801831
 **********
 **   18 **HESSE 
 **********

 FCN=   7883.008     FROM HESSE     STATUS=OK           275 CALLS     2342 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.131        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.9141        1.2868        .31720E-05   -1.5431    
   5  Prefactor     .10000E-03    37.306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.045        7.4684        .41306E-05   -1.4932    
   7  Prefactor     1.7287        3.9075        .97405E-05   -1.5445    
   8  norm          .10000E-03    1.3258        .19953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9065        12.149        .66112E-05   -1.5222    
  11  Prefactor     .73693        12.405        .15046E-03   -1.5536    
  12  norm          1.8441        1.5990        .40734E-05   -1.5436    
  13  norm          .10000E-03    5.2440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9006        15.669        .53680E-05   -1.5111    
  15  Prefactor     .10000E-03    19.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .92336        164.64        .28778E-03   -1.5516    
  18  norm          8.1075        10.117        .28176E-04   -1.5138    
  19  Normalizat    2.0272        .35291        .70986E-04   -.63872    
  20  Prefactor     .80183        .13533        .80425E-05   -.99661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18256e-09
Minuit parameter uncertainties:
  1  0.000209733
  2  0.000191897
  3  0.000532877
  4  1.28685
  5  0.000661181
  6  7.46886
  7  3.90812
  8  1.60236e-06
  9  6.55756e-05
  10  12.1543
  11  6.04814
  12  1.59901
  13  1.72894e-05
  14  15.6761
  15  6.32807e-05
  16  0.000140757
  17  24.7276
  18  10.1191
  19  0.353367
  20  0.135389
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  8.018e-01  1.354e-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:  2.027e+00  3.534e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81229/likelihoodResults_282096001_282355201_4FGL_J1259.7-3223_daily_bin165.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) = 7883.01174334
delta logL = -0.00347058904845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7883.0082727
delta logL = 5.06142896484e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3166       1.0000          .0000       5.0000    
     3 'Normalizat'    2.0271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80185       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7883.008     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      227 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    162.55        .99973E-02** at limit **
   2  alpha         1.9297        3.3960        .82585E-01    .13353E-07
   3  Normalizat    2.0272        .93421E-01    .35493E-03    .52306E-04
   4  Prefactor     .80183        .35851E-01    .20106E-03    .10511E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.92966
  Normalizat = 2.02715
  Prefactor  = 0.801831
 **********
 **   18 **HESSE 
 **********

 FCN=   7883.008     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4099        .10291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9297        3.9688        .33034E-02   -.23016    
   3  Normalizat    2.0272        .34545        .14197E-04   -.63872    
   4  Prefactor     .80183        .13271        .80425E-05   -.99661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97744e-12
Minuit parameter uncertainties:
  1  5.87036e-07
  2  179.938
  3  0.345875
  4  0.132761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81229': 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) = 7883.00827051
delta logL = 2.24286486628e-06

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  5.870e-07  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.930e+00  1.799e+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:  8.018e-01  1.328e-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:  2.027e+00  3.459e-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/81229/cmap_HighResolution_282096001_282355201_4FGL_J1259.7-3223_daily_bin165.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-05', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-09-06 14:11:35.338332', job_id='81229', GAL2='0.80', fit_tolerance='1e-08', EG2='2.03', EG='2.03', time_epoch_completed='1630962695.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='165' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:11:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 81229: <4FGL_J1259.7-3223_daily_bin165> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin165> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 13:56:23 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:56:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 13:56:24 2021
Terminated at Mon Sep  6 14:11:36 2021
Results reported at Mon Sep  6 14:11:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin165 194.945 -32.3898 282096001 282355201 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 :                                   786.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

