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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1137
RA = 344.025, Dec = -27.6739
tmin = 534038401, tmax = 534297601
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='592841', job_status='RUN', time_executed='2021-09-29 02:46:55.127294', time_epoch_executed='1632908815.13' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592841

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592841/ft1_4FGL_J2256.0-2740_daily_bin1137.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592841/ft1_4FGL_J2256.0-2740_daily_bin1137.fits outfile=/scratch/kocevski/592841/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1137.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=534038401.0 tmax=534297601.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.63
user 3.41
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.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/592841/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1137.fits evtable="EVENTS" outfile="/scratch/kocevski/592841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1137.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1137.fits" evtable="EVENTS" scfile=/scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits sctable="SC_DATA" outfile=/scratch/kocevski/592841/ltcube_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.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/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits
.....................!
real 16.24
user 15.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits sctable="SC_DATA" expcube=/scratch/kocevski/592841/ltcube_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.fits outfile=/scratch/kocevski/592841/expmap_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.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/592841/ltcube_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.fits
.....................!
real 190.09
user 185.26
sys 4.51

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J2256.0-2740 @ 344.025 -27.6739

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/592841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1137.fits scfile=/scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits outfile=/scratch/kocevski/592841/cmap_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.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=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1137.fits scfile=/scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits outfile=/scratch/kocevski/592841/cmap_HighResolution_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.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=344.025 yref=-27.6739 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1137.fits evtable="EVENTS" scfile=/scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592841/Model_4FGL_J2256.0-2740_daily_bin1137.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/592841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1137.fits.....................!
real 58.64
user 57.39
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/592841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1137.fits', '/scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits', expMap='/scratch/kocevski/592841/expmap_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.fits', expCube='/scratch/kocevski/592841/ltcube_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/592841/Model_4FGL_J2256.0-2740_daily_bin1137.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2256.0-2740'

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/592841/ft1_filtered_4FGL_J2256.0-2740_daily_bin1137.fits
Spacecraft file(s): /scratch/kocevski/592841/ft2_4FGL_J2256.0-2740_daily_bin1137.fits
Exposure map: /scratch/kocevski/592841/expmap_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.fits
Exposure cube: /scratch/kocevski/592841/ltcube_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/592841/Model_4FGL_J2256.0-2740_daily_bin1137.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) = 7798.89055157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.689       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7998       1.0000         .10000E-03   10000.    
     3 'norm      '    24.722       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8908       1.0000         .10000E-03   10000.    
     6 'norm      '    .10471E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35785E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6557       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.447       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.319       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8857       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.6620       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.360       1.0000         .10000E-03   10000.    
    18 'norm      '    5.8987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.798       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92150       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7798.830     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2382 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.689        16.131        .21594E-06    .24041E-05
   2  Prefactor     4.8005        4.8498        .21209E-05    .10762E-02
   3  norm          24.722        16.376        .12092E-07    .23362E-04
   4  Prefactor     .10000E-03    7.9340        .49270E-07** at limit **
   5  Prefactor     7.8916        8.2936        .22178E-06    .61001E-04
   6  norm          .10000E-03    .96938        .37686E-07** at limit **
   7  Prefactor     .10000E-03    28.824        .30806E-06** at limit **
   8  Prefactor     .10017E-03    8.9461       -.40993E-05** at limit **
   9  norm          1.6559        2.3927       -.68747E-07    .15123E-03
  10  Prefactor     .10000E-03    5.2545       -.18471E-06** at limit **
  11  Prefactor     16.452        10.615        .18518E-05    .99515E-03
  12  norm          3.1072        .89816       -.19567E-06    .21013E-02
  13  Prefactor     11.320        18.821        .85656E-07    .22111E-04
  14  Prefactor     6.8800        13.567        .57561E-06    .13211E-04
  15  Prefactor     .10000E-03    4.1007       -.14495E-06** at limit **
  16  norm          4.6621        6.6758        .54641E-06    .10145E-03
  17  Prefactor     21.361        20.765        .10371E-07    .15642E-04
  18  norm          5.8963        3.0332        .77515E-07   -.19087E-05
  19  Prefactor     .10000E-03    32.024       -.13492E-05** at limit **
  20  Prefactor     34.745        43.541       -.10016E-05   -.21631E-03
  21  Normalizat    .92135        .15920       -.33259E-06    .39067E-03
  22  Prefactor     .91156        .15110       -.11090E-05    .16720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6887
  Prefactor  = 4.8005
  norm       = 24.7216
  Prefactor  = 0.0001
  Prefactor  = 7.89156
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010017
  norm       = 1.65594
  Prefactor  = 0.0001
  Prefactor  = 16.4517
  norm       = 3.10715
  Prefactor  = 11.3204
  Prefactor  = 6.87995
  Prefactor  = 0.0001
  norm       = 4.66205
  Prefactor  = 21.3614
  norm       = 5.89631
  Prefactor  = 0.0001
  Prefactor  = 34.7448
  Normalizat = 0.921351
  Prefactor  = 0.911559
 **********
 **   18 **HESSE 
 **********

 FCN=   7798.830     FROM HESSE     STATUS=OK           352 CALLS     2734 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.689        16.127        .86007E-04   -1.4776    
   2  Prefactor     4.8005        4.9806        .91817E-03   -1.5270    
   3  norm          24.722        16.353        .80566E-04   -1.4713    
   4  Prefactor     .10000E-03    7.9576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8916        8.2834        .14274E-03   -1.5146    
   6  norm          .10000E-03    3.3689        .16815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10017E-03    22.256        .39709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6559        2.3581        .15560E-03   -1.5451    
  10  Prefactor     .10000E-03    5.2644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.452        11.079        .49380E-03   -1.4897    
  12  norm          3.1072        .92355        .34231E-04   -1.5355    
  13  Prefactor     11.320        18.817        .11907E-03   -1.5035    
  14  Prefactor     6.8800        13.553        .15290E-03   -1.5183    
  15  Prefactor     .10000E-03    4.1205        .17451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6621        6.6690        .18639E-03   -1.5276    
  17  Prefactor     21.361        20.768        .86665E-04   -1.4783    
  18  norm          5.8963        3.0321        .10504E-03   -1.5222    
  19  Prefactor     .10000E-03    32.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.745        43.761        .33967E-03   -1.4528    
  21  Normalizat    .92135        .18835        .24278E-03   -.95714    
  22  Prefactor     .91156        .17986        .24349E-03   -.95738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71242e-09
Minuit parameter uncertainties:
  1  16.1298
  2  4.98108
  3  16.3562
  4  4.75198e-06
  5  8.28462
  6  2.03676e-05
  7  9.74294e-05
  8  0.00388612
  9  2.35818
  10  2.43539e-05
  11  11.0804
  12  0.923557
  13  18.8269
  14  13.5593
  15  1.81569e-05
  16  6.67009
  17  20.7753
  18  3.03223
  19  0.000222735
  20  43.8014
  21  0.188484
  22  0.179974
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.645e+01  1.108e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.116e-01  1.800e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.214e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 7.57e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.50e-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) = 7798.7798393
delta logL = 0.0499078290668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7798.77741889
delta logL = 0.0523282402646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.365       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4445       1.0000          .0000       10.000    
     3 'Normalizat'    .90747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92383       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7798.777     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      302 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.374        18.723        .52840E-03   -.28357E-04
   2  Index         3.4416        2.4025        .11479E-01    .15103E-03
   3  Normalizat    .90759        .18984        .24440E-03   -.34887E-05
   4  Prefactor     .92372        .18657        .24219E-03    .85431E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3745
  Index      = 3.44157
  Normalizat = 0.907586
  Prefactor  = 0.923715
 **********
 **   18 **HESSE 
 **********

 FCN=   7798.777     FROM HESSE     STATUS=OK            27 CALLS      329 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.374        14.612        .21136E-04   -1.4950    
   2  Index         3.4416        1.9083        .22959E-02   -.31697    
   3  Normalizat    .90759        .18860        .97761E-05   -.96194    
   4  Prefactor     .92372        .18446        .96878E-05   -.95317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31781e-12
Minuit parameter uncertainties:
  1  14.6159
  2  1.96369
  3  0.188738
  4  0.184588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592841': 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) = 7798.7774169
delta logL = 0.0523302306819

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.437e+01  1.462e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.442e+00  1.964e+00  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.237e-01  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.076e-01  1.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.44 +/- 1.96
Photon Flux (Free Index): 1.17e-07 +/- 5.99e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.47e-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/592841/cmap_HighResolution_534038401_534297601_4FGL_J2256.0-2740_daily_bin1137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='1.98e-05', photon_flux_error='7.57e-08', dlogl='5.23e-02', energy_flux='2.22e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-29 02:57:57.578225', photon_index_error2='1.96', photon_index2='3.44', ts='4.50', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.92', time_epoch_completed='1632909477.58', return_code='0', job_id='592841', GAL2='0.92', EG2='0.91', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='5.99e-08', ts2='5.19', photon_index='3.02' WHERE bin_id='1137' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 592841: <4FGL_J2256.0-2740_daily_bin1137> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1137> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:57 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:45:59 2021
Terminated at Wed Sep 29 02:57:58 2021
Results reported at Wed Sep 29 02:57:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1137 344.025 -27.6739 534038401 534297601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2256.0-2740 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   657.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            721 sec.

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

