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


Performing analysis on: 4FGL_J1256.1-0547_daily_bin1304
RA = 194.042, Dec = -5.7887
tmin = 577324801, tmax = 577584001
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='30195', job_status='RUN', time_executed='2021-09-06 11:24:14.411569', time_epoch_executed='1630952654.41' WHERE source_name='4FGL J1256.1-0547' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30195

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30195/ft1_4FGL_J1256.1-0547_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30195/ft2_4FGL_J1256.1-0547_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30195/ft1_4FGL_J1256.1-0547_daily_bin1304.fits outfile=/scratch/kocevski/30195/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin1304.fits ra=194.042 dec=-5.7887 rad=12.0 tmin=577324801.0 tmax=577584001.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 2.99
user 2.82
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/30195/ft2_4FGL_J1256.1-0547_daily_bin1304.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/30195/ft1_filteredMKT_4FGL_J1256.1-0547_daily_bin1304.fits evtable="EVENTS" outfile="/scratch/kocevski/30195/ft1_filtered_4FGL_J1256.1-0547_daily_bin1304.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30195/ft1_filtered_4FGL_J1256.1-0547_daily_bin1304.fits" evtable="EVENTS" scfile=/scratch/kocevski/30195/ft2_4FGL_J1256.1-0547_daily_bin1304.fits sctable="SC_DATA" outfile=/scratch/kocevski/30195/ltcube_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.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/30195/ft2_4FGL_J1256.1-0547_daily_bin1304.fits
.....................!
real 12.23
user 11.90
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30195/ft1_filtered_4FGL_J1256.1-0547_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/30195/ft2_4FGL_J1256.1-0547_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/30195/ltcube_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.fits outfile=/scratch/kocevski/30195/expmap_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.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/30195/ltcube_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.fits
.....................!
real 189.99
user 185.08
sys 4.59

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/30195/ft1_filtered_4FGL_J1256.1-0547_daily_bin1304.fits scfile=/scratch/kocevski/30195/ft2_4FGL_J1256.1-0547_daily_bin1304.fits outfile=/scratch/kocevski/30195/cmap_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.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.57
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30195/ft1_filtered_4FGL_J1256.1-0547_daily_bin1304.fits scfile=/scratch/kocevski/30195/ft2_4FGL_J1256.1-0547_daily_bin1304.fits outfile=/scratch/kocevski/30195/cmap_HighResolution_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.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.56
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/30195/ft1_filtered_4FGL_J1256.1-0547_daily_bin1304.fits', '/scratch/kocevski/30195/ft2_4FGL_J1256.1-0547_daily_bin1304.fits', expMap='/scratch/kocevski/30195/expmap_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.fits', expCube='/scratch/kocevski/30195/ltcube_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/30195/Model_4FGL_J1256.1-0547_daily_bin1304.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/30195/ft1_filtered_4FGL_J1256.1-0547_daily_bin1304.fits
Spacecraft file(s): /scratch/kocevski/30195/ft2_4FGL_J1256.1-0547_daily_bin1304.fits
Exposure map: /scratch/kocevski/30195/expmap_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.fits
Exposure cube: /scratch/kocevski/30195/ltcube_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/30195/Model_4FGL_J1256.1-0547_daily_bin1304.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 206.290027933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 205.529007506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95357E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7419       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.221       1.0000         .10000E-03   10000.    
     4 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18343E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20836E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0817       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0013       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39831E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87375       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9884       1.0000         .10000E-03   10000.    
    12 'norm      '    5.3279       1.0000         .10000E-03   10000.    
    13 'norm      '    .70257E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5372       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8149       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4699       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9408       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .63397E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9237       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4749       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3895       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3314       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3869       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1824       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   205.5161     FROM MIGRAD    STATUS=CONVERGED    223 CALLS      548 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.357        .90810E-02** at limit **
   2  norm          2.7486        11.976        .61469E-02    .82834E-01
   3  Prefactor     22.772        66.665        .20348E-02    .34778E-02
   4  norm          .10000E-03    1.1555        .68634E-02** at limit **
   5  Prefactor     .10000E-03    16.297        .90712E-02** at limit **
   6  Prefactor     .10000E-03    36.522        .90712E-02** at limit **
   7  Prefactor     .10000E-03    116.25        .11572E-01** at limit **
   8  norm          1.9492        4.7214        .73186E-02    .42535    
   9  Prefactor     .10000E-03    50.775        .97498E-02** at limit **
  10  Prefactor     .15469E-03    761.47        .12712E-01** at limit **
  11  Prefactor     .45055E-02    1051.4        .41021E-02   -.30433E-02
  12  norm          .44475E-03    1276.4        .43529E-02** at limit **
  13  norm          .10000E-03    24.206        .93469E-02** at limit **
  14  Prefactor     .32347        7110.5        .64101E-02    .55948E-02
  15  norm          7.8149        1.0021         .0000         .0000    
  16  norm          1.4699        1.0743         .0000         .0000    
  17  Prefactor     1.9408        1.0378         .0000         .0000    
  18  Prefactor     .10000E-03    .21787       -.25851E-04** at limit **
  19  Prefactor     4.9237        1.0052         .0000         .0000    
  20  Prefactor     5.4749        1.0042         .0000         .0000    
  21  norm          2.3895        1.0238         .0000         .0000    
  22  norm          5.3314        1.0045         .0000         .0000    
  23  norm          .10596E-03    .21301        .46300E-04** at limit **
  24  Normalizat    .10000E-01    .25664        .50555E-03** at limit **
  25  Prefactor     1.1890        1.1118       -.12351E-03    .30317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.74859
  Prefactor  = 22.7719
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.94922
  Prefactor  = 0.000100001
  Prefactor  = 0.000154694
  Prefactor  = 0.0045055
  norm       = 0.000444746
  norm       = 0.0001
  Prefactor  = 0.323469
  norm       = 7.81489
  norm       = 1.46991
  Prefactor  = 1.94084
  Prefactor  = 0.000100001
  Prefactor  = 4.92373
  Prefactor  = 5.4749
  norm       = 2.38948
  norm       = 5.33141
  norm       = 0.000105965
  Normalizat = 0.01
  Prefactor  = 1.18902
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   205.5161     FROM HESSE     STATUS=FAILED        39 CALLS      587 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.357        .90810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7486        11.976        .61469E-02   -1.5376    
   3  Prefactor     22.772        66.665        .20348E-02   -1.4753    
   4  norm          .10000E-03    1.1555        .68634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.297        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    116.25        .11572E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9492        4.7214        .73186E-02   -1.5429    
   9  Prefactor     .10000E-03    50.775        .97498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15469E-03    761.47        .12712E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .45055E-02    1051.4        .41021E-02   -1.5721    
  12  norm          .44475E-03    1276.4        .43529E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    24.206        .93469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .32347        7110.5        .64101E-02   -1.5594    
  15  norm          506.68        498.83         .0000       -1.5149    
  16  norm          1.4699        1.0743         .0000       -1.5465    
  17  Prefactor     1.9408        1.0378         .0000       -1.5429    
  18  Prefactor     .10000E-03    .21787       -.25851E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9237        1.0052         .0000       -1.5264    
  20  Prefactor     5.4749        1.0042         .0000       -1.5240    
  21  norm          2.3895        1.0238         .0000       -1.5399    
  22  norm          5.3314        1.0045         .0000       -1.5246    
  23  norm          .10596E-03    .21301        .46300E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .25664        .50555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.1890        1.1118       -.12351E-03   -.86670    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.65436e-09
Minuit parameter uncertainties:
  1  0.000222986
  2  11.4783
  3  66.8847
  4  7.17672e-07
  5  3.56453e-05
  6  0.000352122
  7  0.000104968
  8  4.72227
  9  0.000451901
  10  0.413521
  11  4.38369
  12  1.35665
  13  6.24607e-05
  14  81.0772
  15  1.00206
  16  1.07431
  17  1.03778
  18  2.82945e-05
  19  1.00525
  20  1.00423
  21  1.02377
  22  1.00447
  23  0.00225433
  24  2.82756e-05
  25  1.13486
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 205.516064824

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.000e-04  6.246e-05  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.189e+00  1.135e+00  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.000e-02  2.828e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.042 -5.789
Photon Flux Upper Limit: 3.28e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30195/likelihoodResults_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.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) = 205.516206241
delta logL = -0.000141417303297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 205.516066656
delta logL = -1.83236770113e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5172       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1892       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=   205.5161     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      286 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6184.9        .51868E-02** at limit **
   2  alpha         2.1534        2.9524        .18640        .20512E-07
   3  Normalizat    .10000E-01    .55082        .98754E-02** at limit **
   4  Prefactor     1.1890        .19479        .16230E-03    .50377E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.15344
  Normalizat = 0.01
  Prefactor  = 1.18902
 **********
 **   18 **HESSE 
 **********

 FCN=   205.5161     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.252        .69023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1534        2.6479        .74558E-02   -.13907    
   3  Normalizat    .10000E-01    1.9392        .19751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1890        .37395        .32460E-04   -.86670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11478e-10
Minuit parameter uncertainties:
  1  0.000293854
  2  769.642
  3  5.81202e-06
  4  0.374791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30195': 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) = 205.516064822
delta logL = 2.06685513149e-09

Extracting fit parameters...

4FGL J1256.1-0547
   Spectrum: LogParabola
324         norm:  1.000e-04  2.939e-04  1.000e-04  1.000e+04 ( 1.000e-10)
325        alpha:  2.153e+00  7.696e+02  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.189e+00  3.748e-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.000e-02  5.812e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.042 -5.789

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/30195/cmap_HighResolution_577324801_577584001_4FGL_J1256.1-0547_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='3.28e-05', time_completed='2021-09-06 11:34:44.752343', job_id='30195', GAL2='1.19', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630953284.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.19', dlogl='2.07e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1304' AND source_name='4FGL J1256.1-0547' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 11:34:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 30195: <4FGL_J1256.1-0547_daily_bin1304> in cluster <slac> Done

Job <4FGL_J1256.1-0547_daily_bin1304> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 11:20:42 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 11:20:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 11:20:44 2021
Terminated at Mon Sep  6 11:34:45 2021
Results reported at Mon Sep  6 11:34:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1256.1-0547_daily_bin1304 194.042 -5.7887 577324801 577584001 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 :                                   324.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             191.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            843 sec.

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

