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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin210
RA = 194.042, Dec = -5.7887
tmin = 293760001, tmax = 294019201
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='19027', job_status='RUN', time_executed='2021-09-06 10:50:45.459220', time_epoch_executed='1630950645.46' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='210'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19027/ft1_4FGL_J1256.1-0547_daily_bin210.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19027/ft2_4FGL_J1256.1-0547_daily_bin210.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19027/ft1_4FGL_J1256.1-0547_daily_bin210.fits outfile=/scratch/kocevski/19027/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin210.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=293760001.0 tmax=294019201.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.52
user 3.28
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19027/ft2_4FGL_J1256.1-0547_daily_bin210.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/19027/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin210.fits evtable="EVENTS" outfile="/scratch/kocevski/19027/ft1_filtered_4FGL_J1256.1-0547_daily_bin210.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.72
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19027/ft1_filtered_4FGL_J1256.1-0547_daily_bin210.fits" evtable="EVENTS" scfile=/scratch/kocevski/19027/ft2_4FGL_J1256.1-0547_daily_bin210.fits sctable="SC_DATA" outfile=/scratch/kocevski/19027/ltcube_293760001_294019201_4FGL_J1256.1-0547_daily_bin210.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/19027/ft2_4FGL_J1256.1-0547_daily_bin210.fits
.....................!
real 11.83
user 11.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19027/ft1_filtered_4FGL_J1256.1-0547_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/19027/ft2_4FGL_J1256.1-0547_daily_bin210.fits sctable="SC_DATA" expcube=/scratch/kocevski/19027/ltcube_293760001_294019201_4FGL_J1256.1-0547_daily_bin210.fits outfile=/scratch/kocevski/19027/expmap_293760001_294019201_4FGL_J1256.1-0547_daily_bin210.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/19027/ltcube_293760001_294019201_4FGL_J1256.1-0547_daily_bin210.fits
.....................!
real 192.30
user 186.83
sys 5.04

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/19027/ft1_filtered_4FGL_J1256.1-0547_daily_bin210.fits scfile=/scratch/kocevski/19027/ft2_4FGL_J1256.1-0547_daily_bin210.fits outfile=/scratch/kocevski/19027/cmap_293760001_294019201_4FGL_J1256.1-0547_daily_bin210.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19027/ft1_filtered_4FGL_J1256.1-0547_daily_bin210.fits scfile=/scratch/kocevski/19027/ft2_4FGL_J1256.1-0547_daily_bin210.fits outfile=/scratch/kocevski/19027/cmap_HighResolution_293760001_294019201_4FGL_J1256.1-0547_daily_bin210.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19027/ft1_filtered_4FGL_J1256.1-0547_daily_bin210.fits evtable="EVENTS" scfile=/scratch/kocevski/19027/ft2_4FGL_J1256.1-0547_daily_bin210.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19027/Model_4FGL_J1256.1-0547_daily_bin210.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/19027/ft1_filtered_4FGL_J1256.1-0547_daily_bin210.fits.....................!
real 66.87
user 65.52
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8524       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.053       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8183       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.3265       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1086       1.0000         .10000E-03   10000.    
     8 'norm      '    .64650       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.243       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48162E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10669E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20458       1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.985       1.0000         .10000E-03   10000.    
    15 'norm      '    4.2644       1.0000         .10000E-03   10000.    
    16 'norm      '    11.395       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.730       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.637       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3366       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7992       1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.0505       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .58372       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8476.695     FROM MIGRAD    STATUS=CONVERGED   1004 CALLS     3345 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8487        11.129        .14309E-03    .23835E-05
   2  norm          .10000E-03    .98455        .88512E-03** at limit **
   3  Prefactor     13.050        7.1039        .11087E-03    .24610E-04
   4  norm          1.8185        .65962        .42064E-04    .64487E-03
   5  Prefactor     6.3265        2.2632        .77779E-04    .23971E-04
   6  Prefactor     .10000E-03    2.3404        .13743E-02** at limit **
   7  Prefactor     6.1136        12.684        .16244E-03   -.93782E-05
   8  norm          .64632        1.1822        .13917E-02    .67152E-02
   9  Prefactor     .10000E-03    2.0203        .12768E-02** at limit **
  10  Prefactor     17.239        17.220        .96453E-04    .41961E-04
  11  Prefactor     .10000E-03    44.720        .15130    ** at limit **
  12  norm          .10000E-03    10.264        .18142E-02** at limit **
  13  norm          .20430        .24306        .42242E-03    .12512E-01
  14  Prefactor     64.971        65.897        .49783E-04    .27495E-04
  15  norm          4.2672        9.5656        .19511E-03    .11654E-04
  16  norm          11.395        9.1842        .11868E-03    .72804E-05
  17  Prefactor     15.730        9.5966        .10098E-03    .13960E-04
  18  Prefactor     .10000E-03    5.9235        .18142E-02** at limit **
  19  Prefactor     29.640        10.982        .73595E-04   -.61791E-06
  20  Prefactor     .10000E-03    10.137        .18142E-02** at limit **
  21  norm          3.3365        1.5324        .74351E-04    .47706E-04
  22  norm          .10000E-03    .85482        .83041E-03** at limit **
  23  norm          2.7970        27.654        .24316E-03    .76676E-05
  24  Normalizat    2.0504        .27439        .27665E-03   -.50710E-04
  25  Prefactor     .58381        .16437        .30656E-03    .51326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.84871
  norm       = 0.0001
  Prefactor  = 13.0503
  norm       = 1.81845
  Prefactor  = 6.32655
  Prefactor  = 0.0001
  Prefactor  = 6.11356
  norm       = 0.646316
  Prefactor  = 0.0001
  Prefactor  = 17.2387
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.204296
  Prefactor  = 64.9705
  norm       = 4.26715
  norm       = 11.3949
  Prefactor  = 15.7296
  Prefactor  = 0.0001
  Prefactor  = 29.64
  Prefactor  = 0.0001
  norm       = 3.33648
  norm       = 0.0001
  norm       = 2.79699
  Normalizat = 2.05037
  Prefactor  = 0.583812
 **********
 **   18 **HESSE 
 **********

 FCN=   8476.695     FROM HESSE     STATUS=OK           415 CALLS     3760 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8487        11.128        .57237E-05   -1.5148    
   2  norm          .10000E-03    .98466        .17702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.050        7.1037        .44348E-05   -1.4985    
   4  norm          1.8185        .65950        .16826E-05   -1.5438    
   5  Prefactor     6.3265        2.2633        .31112E-05   -1.5205    
   6  Prefactor     .10000E-03    2.3405        .27485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1136        12.682        .64976E-05   -1.5213    
   8  norm          .64632        1.1810        .27834E-03   -1.5547    
   9  Prefactor     .10000E-03    2.0204        .25536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.239        17.218        .38581E-05   -1.4877    
  11  Prefactor     .10000E-03    44.566        .15136       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .20430        .24236        .84485E-04   -1.5618    
  14  Prefactor     64.971        65.866        .99566E-05   -1.4094    
  15  norm          4.2672        9.5637        .78043E-05   -1.5295    
  16  norm          11.395        9.1839        .47471E-05   -1.5033    
  17  Prefactor     15.730        9.5965        .40394E-05   -1.4915    
  18  Prefactor     .10000E-03    5.9240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.640        10.981        .29438E-05   -1.4619    
  20  Prefactor     .10000E-03    10.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3365        1.5323        .29740E-05   -1.5343    
  22  norm          .10000E-03    .85483        .16608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7970        27.655        .97264E-05   -1.5373    
  24  Normalizat    2.0504        .27450        .11066E-04   -.63294    
  25  Prefactor     .58381        .16449        .12262E-04   -1.0827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05634e-10
Minuit parameter uncertainties:
  1  11.1311
  2  3.84135e-07
  3  7.10418
  4  0.659498
  5  2.26329
  6  5.9127e-08
  7  12.688
  8  1.18107
  9  2.32422e-07
  10  17.2233
  11  0.000223215
  12  3.77076e-06
  13  0.242364
  14  65.9401
  15  9.56716
  16  9.18505
  17  9.59741
  18  7.76595e-07
  19  10.9822
  20  5.51295e-06
  21  1.53234
  22  8.07016e-09
  23  17.6001
  24  0.274713
  25  0.16463
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  2.043e-01  2.424e-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:  5.838e-01  1.646e-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.050e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 2.06e-05

TS (Fixed Index): 1.12
Ra Dec: 194.042 -5.789
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19027/likelihoodResults_293760001_294019201_4FGL_J1256.1-0547_daily_bin210.txt

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) = 8474.14032335
delta logL = 2.55417958131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8474.10543843
delta logL = 2.58906449927

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98505E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2023       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66261       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=   8474.105     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98451E-01    .65117        .28581E-02    .36609E-02
   2  alpha         4.2033        4.5993        .39692       -.14786E-05
   3  Normalizat    1.8749        .78317E-01    .64574E-01   -.22927E-04
   4  Prefactor     .66281        .50862E-01    .65366E-01    .36938E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0984513
  alpha      = 4.20328
  Normalizat = 1.87494
  Prefactor  = 0.662805
 **********
 **   18 **HESSE 
 **********

 FCN=   8474.105     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98451E-01    .25955        .12832E-04   -1.5645    
   2  alpha         4.2033        3.8273        .18970E-01    .74955    
   3  Normalizat    1.8749        .26525        .28557E-03   -.67723    
   4  Prefactor     .66281        .16673        .28921E-03   -1.0500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65791e-09
Minuit parameter uncertainties:
  1  0.259554
  2  2.08606
  3  0.265456
  4  0.166859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19027': 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) = 8474.10543676
delta logL = 2.58906617609

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  9.845e-02  2.596e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  4.203e+00  2.086e+00  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.628e-01  1.669e-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.875e+00  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.73
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 4.20 +/- 2.09
Photon Flux (Free Index): 1.77e-07 +/- 8.47e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.57e-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/19027/cmap_HighResolution_293760001_294019201_4FGL_J1256.1-0547_daily_bin210.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-05', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='2.61e-05', photon_flux_error='5.47e-08', dlogl='2.59e+00', energy_flux='1.74e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-06 11:07:01.510570', photon_index_error2='2.09', photon_index2='4.20', ts='1.12', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.57e-05', EG='2.05', time_epoch_completed='1630951621.51', return_code='0', job_id='19027', GAL2='0.66', EG2='1.87', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='8.47e-08', ts2='6.73', photon_index='2.20' WHERE bin_id='210' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:07:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 19027: <4FGL_J1256.1-0547_daily_bin210> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin210 194.042 -5.7887 293760001 294019201 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 :                                   970.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

