/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 130 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1256.1-0547_daily_bin93
RA = 194.042, Dec = -5.7887
tmin = 263433601, tmax = 263692801
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='17690', job_status='RUN', time_executed='2021-09-06 10:48:02.607233', time_epoch_executed='1630950482.61' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17690

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17690/ft1_4FGL_J1256.1-0547_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17690/ft2_4FGL_J1256.1-0547_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17690/ft1_4FGL_J1256.1-0547_daily_bin93.fits outfile=/scratch/kocevski/17690/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin93.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=263433601.0 tmax=263692801.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.43
user 3.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17690/ft2_4FGL_J1256.1-0547_daily_bin93.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/17690/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/17690/ft1_filtered_4FGL_J1256.1-0547_daily_bin93.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17690/ft1_filtered_4FGL_J1256.1-0547_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/17690/ft2_4FGL_J1256.1-0547_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/17690/ltcube_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.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/17690/ft2_4FGL_J1256.1-0547_daily_bin93.fits
.....................!
real 11.92
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17690/ft1_filtered_4FGL_J1256.1-0547_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/17690/ft2_4FGL_J1256.1-0547_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/17690/ltcube_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.fits outfile=/scratch/kocevski/17690/expmap_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.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/17690/ltcube_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.fits
.....................!
real 190.05
user 185.15
sys 4.32

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/17690/ft1_filtered_4FGL_J1256.1-0547_daily_bin93.fits scfile=/scratch/kocevski/17690/ft2_4FGL_J1256.1-0547_daily_bin93.fits outfile=/scratch/kocevski/17690/cmap_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17690/ft1_filtered_4FGL_J1256.1-0547_daily_bin93.fits scfile=/scratch/kocevski/17690/ft2_4FGL_J1256.1-0547_daily_bin93.fits outfile=/scratch/kocevski/17690/cmap_HighResolution_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.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.59
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17690/ft1_filtered_4FGL_J1256.1-0547_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/17690/ft2_4FGL_J1256.1-0547_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17690/Model_4FGL_J1256.1-0547_daily_bin93.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/17690/ft1_filtered_4FGL_J1256.1-0547_daily_bin93.fits.....................!
real 62.52
user 60.82
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17690/ft1_filtered_4FGL_J1256.1-0547_daily_bin93.fits', '/scratch/kocevski/17690/ft2_4FGL_J1256.1-0547_daily_bin93.fits', expMap='/scratch/kocevski/17690/expmap_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.fits', expCube='/scratch/kocevski/17690/ltcube_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17690/Model_4FGL_J1256.1-0547_daily_bin93.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/17690/ft1_filtered_4FGL_J1256.1-0547_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/17690/ft2_4FGL_J1256.1-0547_daily_bin93.fits
Exposure map: /scratch/kocevski/17690/expmap_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.fits
Exposure cube: /scratch/kocevski/17690/ltcube_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17690/Model_4FGL_J1256.1-0547_daily_bin93.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) = 7757.1795801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8377       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3198       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .89185       1.0000         .10000E-03   10000.    
     4 'norm      '    8.0576       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7602       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4365       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0991       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32350       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.429       1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2664       1.0000         .10000E-03   10000.    
    14 'Prefactor '    116.72       1.0000         .10000E-03   10000.    
    15 'norm      '    .10380E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14186E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    73.085       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0124       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4225       1.0000         .10000E-03   10000.    
    23 'norm      '    .44234       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1828       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99966       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7757.049     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3045 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8374        14.376        .24692E-07   -.27451E-05
   2  norm          1.3195        1.8947       -.58251E-07   -.12567E-04
   3  Prefactor     .89198        .52301        .99802E-07   -.14247E-02
   4  norm          8.0575        1.1094       -.21150E-07    .20243E-03
   5  Prefactor     6.7609        2.4696        .18998E-08   -.13462E-04
   6  Prefactor     .10000E-03    2.0436        .28666E-07** at limit **
   7  Prefactor     9.4397        13.192       -.58180E-07    .13848E-04
   8  norm          1.0991        1.7579        .14505E-07   -.36574E-04
   9  Prefactor     .33453        28.921        .50998E-05   -.37958E-04
  10  Prefactor     1.6262        37.749       -.85993E-06   -.54770E-05
  11  Prefactor     61.409        48.391        .44521E-06    .12143E-04
  12  norm          .10000E-03    9.3359       -.17872E-06** at limit **
  13  norm          1.2663        .33335       -.86023E-08    .39563E-03
  14  Prefactor     116.75        67.122       -.14539E-05   -.74039E-06
  15  norm          .10000E-03    9.9610       -.10590E-05** at limit **
  16  norm          .10000E-03    5.4036        .53673E-06** at limit **
  17  Prefactor     .10000E-03    10.988       -.94825E-06** at limit **
  18  Prefactor     .10000E-03    4.3238       -.22526E-07** at limit **
  19  Prefactor     12.019        10.233       -.50374E-07    .86731E-04
  20  Prefactor     73.095        49.259        .19655E-05    .16928E-03
  21  norm          2.0123        1.4235       -.76077E-08    .46730E-04
  22  norm          2.4220        8.4641       -.26900E-05   -.90904E-04
  23  norm          .69505        25.670        .29454E-06   -.11303E-04
  24  Normalizat    1.1831        .26570        .83972E-06   -.23593E-04
  25  Prefactor     .99937        .16097       -.64763E-06    .22697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.83736
  norm       = 1.31948
  Prefactor  = 0.891979
  norm       = 8.05752
  Prefactor  = 6.76088
  Prefactor  = 0.0001
  Prefactor  = 9.43968
  norm       = 1.09914
  Prefactor  = 0.334531
  Prefactor  = 1.6262
  Prefactor  = 61.4088
  norm       = 0.0001
  norm       = 1.26633
  Prefactor  = 116.755
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0187
  Prefactor  = 73.0953
  norm       = 2.01225
  norm       = 2.42205
  norm       = 0.695053
  Normalizat = 1.1831
  Prefactor  = 0.999375
 **********
 **   18 **HESSE 
 **********

 FCN=   7757.049     FROM HESSE     STATUS=OK           445 CALLS     3490 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8374        14.219        .20601E-03   -1.5316    
   2  norm          1.3195        1.8481        .13448E-03   -1.5478    
   3  Prefactor     .89198        8.4315        .23041E-02   -1.5519    
   4  norm          8.0575        1.1075        .31838E-04   -1.5140    
   5  Prefactor     6.7609        2.5879        .81034E-04   -1.5188    
   6  Prefactor     .10000E-03    2.0442        .12296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4397        13.303        .13046E-03   -1.5093    
   8  norm          1.0991        1.7188        .14024E-03   -1.5498    
   9  Prefactor     .33453        29.043        .38401E-02   -1.5592    
  10  Prefactor     1.6262        37.944        .33163E-03   -1.5453    
  11  Prefactor     61.409        48.798        .51195E-04   -1.4139    
  12  norm          .10000E-03    9.3489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2663        .33595        .23292E-04   -1.5483    
  14  Prefactor     116.75        67.216        .18622E-03   -1.3543    
  15  norm          .10000E-03    10.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.018        .39025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3279        .17886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.019        10.223        .11556E-03   -1.5014    
  20  Prefactor     73.095        48.321        .46962E-04   -1.3996    
  21  norm          2.0123        1.4184        .84224E-04   -1.5424    
  22  norm          2.4220        8.4716        .26296E-03   -1.5397    
  23  norm          .69505        27.135        .15491       -1.5541    
  24  Normalizat    1.1831        .30131        .35262E-03   -.87127    
  25  Prefactor     .99937        .18346        .25134E-03   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83744e-08
Minuit parameter uncertainties:
  1  14.2315
  2  1.84814
  3  5.48549
  4  1.10751
  5  2.58791
  6  3.5126e-07
  7  13.3073
  8  1.71888
  9  6.2362
  10  15.7212
  11  48.83
  12  4.39572e-07
  13  0.33595
  14  67.2594
  15  6.16205e-05
  16  9.60041e-06
  17  1.96956e-05
  18  1.86347e-07
  19  10.2245
  20  48.347
  21  1.41842
  22  8.47574
  23  8.68931
  24  0.301755
  25  0.18357
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.266e+00  3.360e-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.994e-01  1.836e-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.183e+00  3.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.75
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 2.86e-07 +/- 7.59e-08
Energy Flux (Fixed Index): 1.08e-04 +/- 2.86e-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) = 7756.7466951
delta logL = 0.302225177852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7756.7073699
delta logL = 0.341550378112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2641       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4189       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0283       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=   7756.707     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2641        1.4367        .49624E-02    .34818E-03
   2  alpha         2.4189        1.1786        .19549        .20622E-04
   3  Normalizat    1.1165        .27072        .81547E-01    .19645E-04
   4  Prefactor     1.0283        .17843        .41395E-01    .78728E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26407
  alpha      = 2.41888
  Normalizat = 1.11649
  Prefactor  = 1.0283
 **********
 **   18 **HESSE 
 **********

 FCN=   7756.707     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2641        .30590        .21991E-04   -1.5483    
   2  alpha         2.4189        .27268        .82994E-02   -.32454E-01
   3  Normalizat    1.1165        .28590        .36102E-03   -.89224    
   4  Prefactor     1.0283        .18408        .24814E-03   -.91792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21783e-11
Minuit parameter uncertainties:
  1  0.305901
  2  0.273224
  3  0.286296
  4  0.184198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17690': 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) = 7756.7073699
delta logL = 0.341550379465

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.264e+00  3.059e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.419e+00  2.732e-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:  1.028e+00  1.842e-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.116e+00  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 41.56
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.42 +/- 0.27
Photon Flux (Free Index): 3.39e-07 +/- 9.90e-08
Energy Flux (Free Index): 1.00e-04 +/- 2.51e-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/17690/cmap_HighResolution_263433601_263692801_4FGL_J1256.1-0547_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.86e-07', energy_flux2='1.00e-04', photon_flux_error='7.59e-08', dlogl='3.42e-01', energy_flux='1.08e-04', photon_flux2='3.39e-07', job_status='DONE', time_completed='2021-09-06 11:00:54.665361', photon_index_error2='0.27', photon_index2='2.42', ts='40.75', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.51e-05', EG='1.18', time_epoch_completed='1630951254.67', return_code='0', job_id='17690', GAL2='1.03', EG2='1.12', return_code2='0', energy_flux_error='2.86e-05', photon_flux_error2='9.90e-08', ts2='41.56', photon_index='2.20' WHERE bin_id='93' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:00:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 17690: <4FGL_J1256.1-0547_daily_bin93> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin93> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 10:45:42 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 10:45:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 10:45:43 2021
Terminated at Mon Sep  6 11:00:55 2021
Results reported at Mon Sep  6 11:00:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin93 194.042 -5.7887 263433601 263692801 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 :                                   770.00 sec.
    Max Memory :                                 1214 MB
    Average Memory :                             271.93 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.

