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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin1561
RA = 194.042, Dec = -5.7887
tmin = 643939201, tmax = 644198401
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='31597', job_status='RUN', time_executed='2021-09-06 11:29:30.755695', time_epoch_executed='1630952970.76' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31597/ft1_4FGL_J1256.1-0547_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31597/ft1_4FGL_J1256.1-0547_daily_bin1561.fits outfile=/scratch/kocevski/31597/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin1561.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=643939201.0 tmax=644198401.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.45
user 4.19
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.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/31597/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin1561.fits evtable="EVENTS" outfile="/scratch/kocevski/31597/ft1_filtered_4FGL_J1256.1-0547_daily_bin1561.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/31597/ft1_filtered_4FGL_J1256.1-0547_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/31597/ltcube_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.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/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits
.....................!
real 12.10
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31597/ft1_filtered_4FGL_J1256.1-0547_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/31597/ltcube_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.fits outfile=/scratch/kocevski/31597/expmap_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.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/31597/ltcube_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.fits
.....................!
real 190.74
user 184.97
sys 5.11

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
Added 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J1256.1-0547 @ 194.042 -5.7887

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/31597/ft1_filtered_4FGL_J1256.1-0547_daily_bin1561.fits scfile=/scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits outfile=/scratch/kocevski/31597/cmap_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.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.042 yref=-5.7887 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31597/ft1_filtered_4FGL_J1256.1-0547_daily_bin1561.fits scfile=/scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits outfile=/scratch/kocevski/31597/cmap_HighResolution_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.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.042 yref=-5.7887 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31597/ft1_filtered_4FGL_J1256.1-0547_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31597/Model_4FGL_J1256.1-0547_daily_bin1561.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/31597/ft1_filtered_4FGL_J1256.1-0547_daily_bin1561.fits.....................!
real 51.97
user 50.62
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31597/ft1_filtered_4FGL_J1256.1-0547_daily_bin1561.fits', '/scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits', expMap='/scratch/kocevski/31597/expmap_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.fits', expCube='/scratch/kocevski/31597/ltcube_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31597/Model_4FGL_J1256.1-0547_daily_bin1561.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1256.1-0547'

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  3.298e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.366e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  4.660e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/31597/ft1_filtered_4FGL_J1256.1-0547_daily_bin1561.fits
Spacecraft file(s): /scratch/kocevski/31597/ft2_4FGL_J1256.1-0547_daily_bin1561.fits
Exposure map: /scratch/kocevski/31597/expmap_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.fits
Exposure cube: /scratch/kocevski/31597/ltcube_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31597/Model_4FGL_J1256.1-0547_daily_bin1561.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) = 6269.00308435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9214       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5246       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50927       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10221E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3505       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    40.497       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1593       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.4175       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    23.875       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4754       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6268.971     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2473 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5025         .0000    ** at limit **
   2  norm          .10000E-03    .95994         .0000    ** at limit **
   3  Prefactor     .10000E-03    3.2351         .0000    ** at limit **
   4  norm          3.4960        .85035         .0000        .86531E-03
   5  Prefactor     8.9210        3.4441         .0000        .13392E-03
   6  Prefactor     6.5241        6.9914         .0000       -.36168E-04
   7  Prefactor     .47484        10.873         .0000       -.16749E-03
   8  norm          2.9820        1.8599         .0000        .11380E-03
   9  Prefactor     .10000E-03    11.429         .0000    ** at limit **
  10  Prefactor     .10000E-03    14.774         .0000    ** at limit **
  11  Prefactor     .10006E-03    99.367         .0000    ** at limit **
  12  norm          .10000E-03    37.820         .0000    ** at limit **
  13  norm          2.3504        .41050         .0000        .22085E-03
  14  Prefactor     .10007E-03    23.506         .0000    ** at limit **
  15  norm          40.498        17.013         .0000        .26509E-03
  16  norm          1.1597        8.9881         .0000        .22701E-01
  17  Prefactor     .10000E-03    5.5512         .0000    ** at limit **
  18  Prefactor     .10000E-03    7.5547         .0000    ** at limit **
  19  Prefactor     .10000E-03    3.4696         .0000    ** at limit **
  20  Prefactor     .10008E-03    24.974         .0000    ** at limit **
  21  norm          3.4175        1.8680         .0000       -.65657E-04
  22  norm          .10000E-03    1.6179         .0000    ** at limit **
  23  norm          23.875        24.896         .0000        .28912E-04
  24  Normalizat    1.4754        .27537         .0000        .41558E-04
  25  Prefactor     .98096        .17951         .0000        .11166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49595
  Prefactor  = 8.92102
  Prefactor  = 6.52414
  Prefactor  = 0.47484
  norm       = 2.982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100063
  norm       = 0.0001
  norm       = 2.35038
  Prefactor  = 0.000100066
  norm       = 40.4975
  norm       = 1.15972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100081
  norm       = 3.41749
  norm       = 0.0001
  norm       = 23.8753
  Normalizat = 1.47541
  Prefactor  = 0.98096
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.971     FROM HESSE     STATUS=OK           423 CALLS     2896 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5066        .16407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .96509        .75748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2477        .13903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4960        .85348        .34238E-04   -1.5334    
   5  Prefactor     8.9210        3.4533        .87770E-04   -1.5111    
   6  Prefactor     6.5241        6.9921        .15711E-03   -1.5197    
   7  Prefactor     .47484        128.88        .48238E-02   -1.5570    
   8  norm          2.9820        1.8555        .82376E-04   -1.5363    
   9  Prefactor     .10000E-03    11.810        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    99.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    38.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3504        .41160        .20225E-04   -1.5401    
  14  Prefactor     .10007E-03    23.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          40.498        17.027        .62989E-04   -1.4434    
  16  norm          1.1597        8.9076        .21409E-02   -1.5493    
  17  Prefactor     .10000E-03    5.5706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4790        .14403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10008E-03    25.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.4175        1.8687        .76776E-04   -1.5338    
  22  norm          .10000E-03    1.6232        .98348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          23.875        24.898        .81979E-04   -1.4730    
  24  Normalizat    1.4754        .32626        .33813E-03   -.78472    
  25  Prefactor     .98096        .21374        .26709E-03   -.93367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22807e-08
Minuit parameter uncertainties:
  1  2.25112e-05
  2  4.17075e-06
  3  1.05465e-05
  4  0.853482
  5  3.45334
  6  6.99297
  7  15.6786
  8  1.85549
  9  4.42828e-05
  10  0.000162876
  11  0.00500826
  12  0.000202214
  13  0.411602
  14  0.00248975
  15  17.0287
  16  6.42922
  17  3.7524e-06
  18  4.27202e-06
  19  1.58684e-05
  20  0.00286164
  21  1.86876
  22  1.04006e-06
  23  24.9083
  24  0.326725
  25  0.213921
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  2.350e+00  4.116e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.366e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  4.660e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
636    Prefactor:  9.810e-01  2.139e-01  0.000e+00  1.000e+01 ( 1.000e+00)
637        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
638        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.475e+00  3.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 101.56
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 5.31e-07 +/- 9.30e-08
Energy Flux (Fixed Index): 2.00e-04 +/- 3.50e-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) = 6268.96563301
delta logL = 0.00526842710951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6268.96533908
delta logL = 0.00556235669956

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6268.965     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      195 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3465        .44622        .45592E-02   -.79641E-05
   2  alpha         2.2154        .19277        .12302        .18829E-05
   3  Normalizat    1.4694        .27069        .76519E-01    .76627E-05
   4  Prefactor     .98353        .17769        .46062E-01    .95270E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34654
  alpha      = 2.21542
  Normalizat = 1.46941
  Prefactor  = 0.98353
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.965     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .17E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3465        .41079        .20156E-04   -1.5402    
   2  alpha         2.2154        .17978        .53760E-03   -.11408    
   3  Normalizat    1.4694        .32125        .33863E-03   -.78641    
   4  Prefactor     .98353        .21005        .26678E-03   -.93281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67504e-15
Minuit parameter uncertainties:
  1  0.410787
  2  0.179933
  3  0.321698
  4  0.210222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31597': 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) = 6268.96533865
delta logL = 0.00556278241766

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  2.347e+00  4.108e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.215e+00  1.799e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.366e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  4.660e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
636    Prefactor:  9.835e-01  2.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
637        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
638        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.469e+00  3.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 100.54
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.22 +/- 0.18
Photon Flux (Free Index): 5.37e-07 +/- 1.11e-07
Energy Flux (Free Index): 1.98e-04 +/- 4.09e-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/31597/cmap_HighResolution_643939201_644198401_4FGL_J1256.1-0547_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.31e-07', energy_flux2='1.98e-04', photon_flux_error='9.30e-08', dlogl='5.56e-03', energy_flux='2.00e-04', photon_flux2='5.37e-07', job_status='DONE', time_completed='2021-09-06 11:40:05.125655', photon_index_error2='0.18', photon_index2='2.22', ts='101.56', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='4.09e-05', EG='1.48', time_epoch_completed='1630953605.13', return_code='0', job_id='31597', GAL2='0.98', EG2='1.47', return_code2='0', energy_flux_error='3.50e-05', photon_flux_error2='1.11e-07', ts2='100.54', photon_index='2.20' WHERE bin_id='1561' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:40:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 31597: <4FGL_J1256.1-0547_daily_bin1561> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin1561> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:25:21 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:25:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:25:22 2021
Terminated at Mon Sep  6 11:40:08 2021
Results reported at Mon Sep  6 11:40:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin1561 194.042 -5.7887 643939201 644198401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1256.1-0547 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   628.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             231.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            887 sec.

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

