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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin233
RA = 194.042, Dec = -5.7887
tmin = 299721601, tmax = 299980801
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='19060', job_status='RUN', time_executed='2021-09-06 10:50:45.768960', time_epoch_executed='1630950645.77' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19060/ft1_4FGL_J1256.1-0547_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19060/ft2_4FGL_J1256.1-0547_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19060/ft1_4FGL_J1256.1-0547_daily_bin233.fits outfile=/scratch/kocevski/19060/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin233.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=299721601.0 tmax=299980801.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.36
user 3.17
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19060/ft1_filtered_4FGL_J1256.1-0547_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/19060/ft2_4FGL_J1256.1-0547_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/19060/ltcube_299721601_299980801_4FGL_J1256.1-0547_daily_bin233.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/19060/ft2_4FGL_J1256.1-0547_daily_bin233.fits
.....................!
real 12.00
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19060/ft1_filtered_4FGL_J1256.1-0547_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/19060/ft2_4FGL_J1256.1-0547_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/19060/ltcube_299721601_299980801_4FGL_J1256.1-0547_daily_bin233.fits outfile=/scratch/kocevski/19060/expmap_299721601_299980801_4FGL_J1256.1-0547_daily_bin233.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/19060/ltcube_299721601_299980801_4FGL_J1256.1-0547_daily_bin233.fits
.....................!
real 190.72
user 186.10
sys 4.23

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/19060/ft1_filtered_4FGL_J1256.1-0547_daily_bin233.fits scfile=/scratch/kocevski/19060/ft2_4FGL_J1256.1-0547_daily_bin233.fits outfile=/scratch/kocevski/19060/cmap_299721601_299980801_4FGL_J1256.1-0547_daily_bin233.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=194.042 yref=-5.7887 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19060/ft1_filtered_4FGL_J1256.1-0547_daily_bin233.fits scfile=/scratch/kocevski/19060/ft2_4FGL_J1256.1-0547_daily_bin233.fits outfile=/scratch/kocevski/19060/cmap_HighResolution_299721601_299980801_4FGL_J1256.1-0547_daily_bin233.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19060/ft1_filtered_4FGL_J1256.1-0547_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/19060/ft2_4FGL_J1256.1-0547_daily_bin233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19060/Model_4FGL_J1256.1-0547_daily_bin233.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/19060/ft1_filtered_4FGL_J1256.1-0547_daily_bin233.fits.....................!
real 59.41
user 57.99
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0652       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2382       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7516       1.0000         .10000E-03   10000.    
     4 'norm      '    7.3778       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6406       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1909       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0738       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.775       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .35197       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.557       1.0000         .10000E-03   10000.    
    15 'norm      '    .10186E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.6279       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.671       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6243       1.0000         .10000E-03   10000.    
    21 'norm      '    17.575       1.0000         .10000E-03   10000.    
    22 'norm      '    6.0758       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2677       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98439       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=   7350.073     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2878 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0654        9.2503        .20280E-06   -.61048E-03
   2  norm          1.2381        2.2031        .44966E-07   -.95259E-04
   3  Prefactor     1.7510        3.5316        .10855E-05   -.18795E-02
   4  norm          7.3780        1.0532        .11195E-07    .10233E-03
   5  Prefactor     4.6399        2.3668       -.59749E-07    .15981E-05
   6  Prefactor     4.1913        9.6188       -.13900E-06   -.92694E-05
   7  Prefactor     .10000E-03    5.0109       -.60843E-06** at limit **
   8  norm          3.0741        2.1295        .91176E-09   -.37257E-04
   9  Prefactor     .10000E-03    5.9333       -.10763E-05** at limit **
  10  Prefactor     .10000E-03    12.614       -.59227E-06** at limit **
  11  Prefactor     59.772        47.837       -.26384E-05   -.91103E-05
  12  norm          .10000E-03    8.9330       -.64927E-06** at limit **
  13  norm          .35202        .17907        .10971E-06    .98806E-03
  14  Prefactor     26.538        40.051       -.23903E-04   -.77898E-04
  15  norm          .10000E-03    6.8919        .12774E-05** at limit **
  16  norm          9.6279        11.940       -.36560E-07   -.90281E-05
  17  Prefactor     1.4263        7.9972       -.56827E-06   -.10116E-03
  18  Prefactor     12.675        17.938        .18935E-05    .14260E-04
  19  Prefactor     .10000E-03    5.7587        .25700E-06** at limit **
  20  Prefactor     8.6297        29.488        .93341E-05   -.22742E-04
  21  norm          17.575        2.9001       -.33058E-07   -.24338E-04
  22  norm          6.0745        6.3570       -.30107E-05   -.26582E-04
  23  norm          .10000E-03    44.890       -.33323E-05** at limit **
  24  Normalizat    1.2674        .24719        .13315E-05   -.52252E-04
  25  Prefactor     .98451        .16277       -.65305E-06    .31593E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.0654
  norm       = 1.2381
  Prefactor  = 1.75098
  norm       = 7.37799
  Prefactor  = 4.63986
  Prefactor  = 4.19134
  Prefactor  = 0.0001
  norm       = 3.07413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.772
  norm       = 0.0001
  norm       = 0.352018
  Prefactor  = 26.5382
  norm       = 0.0001
  norm       = 9.62789
  Prefactor  = 1.42628
  Prefactor  = 12.675
  Prefactor  = 0.0001
  Prefactor  = 8.62973
  norm       = 17.5753
  norm       = 6.07449
  norm       = 0.0001
  Normalizat = 1.26739
  Prefactor  = 0.984513
 **********
 **   18 **HESSE 
 **********

 FCN=   7350.073     FROM HESSE     STATUS=OK           429 CALLS     3307 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0654        9.5903        .11585E-02   -1.5358    
   2  norm          1.2381        2.1639        .15466E-03   -1.5485    
   3  Prefactor     1.7510        8.7648        .15839E-02   -1.5443    
   4  norm          7.3780        1.0546        .14766E-04   -1.5165    
   5  Prefactor     4.6399        2.5434        .89470E-04   -1.5277    
   6  Prefactor     4.1913        9.6074        .19686E-03   -1.5298    
   7  Prefactor     .10000E-03    5.0435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0741        2.1260        .99197E-04   -1.5357    
   9  Prefactor     .10000E-03    5.9693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     59.772        47.816        .51894E-04   -1.4160    
  12  norm          .10000E-03    8.9426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .35202        .17873        .24387E-04   -1.5589    
  14  Prefactor     26.538        40.207        .77736E-04   -1.4677    
  15  norm          .10000E-03    6.9855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.6279        11.948        .12915E-03   -1.5087    
  17  Prefactor     1.4263        7.9949        .36198E-03   -1.5469    
  18  Prefactor     12.675        18.005        .11253E-03   -1.4996    
  19  Prefactor     .10000E-03    5.7961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6297        29.826        .13650E-03   -1.5120    
  21  norm          17.575        2.9058        .56666E-04   -1.4869    
  22  norm          6.0745        6.4341        .14918E-03   -1.5215    
  23  norm          .10000E-03    45.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2674        .29250        .34341E-03   -.84545    
  25  Prefactor     .98451        .19309        .25926E-03   -.93248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34596e-08
Minuit parameter uncertainties:
  1  9.59514
  2  2.16399
  3  7.83664
  4  1.05458
  5  2.54349
  6  9.6109
  7  3.52906e-06
  8  2.12608
  9  8.91492e-06
  10  2.88585e-06
  11  47.8472
  12  5.64017e-06
  13  0.178729
  14  40.2482
  15  5.53285e-05
  16  11.9512
  17  6.7548
  18  18.013
  19  2.76086e-06
  20  29.8771
  21  2.90578
  22  6.43487
  23  3.62474e-05
  24  0.292876
  25  0.193223
Done.

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

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  3.520e-01  1.787e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.366e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  4.660e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
636    Prefactor:  9.845e-01  1.932e-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.267e+00  2.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.02
Ra Dec: 194.042 -5.789
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 7.96e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 1.52e-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) = 7349.71257448
delta logL = 0.360852022224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7349.69075137
delta logL = 0.382675136455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .30786       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7972       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97378       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=   7349.691     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30789        .15702        .53437E-02   -.31734E-03
   2  alpha         1.7974        .34950        .30451       -.38396E-04
   3  Normalizat    1.2955        .23587        .76878E-01    .13905E-04
   4  Prefactor     .97379        .15956        .45939E-01    .10123E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.307888
  alpha      = 1.79745
  Normalizat = 1.29547
  Prefactor  = 0.973794
 **********
 **   18 **HESSE 
 **********

 FCN=   7349.691     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30789        .17753        .23550E-04   -1.5597    
   2  alpha         1.7974        .43467        .12196E-01   -.28486    
   3  Normalizat    1.2955        .27685        .34025E-03   -.83702    
   4  Prefactor     .97379        .18728        .26052E-03   -.93608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57571e-10
Minuit parameter uncertainties:
  1  0.177529
  2  0.437082
  3  0.277168
  4  0.187408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19060': 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) = 7349.69075097
delta logL = 0.382675529363

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  3.079e-01  1.775e-01  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  1.797e+00  4.371e-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:  9.738e-01  1.874e-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.295e+00  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.77
Ra Dec: 194.042 -5.789
Photon Index (Free Index): 1.80 +/- 0.44
Photon Flux (Free Index): 5.56e-08 +/- 3.74e-08
Energy Flux (Free Index): 4.04e-05 +/- 2.78e-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/19060/cmap_HighResolution_299721601_299980801_4FGL_J1256.1-0547_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.96e-08', energy_flux2='4.04e-05', photon_flux_error='4.04e-08', dlogl='3.83e-01', energy_flux='3.00e-05', photon_flux2='5.56e-08', job_status='DONE', time_completed='2021-09-06 11:03:05.584356', photon_index_error2='0.44', photon_index2='1.80', ts='12.02', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.78e-05', EG='1.27', time_epoch_completed='1630951385.58', return_code='0', job_id='19060', GAL2='0.97', EG2='1.30', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.74e-08', ts2='12.77', photon_index='2.20' WHERE bin_id='233' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:03:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 19060: <4FGL_J1256.1-0547_daily_bin233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin233 194.042 -5.7887 299721601 299980801 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 :                                   734.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            758 sec.

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

