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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin159
RA = 194.042, Dec = -5.7887
tmin = 280540801, tmax = 280800001
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='18948', job_status='RUN', time_executed='2021-09-06 10:53:06.675168', time_epoch_executed='1630950786.68' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18948

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18948/ft1_4FGL_J1256.1-0547_daily_bin159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18948/ft2_4FGL_J1256.1-0547_daily_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18948/ft1_4FGL_J1256.1-0547_daily_bin159.fits outfile=/scratch/kocevski/18948/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin159.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=280540801.0 tmax=280800001.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.55
user 3.26
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18948/ft2_4FGL_J1256.1-0547_daily_bin159.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/18948/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin159.fits evtable="EVENTS" outfile="/scratch/kocevski/18948/ft1_filtered_4FGL_J1256.1-0547_daily_bin159.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/18948/ft1_filtered_4FGL_J1256.1-0547_daily_bin159.fits" evtable="EVENTS" scfile=/scratch/kocevski/18948/ft2_4FGL_J1256.1-0547_daily_bin159.fits sctable="SC_DATA" outfile=/scratch/kocevski/18948/ltcube_280540801_280800001_4FGL_J1256.1-0547_daily_bin159.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/18948/ft2_4FGL_J1256.1-0547_daily_bin159.fits
.....................!
real 12.26
user 11.52
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18948/ft1_filtered_4FGL_J1256.1-0547_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/18948/ft2_4FGL_J1256.1-0547_daily_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/18948/ltcube_280540801_280800001_4FGL_J1256.1-0547_daily_bin159.fits outfile=/scratch/kocevski/18948/expmap_280540801_280800001_4FGL_J1256.1-0547_daily_bin159.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/18948/ltcube_280540801_280800001_4FGL_J1256.1-0547_daily_bin159.fits
.....................!
real 190.83
user 185.13
sys 5.08

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/18948/ft1_filtered_4FGL_J1256.1-0547_daily_bin159.fits scfile=/scratch/kocevski/18948/ft2_4FGL_J1256.1-0547_daily_bin159.fits outfile=/scratch/kocevski/18948/cmap_280540801_280800001_4FGL_J1256.1-0547_daily_bin159.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18948/ft1_filtered_4FGL_J1256.1-0547_daily_bin159.fits scfile=/scratch/kocevski/18948/ft2_4FGL_J1256.1-0547_daily_bin159.fits outfile=/scratch/kocevski/18948/cmap_HighResolution_280540801_280800001_4FGL_J1256.1-0547_daily_bin159.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/18948/ft1_filtered_4FGL_J1256.1-0547_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/18948/ft2_4FGL_J1256.1-0547_daily_bin159.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/18948/Model_4FGL_J1256.1-0547_daily_bin159.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/18948/ft1_filtered_4FGL_J1256.1-0547_daily_bin159.fits.....................!
real 61.52
user 60.03
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.992       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0648       1.0000         .10000E-03   10000.    
     4 'norm      '    13.877       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9198       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9920       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .79967E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    9.4374       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.604       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    86.166       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8391       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.980       1.0000         .10000E-03   10000.    
    15 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4155       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6085       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0899       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .32894E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.7529       1.0000         .10000E-03   10000.    
    22 'norm      '    4.3746       1.0000         .10000E-03   10000.    
    23 'norm      '    104.14       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92106       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0074       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=   7616.677     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2935 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.986        13.330       -.12584E-06    .16843E-04
   2  norm          .10000E-03    1.5015       -.59697E-07** at limit **
   3  Prefactor     7.0608        7.9563       -.15188E-06    .27155E-03
   4  norm          13.877        1.4548       -.18605E-07    .25004E-03
   5  Prefactor     3.9197        2.4855       -.17458E-07    .31836E-03
   6  Prefactor     1.9939        6.9942       -.58808E-06    .37068E-05
   7  Prefactor     .10005E-03    10.419       -.33840E-05** at limit **
   8  norm          9.4378        2.9379       -.49526E-07    .23513E-04
   9  Prefactor     12.603        10.404       -.64898E-07    .59590E-04
  10  Prefactor     .10000E-03    12.422        .47130E-07** at limit **
  11  Prefactor     86.111        69.786       -.17279E-05    .88198E-04
  12  norm          .10000E-03    7.2885        .16210E-07** at limit **
  13  norm          1.8395        .39670       -.54400E-07   -.26827E-02
  14  Prefactor     34.968        49.442       -.80098E-06    .21124E-04
  15  norm          .10000E-03    5.1211       -.11040E-07** at limit **
  16  norm          5.4180        11.673        .35551E-07    .99284E-04
  17  Prefactor     2.6161        14.120       -.50212E-05    .18403E-03
  18  Prefactor     7.0736        18.367       -.68410E-06    .18240E-04
  19  Prefactor     .10000E-03    25.862       -.10263E-04** at limit **
  20  Prefactor     .10000E-03    31.200       -.42668E-06** at limit **
  21  norm          5.7532        2.1489       -.33852E-07    .53384E-03
  22  norm          4.3768        3.9867        .99751E-07    .17054E-03
  23  norm          104.14        59.240        .28824E-08    .70947E-05
  24  Normalizat    .92097        .26669        .13670E-05    .47042E-03
  25  Prefactor     1.0073        .16500        .10968E-05    .75613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9861
  norm       = 0.0001
  Prefactor  = 7.06082
  norm       = 13.8771
  Prefactor  = 3.91965
  Prefactor  = 1.99394
  Prefactor  = 0.000100049
  norm       = 9.43778
  Prefactor  = 12.603
  Prefactor  = 0.0001
  Prefactor  = 86.111
  norm       = 0.0001
  norm       = 1.83951
  Prefactor  = 34.9683
  norm       = 0.0001
  norm       = 5.41798
  Prefactor  = 2.61613
  Prefactor  = 7.07358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.75325
  norm       = 4.37681
  norm       = 104.139
  Normalizat = 0.920974
  Prefactor  = 1.0073
 **********
 **   18 **HESSE 
 **********

 FCN=   7616.677     FROM HESSE     STATUS=OK           437 CALLS     3372 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.986        13.266        .97161E-04   -1.4883    
   2  norm          .10000E-03    1.5305        .20790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0608        7.8901        .15093E-03   -1.5176    
   4  norm          13.877        1.4579        .31868E-04   -1.4963    
   5  Prefactor     3.9197        2.4882        .98789E-04   -1.5312    
   6  Prefactor     1.9939        6.9616        .29353E-03   -1.5426    
   7  Prefactor     .10005E-03    70.240        .48772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.4378        2.9379        .80161E-04   -1.5093    
   9  Prefactor     12.603        10.389        .11283E-03   -1.4998    
  10  Prefactor     .10000E-03    12.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     86.111        69.667        .21640E-03   -1.3849    
  12  norm          .10000E-03    7.2892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8395        .40195        .22426E-04   -1.5437    
  14  Prefactor     34.968        49.430        .67757E-04   -1.4525    
  15  norm          .10000E-03    5.1385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4180        11.638        .17268E-03   -1.5242    
  17  Prefactor     2.6161        14.182        .12629E-02   -1.5384    
  18  Prefactor     7.0736        18.369        .15066E-03   -1.5176    
  19  Prefactor     .10000E-03    25.994        .41961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.7532        2.1473        .74095E-04   -1.5228    
  22  norm          4.3768        3.9659        .15793E-03   -1.5290    
  23  norm          104.14        59.224        .19702E-03   -1.3663    
  24  Normalizat    .92097        .30582        .41063E-03   -.95727    
  25  Prefactor     1.0073        .19277        .25689E-03   -.92487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47615e-09
Minuit parameter uncertainties:
  1  13.2679
  2  4.38694e-06
  3  7.8913
  4  1.45795
  5  2.48826
  6  6.96441
  7  0.00371139
  8  2.93797
  9  10.3902
  10  7.70717e-06
  11  69.7332
  12  2.27878e-06
  13  0.401947
  14  49.4884
  15  4.5488e-06
  16  11.6424
  17  12.1863
  18  18.3835
  19  2.87528e-05
  20  0.000166891
  21  2.14734
  22  3.96609
  23  59.2577
  24  0.3064
  25  0.1929
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.840e+00  4.019e-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:  1.007e+00  1.929e-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:  9.210e-01  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 74.86
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 4.16e-07 +/- 9.08e-08
Energy Flux (Fixed Index): 1.57e-04 +/- 3.42e-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) = 7616.63666662
delta logL = 0.0400362313367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7616.63435981
delta logL = 0.0423430350384

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8411       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2570       1.0000          .0000       5.0000    
     3 'Normalizat'    .90067       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0157       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=   7616.634     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8411        .41317        .50133E-02   -.19624E-02
   2  alpha         2.2570        .23035        .15550       -.17049E-04
   3  Normalizat    .90065        .25559        .93568E-01    .19811E-04
   4  Prefactor     1.0157        .16401        .42596E-01    .14454E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.84114
  alpha      = 2.25699
  Normalizat = 0.900653
  Prefactor  = 1.01572
 **********
 **   18 **HESSE 
 **********

 FCN=   7616.634     FROM HESSE     STATUS=OK            29 CALLS      224 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8411        .36505        .22176E-04   -1.5437    
   2  alpha         2.2570        .20831        .67218E-03   -.97357E-01
   3  Normalizat    .90065        .29828        .41452E-03   -.96437    
   4  Prefactor     1.0157        .19047        .25590E-03   -.92207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16816e-11
Minuit parameter uncertainties:
  1  0.365051
  2  0.208552
  3  0.298827
  4  0.190597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18948': 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) = 7616.63435981
delta logL = 0.0423430377514

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.841e+00  3.651e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.257e+00  2.086e-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.016e+00  1.906e-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:  9.007e-01  2.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 74.29
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.26 +/- 0.21
Photon Flux (Free Index): 4.35e-07 +/- 1.08e-07
Energy Flux (Free Index): 1.52e-04 +/- 3.34e-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/18948/cmap_HighResolution_280540801_280800001_4FGL_J1256.1-0547_daily_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.16e-07', energy_flux2='1.52e-04', photon_flux_error='9.08e-08', dlogl='4.23e-02', energy_flux='1.57e-04', photon_flux2='4.35e-07', job_status='DONE', time_completed='2021-09-06 11:05:39.972472', photon_index_error2='0.21', photon_index2='2.26', ts='74.86', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.34e-05', EG='0.92', time_epoch_completed='1630951539.97', return_code='0', job_id='18948', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='3.42e-05', photon_flux_error2='1.08e-07', ts2='74.29', photon_index='2.20' WHERE bin_id='159' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:05:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 18948: <4FGL_J1256.1-0547_daily_bin159> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin159> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 10:50:18 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 10:50:20 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:50:20 2021
Terminated at Mon Sep  6 11:05:40 2021
Results reported at Mon Sep  6 11:05:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin159 194.042 -5.7887 280540801 280800001 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 :                                   750.43 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

