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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin1123
RA = 194.945, Dec = -32.3898
tmin = 530409601, tmax = 530668801
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='88324', job_status='RUN', time_executed='2021-09-06 14:16:01.117368', time_epoch_executed='1630962961.12' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88324

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88324/ft1_4FGL_J1259.7-3223_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88324/ft2_4FGL_J1259.7-3223_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88324/ft1_4FGL_J1259.7-3223_daily_bin1123.fits outfile=/scratch/kocevski/88324/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1123.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=530409601.0 tmax=530668801.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 4.02
user 3.41
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88324/ft1_filtered_4FGL_J1259.7-3223_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/88324/ft2_4FGL_J1259.7-3223_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/88324/ltcube_530409601_530668801_4FGL_J1259.7-3223_daily_bin1123.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/88324/ft2_4FGL_J1259.7-3223_daily_bin1123.fits
.....................!
real 14.99
user 14.22
sys 0.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88324/ft1_filtered_4FGL_J1259.7-3223_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/88324/ft2_4FGL_J1259.7-3223_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/88324/ltcube_530409601_530668801_4FGL_J1259.7-3223_daily_bin1123.fits outfile=/scratch/kocevski/88324/expmap_530409601_530668801_4FGL_J1259.7-3223_daily_bin1123.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/88324/ltcube_530409601_530668801_4FGL_J1259.7-3223_daily_bin1123.fits
.....................!
real 192.09
user 185.58
sys 5.71

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/88324/ft1_filtered_4FGL_J1259.7-3223_daily_bin1123.fits scfile=/scratch/kocevski/88324/ft2_4FGL_J1259.7-3223_daily_bin1123.fits outfile=/scratch/kocevski/88324/cmap_530409601_530668801_4FGL_J1259.7-3223_daily_bin1123.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88324/ft1_filtered_4FGL_J1259.7-3223_daily_bin1123.fits scfile=/scratch/kocevski/88324/ft2_4FGL_J1259.7-3223_daily_bin1123.fits outfile=/scratch/kocevski/88324/cmap_HighResolution_530409601_530668801_4FGL_J1259.7-3223_daily_bin1123.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.79
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88324/ft1_filtered_4FGL_J1259.7-3223_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/88324/ft2_4FGL_J1259.7-3223_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88324/Model_4FGL_J1259.7-3223_daily_bin1123.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/88324/ft1_filtered_4FGL_J1259.7-3223_daily_bin1123.fits.....................!
real 155.84
user 149.91
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.441       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .51106       1.0000         .10000E-03   10000.    
     5 'Prefactor '    69.093       1.0000         .10000E-03   10000.    
     6 'norm      '    15.765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .81267       1.0000         .10000E-03   10000.    
     8 'norm      '    11.837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37852E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9202       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4758       1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14057E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.019       1.0000         .10000E-03   10000.    
    18 'norm      '    5.4006       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3060       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90281       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=   9024.654     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2084 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2712        .13136E-07** at limit **
   2  Prefactor     46.463        39.097        .56782E-05    .41963E-05
   3  Prefactor     .10000E-03    16.185       -.12975E-06** at limit **
   4  norm          .51127        .69998       -.95310E-07   -.75676E-03
   5  Prefactor     69.123        81.687        .23429E-04    .92574E-04
   6  norm          15.840        11.499       -.17269E-05    .72277E-03
   7  Prefactor     .70453        5.8028       -.13996E-05   -.33205E-04
   8  norm          11.838        6.2140       -.29037E-06   -.11663E-03
   9  Prefactor     .10003E-03    4.1646        .73736E-06** at limit **
  10  norm          .10000E-03    7.3039        .40680E-07** at limit **
  11  Prefactor     5.9205        4.3923       -.78254E-06   -.23021E-02
  12  norm          5.4761        2.7643        .41438E-07    .29459E-03
  13  norm          .10000E-03    4.7227        .50335E-07** at limit **
  14  Prefactor     11.131        13.152       -.27641E-07   -.26598E-04
  15  Prefactor     .10000E-03    318.29       -.26454E-04** at limit **
  16  norm          .10000E-03    18.822       -.48759E-06** at limit **
  17  norm          24.041        27.121       -.11698E-04    .44686E-05
  18  norm          5.3998        7.7051       -.26925E-05   -.38441E-04
  19  Normalizat    1.3059        .24603       -.79330E-06    .14078E-03
  20  Prefactor     .90278        .95971E-01    .53648E-06    .90407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 46.4635
  Prefactor  = 0.0001
  norm       = 0.511274
  Prefactor  = 69.1231
  norm       = 15.8403
  Prefactor  = 0.704531
  norm       = 11.8383
  Prefactor  = 0.000100032
  norm       = 0.0001
  Prefactor  = 5.92049
  norm       = 5.4761
  norm       = 0.0001
  Prefactor  = 11.1308
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 24.0414
  norm       = 5.39981
  Normalizat = 1.30585
  Prefactor  = 0.902776
 **********
 **   18 **HESSE 
 **********

 FCN=   9024.654     FROM HESSE     STATUS=OK           301 CALLS     2385 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.463        39.031        .58836E-04   -1.4344    
   3  Prefactor     .10000E-03    16.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .51127        .57816        .89395E-03   -1.5565    
   5  Prefactor     69.123        81.561        .48290E-04   -1.4043    
   6  norm          15.840        14.955        .10087E-03   -1.4912    
   7  Prefactor     .70453        53.439        .31627E-02   -1.5540    
   8  norm          11.838        6.2209        .11643E-03   -1.5020    
   9  Prefactor     .10003E-03    24.357        .37078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.3915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9205        4.4828        .82520E-03   -1.5221    
  12  norm          5.4761        2.7645        .10901E-03   -1.5240    
  13  norm          .10000E-03    4.7777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.131        13.149        .12010E-03   -1.5041    
  15  Prefactor     .10000E-03    323.92        .20521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.041        26.976        .81733E-04   -1.4727    
  18  norm          5.3998        7.7000        .17292E-03   -1.5243    
  19  Normalizat    1.3059        .29333        .37847E-03   -.83392    
  20  Prefactor     .90278        .11569        .17751E-03   -.96044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09349e-08
Minuit parameter uncertainties:
  1  6.92453e-07
  2  39.0525
  3  5.25891e-05
  4  0.578166
  5  81.6937
  6  14.9583
  7  12.2823
  8  6.22119
  9  0.00176657
  10  9.28213e-06
  11  4.48303
  12  2.76459
  13  4.99984e-06
  14  13.1523
  15  0.00185306
  16  2.42522e-06
  17  26.9899
  18  7.70138
  19  0.2937
  20  0.115717
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  9.028e-01  1.157e-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.306e+00  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.11
Ra Dec: 194.945 -32.390
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 9.21e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 3.34e-05 +/- 1.76e-05

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) = 9023.91959426
delta logL = 0.734041995682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9023.91693653
delta logL = 0.736699723591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4552       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9679       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92022       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=   9023.917     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      279 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4553        6.4643        .11212E-03   -.11479E-03
   2  alpha         2.9680        .61731        .10597E-01    .33427E-03
   3  Normalizat    1.2357        .29602        .38722E-03    .28126E-04
   4  Prefactor     .92028        .11646        .17592E-03    .86674E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.4553
  alpha      = 2.968
  Normalizat = 1.2357
  Prefactor  = 0.920283
 **********
 **   18 **HESSE 
 **********

 FCN=   9023.917     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4553        5.8749        .44847E-05   -1.5162    
   2  alpha         2.9680        .56156        .21193E-02    .18831    
   3  Normalizat    1.2357        .29563        .15489E-04   -.85507    
   4  Prefactor     .92028        .11635        .35184E-04   -.95436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48398e-12
Minuit parameter uncertainties:
  1  5.87534
  2  0.566574
  3  0.296037
  4  0.116383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88324': 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) = 9023.91693623
delta logL = 0.736700028958

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  7.455e+00  5.875e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.968e+00  5.666e-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:  9.203e-01  1.164e-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.236e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.67
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 2.97 +/- 0.57
Photon Flux (Free Index): 1.45e-07 +/- 7.40e-08
Energy Flux (Free Index): 3.22e-05 +/- 1.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/88324/cmap_HighResolution_530409601_530668801_4FGL_J1259.7-3223_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.21e-08', energy_flux2='3.22e-05', photon_flux_error='4.84e-08', dlogl='7.37e-01', energy_flux='3.34e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-06 14:30:42.310826', photon_index_error2='0.57', photon_index2='2.97', ts='6.11', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.49e-05', EG='1.31', time_epoch_completed='1630963842.31', return_code='0', job_id='88324', GAL2='0.92', EG2='1.24', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='7.40e-08', ts2='7.67', photon_index='2.32' WHERE bin_id='1123' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:30:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 88324: <4FGL_J1259.7-3223_daily_bin1123> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin1123> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:15:39 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:15:41 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:15:41 2021
Terminated at Mon Sep  6 14:30:43 2021
Results reported at Mon Sep  6 14:30:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin1123 194.945 -32.3898 530409601 530668801 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 :                                   793.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             376.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

