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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin1003
RA = 194.042, Dec = -5.7887
tmin = 499305601, tmax = 499564801
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='26982', job_status='RUN', time_executed='2021-09-06 11:14:30.017220', time_epoch_executed='1630952070.02' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/26982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/26982/ft1_4FGL_J1256.1-0547_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/26982/ft2_4FGL_J1256.1-0547_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/26982/ft1_4FGL_J1256.1-0547_daily_bin1003.fits outfile=/scratch/kocevski/26982/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin1003.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=499305601.0 tmax=499564801.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 5.51
user 5.15
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/26982/ft2_4FGL_J1256.1-0547_daily_bin1003.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/26982/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/26982/ft1_filtered_4FGL_J1256.1-0547_daily_bin1003.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.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/26982/ft1_filtered_4FGL_J1256.1-0547_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/26982/ft2_4FGL_J1256.1-0547_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/26982/ltcube_499305601_499564801_4FGL_J1256.1-0547_daily_bin1003.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/26982/ft2_4FGL_J1256.1-0547_daily_bin1003.fits
.....................!
real 11.93
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/26982/ft1_filtered_4FGL_J1256.1-0547_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/26982/ft2_4FGL_J1256.1-0547_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/26982/ltcube_499305601_499564801_4FGL_J1256.1-0547_daily_bin1003.fits outfile=/scratch/kocevski/26982/expmap_499305601_499564801_4FGL_J1256.1-0547_daily_bin1003.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/26982/ltcube_499305601_499564801_4FGL_J1256.1-0547_daily_bin1003.fits
.....................!
real 190.90
user 186.62
sys 3.90

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/26982/ft1_filtered_4FGL_J1256.1-0547_daily_bin1003.fits scfile=/scratch/kocevski/26982/ft2_4FGL_J1256.1-0547_daily_bin1003.fits outfile=/scratch/kocevski/26982/cmap_499305601_499564801_4FGL_J1256.1-0547_daily_bin1003.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.63
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/26982/ft1_filtered_4FGL_J1256.1-0547_daily_bin1003.fits scfile=/scratch/kocevski/26982/ft2_4FGL_J1256.1-0547_daily_bin1003.fits outfile=/scratch/kocevski/26982/cmap_HighResolution_499305601_499564801_4FGL_J1256.1-0547_daily_bin1003.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.57
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/26982/ft1_filtered_4FGL_J1256.1-0547_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/26982/ft2_4FGL_J1256.1-0547_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/26982/Model_4FGL_J1256.1-0547_daily_bin1003.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/26982/ft1_filtered_4FGL_J1256.1-0547_daily_bin1003.fits.....................!
real 58.37
user 56.14
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8229       1.0000         .10000E-03   10000.    
     4 'norm      '    .96445       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7324       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1804       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.196       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.530       1.0000         .10000E-03   10000.    
    12 'norm      '    28.087       1.0000         .10000E-03   10000.    
    13 'norm      '    .51754       1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.807       1.0000         .10000E-03   10000.    
    15 'norm      '    .12820E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.959       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .17284       1.0000         .10000E-03   10000.    
    22 'norm      '    9.3003       1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.0272       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61738       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=   6765.440     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2929 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6548        .14432E-05** at limit **
   2  norm          .10000E-03    .85569       -.49324E-07** at limit **
   3  Prefactor     3.8229        4.9004       -.77154E-06   -.38945E-03
   4  norm          .96444        .56540       -.69851E-07    .16022E-04
   5  Prefactor     4.7324        2.1580       -.66586E-07    .76663E-04
   6  Prefactor     .10000E-03    6.5267        .14803E-05** at limit **
   7  Prefactor     .10000E-03    4.6521        .29327E-06** at limit **
   8  norm          4.1803        2.1264        .30104E-07    .88177E-04
   9  Prefactor     .10000E-03    3.9028       -.21872E-05** at limit **
  10  Prefactor     27.185        41.121       -.16775E-04    .20648E-04
  11  Prefactor     15.527        27.444       -.48372E-05    .18622E-04
  12  norm          28.086        32.172        .78039E-07    .32771E-04
  13  norm          .51746        .23642        .35852E-06    .22091E-02
  14  Prefactor     84.751        79.395       -.57912E-04   -.45860E-04
  15  norm          .10001E-03    10.305        .79266E-05** at limit **
  16  norm          .10000E-03    3.2382       -.15263E-05** at limit **
  17  Prefactor     .10000E-03    3.3281        .16017E-05** at limit **
  18  Prefactor     27.953        22.495       -.47065E-05    .20250E-04
  19  Prefactor     .10000E-03    10.055        .11630E-05** at limit **
  20  Prefactor     .10000E-03    9.4857       -.88759E-05** at limit **
  21  norm          .17098        .83574       -.17964E-06   -.85139E-03
  22  norm          9.2995        4.4410       -.27165E-06    .29110E-03
  23  norm          .10000E-03    33.027       -.71421E-06** at limit **
  24  Normalizat    2.0273        .24938        .72691E-05   -.33149E-03
  25  Prefactor     .61732        .15505       -.91020E-06    .30168E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.82286
  norm       = 0.964436
  Prefactor  = 4.73244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.18032
  Prefactor  = 0.0001
  Prefactor  = 27.185
  Prefactor  = 15.5272
  norm       = 28.0864
  norm       = 0.517456
  Prefactor  = 84.7511
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.170981
  norm       = 9.29955
  norm       = 0.0001
  Normalizat = 2.02731
  Prefactor  = 0.617316
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.440     FROM HESSE     STATUS=OK           429 CALLS     3358 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6578        .15355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .86161        .74295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8229        4.8923        .19659E-03   -1.5317    
   4  norm          .96444        .55698        .45129E-04   -1.5512    
   5  Prefactor     4.7324        2.1583        .78212E-04   -1.5273    
   6  Prefactor     .10000E-03    6.6327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6834        .17321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1803        2.1239        .82269E-04   -1.5299    
   9  Prefactor     .10000E-03    3.9262        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.185        41.113        .76820E-04   -1.4665    
  11  Prefactor     15.527        27.456        .10163E-03   -1.4920    
  12  norm          28.086        32.208        .75594E-04   -1.4648    
  13  norm          .51746        .23495        .25166E-04   -1.5564    
  14  Prefactor     84.751        79.550        .21811E-03   -1.3864    
  15  norm          .10001E-03    10.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.2395        .14455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3361        .14651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.953        22.536        .75767E-04   -1.4650    
  19  Prefactor     .10000E-03    10.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.5012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .17098        3.0340        .14134E-02   -1.5625    
  22  norm          9.2995        4.4419        .11590E-03   -1.5098    
  23  norm          .10000E-03    33.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    2.0273        .29510        .26786E-03   -.63868    
  25  Prefactor     .61732        .18334        .29353E-03   -1.0686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32855e-09
Minuit parameter uncertainties:
  1  8.61925e-06
  2  4.42178e-06
  3  4.89282
  4  0.556986
  5  2.1583
  6  2.65163e-05
  7  2.92981e-05
  8  2.12393
  9  1.62332e-05
  10  41.156
  11  27.478
  12  32.2283
  13  0.234954
  14  79.6503
  15  0.000485131
  16  1.59468e-06
  17  1.20532e-05
  18  22.5426
  19  8.02574e-05
  20  1.84417e-05
  21  1.44016
  22  4.44202
  23  4.00555e-05
  24  0.295372
  25  0.183515
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  5.175e-01  2.350e-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:  6.173e-01  1.835e-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:  2.027e+00  2.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.75
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.17e-07 +/- 5.31e-08
Energy Flux (Fixed Index): 4.40e-05 +/- 2.00e-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) = 6765.43227074
delta logL = 0.00767844089387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6765.43173085
delta logL = 0.00821832542988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .52095       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2578       1.0000          .0000       5.0000    
     3 'Normalizat'    2.0190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62094       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=   6765.432     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52097        4.9400        .55927E-02    .48745E-03
   2  alpha         2.2578        3.2011        .33884       -.22780E-05
   3  Normalizat    2.0190        .21271        .60667E-01   -.59386E-05
   4  Prefactor     .62095        .15083        .66153E-01    .30030E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.52097
  alpha      = 2.25775
  Normalizat = 2.01896
  Prefactor  = 0.620955
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.432     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52097        .22717        .24888E-04   -1.5564    
   2  alpha         2.2578        .47617        .12991E-01   -.97051E-01
   3  Normalizat    2.0190        .28488        .26824E-03   -.64076    
   4  Prefactor     .62095        .18284        .29273E-03   -1.0671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02456e-12
Minuit parameter uncertainties:
  1  0.227168
  2  0.479126
  3  0.285119
  4  0.183016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/26982': 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) = 6765.43173084
delta logL = 0.00821833724422

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  5.210e-01  2.272e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.258e+00  4.791e-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:  6.210e-01  1.830e-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:  2.019e+00  2.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.77
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.26 +/- 0.48
Photon Flux (Free Index): 1.23e-07 +/- 7.05e-08
Energy Flux (Free Index): 4.30e-05 +/- 2.04e-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/26982/cmap_HighResolution_499305601_499564801_4FGL_J1256.1-0547_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.17e-07', energy_flux2='4.30e-05', photon_flux_error='5.31e-08', dlogl='8.22e-03', energy_flux='4.40e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-06 11:26:28.960775', photon_index_error2='0.48', photon_index2='2.26', ts='11.75', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='2.03', time_epoch_completed='1630952788.96', return_code='0', job_id='26982', GAL2='0.62', EG2='2.02', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='7.05e-08', ts2='11.77', photon_index='2.20' WHERE bin_id='1003' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:26:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 26982: <4FGL_J1256.1-0547_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin1003> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 11:10:36 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:10:37 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:10:37 2021
Terminated at Mon Sep  6 11:26:29 2021
Results reported at Mon Sep  6 11:26:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin1003 194.042 -5.7887 499305601 499564801 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 :                                   707.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             255.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

