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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin532
RA = 194.042, Dec = -5.7887
tmin = 377222401, tmax = 377481601
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='20920', job_status='RUN', time_executed='2021-09-06 10:56:13.147107', time_epoch_executed='1630950973.15' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20920/ft1_4FGL_J1256.1-0547_daily_bin532.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20920/ft2_4FGL_J1256.1-0547_daily_bin532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20920/ft1_4FGL_J1256.1-0547_daily_bin532.fits outfile=/scratch/kocevski/20920/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin532.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=377222401.0 tmax=377481601.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.20
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20920/ft1_filtered_4FGL_J1256.1-0547_daily_bin532.fits" evtable="EVENTS" scfile=/scratch/kocevski/20920/ft2_4FGL_J1256.1-0547_daily_bin532.fits sctable="SC_DATA" outfile=/scratch/kocevski/20920/ltcube_377222401_377481601_4FGL_J1256.1-0547_daily_bin532.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/20920/ft2_4FGL_J1256.1-0547_daily_bin532.fits
.....................!
real 11.87
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20920/ft1_filtered_4FGL_J1256.1-0547_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/20920/ft2_4FGL_J1256.1-0547_daily_bin532.fits sctable="SC_DATA" expcube=/scratch/kocevski/20920/ltcube_377222401_377481601_4FGL_J1256.1-0547_daily_bin532.fits outfile=/scratch/kocevski/20920/expmap_377222401_377481601_4FGL_J1256.1-0547_daily_bin532.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/20920/ltcube_377222401_377481601_4FGL_J1256.1-0547_daily_bin532.fits
.....................!
real 191.16
user 185.39
sys 5.38

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/20920/ft1_filtered_4FGL_J1256.1-0547_daily_bin532.fits scfile=/scratch/kocevski/20920/ft2_4FGL_J1256.1-0547_daily_bin532.fits outfile=/scratch/kocevski/20920/cmap_377222401_377481601_4FGL_J1256.1-0547_daily_bin532.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20920/ft1_filtered_4FGL_J1256.1-0547_daily_bin532.fits scfile=/scratch/kocevski/20920/ft2_4FGL_J1256.1-0547_daily_bin532.fits outfile=/scratch/kocevski/20920/cmap_HighResolution_377222401_377481601_4FGL_J1256.1-0547_daily_bin532.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/20920/ft1_filtered_4FGL_J1256.1-0547_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/20920/ft2_4FGL_J1256.1-0547_daily_bin532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/20920/Model_4FGL_J1256.1-0547_daily_bin532.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/20920/ft1_filtered_4FGL_J1256.1-0547_daily_bin532.fits.....................!
real 72.13
user 70.66
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8202       1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2800       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3153       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.545       1.0000         .10000E-03   10000.    
     8 'norm      '    40.344       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .53837       1.0000         .10000E-03   10000.    
    14 'Prefactor '    94.451       1.0000         .10000E-03   10000.    
    15 'norm      '    34.941       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.803       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2279       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1558       1.0000         .10000E-03   10000.    
    21 'norm      '    .32116       1.0000         .10000E-03   10000.    
    22 'norm      '    4.0884       1.0000         .10000E-03   10000.    
    23 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0656       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0445       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=   8952.326     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2907 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8234        8.8740       -.23014E-07   -.50485E-04
   2  norm          .10000E-03    1.0516       -.21022E-07** at limit **
   3  Prefactor     9.2793        6.9638        .20856E-06    .41787E-04
   4  norm          3.3476        .76622       -.27897E-07   -.31904E-03
   5  Prefactor     9.0134        2.7666        .37847E-08   -.81008E-05
   6  Prefactor     5.3140        7.3403        .24285E-05   -.49744E-03
   7  Prefactor     11.546        9.8371       -.98219E-07   -.13201E-03
   8  norm          40.345        4.3019       -.18659E-07   -.25667E-03
   9  Prefactor     .50481        5.5417        .39302E-05   -.39501E-03
  10  Prefactor     .10000E-03    8.2952        .29542E-07** at limit **
  11  Prefactor     .10000E-03    16.247       -.45421E-06** at limit **
  12  norm          .10000E-03    4.7907       -.36279E-07** at limit **
  13  norm          .53838        .20427       -.21007E-07   -.57939E-03
  14  Prefactor     94.487        70.355        .37155E-05    .26233E-03
  15  norm          34.939        14.702       -.56508E-06   -.24659E-03
  16  norm          .10000E-03    5.9519       -.79150E-06** at limit **
  17  Prefactor     20.809        13.671        .12449E-05    .38288E-03
  18  Prefactor     .10000E-03    5.9003        .71848E-06** at limit **
  19  Prefactor     9.2386        10.605       -.15426E-05   -.59417E-03
  20  Prefactor     8.0874        46.318       -.25082E-05   -.42517E-04
  21  norm          .32147        1.1244        .93423E-06   -.22518E-03
  22  norm          4.0856        6.7176        .68658E-06   -.74837E-04
  23  norm          .10000E-03    14.587        .38849E-06** at limit **
  24  Normalizat    1.0653        .23446       -.21887E-06   -.15426E-03
  25  Prefactor     1.0447        .14778       -.84952E-06   -.11598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.82335
  norm       = 0.0001
  Prefactor  = 9.27925
  norm       = 3.34763
  Prefactor  = 9.01336
  Prefactor  = 5.31405
  Prefactor  = 11.5458
  norm       = 40.345
  Prefactor  = 0.50481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.538377
  Prefactor  = 94.4873
  norm       = 34.9388
  norm       = 0.0001
  Prefactor  = 20.8085
  Prefactor  = 0.0001
  Prefactor  = 9.23857
  Prefactor  = 8.08736
  norm       = 0.321472
  norm       = 4.08559
  norm       = 0.0001
  Normalizat = 1.0653
  Prefactor  = 1.04466
 **********
 **   18 **HESSE 
 **********

 FCN=   8952.326     FROM HESSE     STATUS=OK           433 CALLS     3340 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8234        8.8096        .13496E-03   -1.5114    
   2  norm          .10000E-03    1.0740        .18814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2793        6.9634        .13156E-03   -1.5099    
   4  norm          3.3476        .76747        .37333E-04   -1.5342    
   5  Prefactor     9.0134        2.7695        .81641E-04   -1.5107    
   6  Prefactor     5.3140        7.3908        .87163E-03   -1.5247    
   7  Prefactor     11.546        9.8543        .11790E-03   -1.5028    
   8  norm          40.345        4.3056        .61516E-04   -1.4437    
   9  Prefactor     .50481        5.6933        .43361E-03   -1.5566    
  10  Prefactor     .10000E-03    8.3001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.7913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .53838        .20421        .24860E-04   -1.5561    
  14  Prefactor     94.487        72.469        .41355E-04   -1.3761    
  15  norm          34.939        14.793        .67795E-04   -1.4525    
  16  norm          .10000E-03    5.9791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.809        13.880        .87815E-04   -1.4795    
  18  Prefactor     .10000E-03    5.9403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2386        10.924        .13193E-03   -1.5100    
  20  Prefactor     8.0874        46.858        .14039E-03   -1.5139    
  21  norm          .32147        1.1245        .17816E-03   -1.5595    
  22  norm          4.0856        6.7535        .18341E-03   -1.5304    
  23  norm          .10000E-03    14.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0653        .27349        .36767E-03   -.90874    
  25  Prefactor     1.0447        .17221        .24933E-03   -.91255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84647e-09
Minuit parameter uncertainties:
  1  8.81086
  2  8.64865e-07
  3  6.96402
  4  0.767475
  5  2.76955
  6  7.39203
  7  9.85564
  8  4.30564
  9  3.39067
  10  3.00835e-06
  11  8.43287e-05
  12  5.29982e-06
  13  0.204211
  14  72.537
  15  14.7947
  16  6.06986e-05
  17  13.8819
  18  7.48597e-05
  19  10.9261
  20  38.9799
  21  1.12462
  22  6.75476
  23  6.58924e-05
  24  0.273853
  25  0.172297
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  5.384e-01  2.042e-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.045e+00  1.723e-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.065e+00  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.61
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.22e-07 +/- 4.61e-08
Energy Flux (Fixed Index): 4.58e-05 +/- 1.74e-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) = 8952.13511673
delta logL = 0.190800834371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8952.13474742
delta logL = 0.191170143922

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55872       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4631       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0637       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=   8952.135     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      215 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55878        2.9509        .52906E-02    .37562E-03
   2  alpha         2.4632        3.6473        .33759        .16410E-04
   3  Normalizat    1.0199        .15405        .84579E-01    .26529E-04
   4  Prefactor     1.0636        .88916E-01    .55960E-01    .75429E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.558777
  alpha      = 2.46322
  Normalizat = 1.01986
  Prefactor  = 1.06364
 **********
 **   18 **HESSE 
 **********

 FCN=   8952.135     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55878        .19542        .23443E-04   -1.5558    
   2  alpha         2.4632        .42581        .13056E-01   -.14711E-01
   3  Normalizat    1.0199        .26359        .37448E-03   -.92368    
   4  Prefactor     1.0636        .17288        .24742E-03   -.90637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26682e-10
Minuit parameter uncertainties:
  1  0.195418
  2  0.427897
  3  0.263924
  4  0.172969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20920': 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) = 8952.13474727
delta logL = 0.191170299651

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  5.588e-01  1.954e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.463e+00  4.279e-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.064e+00  1.730e-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.020e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.92
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 2.46 +/- 0.43
Photon Flux (Free Index): 1.55e-07 +/- 7.41e-08
Energy Flux (Free Index): 4.41e-05 +/- 1.55e-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/20920/cmap_HighResolution_377222401_377481601_4FGL_J1256.1-0547_daily_bin532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.22e-07', energy_flux2='4.41e-05', photon_flux_error='4.61e-08', dlogl='1.91e-01', energy_flux='4.58e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-06 11:10:14.571392', photon_index_error2='0.43', photon_index2='2.46', ts='21.61', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='1.07', time_epoch_completed='1630951814.57', return_code='0', job_id='20920', GAL2='1.06', EG2='1.02', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='7.41e-08', ts2='21.92', photon_index='2.20' WHERE bin_id='532' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 20920: <4FGL_J1256.1-0547_daily_bin532> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin532> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 10:55:57 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 10:56:00 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:56:00 2021
Terminated at Mon Sep  6 11:10:15 2021
Results reported at Mon Sep  6 11:10:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin532 194.042 -5.7887 377222401 377481601 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 :                                   837.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            858 sec.

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

