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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1068
RA = 344.025, Dec = -27.6739
tmin = 516153601, tmax = 516412801
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='592749', job_status='RUN', time_executed='2021-09-29 02:48:05.843355', time_epoch_executed='1632908885.84' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592749

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592749/ft1_4FGL_J2256.0-2740_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592749/ft1_4FGL_J2256.0-2740_daily_bin1068.fits outfile=/scratch/kocevski/592749/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1068.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=516153601.0 tmax=516412801.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.51
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.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/592749/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1068.fits evtable="EVENTS" outfile="/scratch/kocevski/592749/ft1_filtered_4FGL_J2256.0-2740_daily_bin1068.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592749/ft1_filtered_4FGL_J2256.0-2740_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/592749/ltcube_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.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/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.fits
.....................!
real 12.21
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592749/ft1_filtered_4FGL_J2256.0-2740_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/592749/ltcube_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.fits outfile=/scratch/kocevski/592749/expmap_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.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/592749/ltcube_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.fits
.....................!
real 192.11
user 186.83
sys 4.92

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/592749/ft1_filtered_4FGL_J2256.0-2740_daily_bin1068.fits scfile=/scratch/kocevski/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.fits outfile=/scratch/kocevski/592749/cmap_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592749/ft1_filtered_4FGL_J2256.0-2740_daily_bin1068.fits scfile=/scratch/kocevski/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.fits outfile=/scratch/kocevski/592749/cmap_HighResolution_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.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/592749/ft1_filtered_4FGL_J2256.0-2740_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592749/Model_4FGL_J2256.0-2740_daily_bin1068.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/592749/ft1_filtered_4FGL_J2256.0-2740_daily_bin1068.fits.....................!
real 57.72
user 56.32
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/592749/ft1_filtered_4FGL_J2256.0-2740_daily_bin1068.fits', '/scratch/kocevski/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.fits', expMap='/scratch/kocevski/592749/expmap_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.fits', expCube='/scratch/kocevski/592749/ltcube_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/592749/Model_4FGL_J2256.0-2740_daily_bin1068.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/592749/ft1_filtered_4FGL_J2256.0-2740_daily_bin1068.fits
Spacecraft file(s): /scratch/kocevski/592749/ft2_4FGL_J2256.0-2740_daily_bin1068.fits
Exposure map: /scratch/kocevski/592749/expmap_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.fits
Exposure cube: /scratch/kocevski/592749/ltcube_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/592749/Model_4FGL_J2256.0-2740_daily_bin1068.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) = 7576.10070235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.123       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    25.111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.162       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .69548E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11973E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11215E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7531       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.935       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8598       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.519       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3638       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19291       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.572       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0311       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78174       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=   7576.053     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2357 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.118        10.912       -.87796E-08   -.33724E-04
   2  Prefactor     .10000E-03    1.8250        .16247E-07** at limit **
   3  norm          25.110        18.398        .15512E-06   -.13580E-04
   4  Prefactor     30.162        16.932        .18064E-06    .17963E-04
   5  Prefactor     .10001E-03    4.9167        .50467E-06** at limit **
   6  norm          .10000E-03    .47902        .15621E-07** at limit **
   7  Prefactor     .10000E-03    28.271        .30099E-05** at limit **
   8  Prefactor     .10000E-03    11.392        .20924E-06** at limit **
   9  norm          9.7543        4.4146        .27939E-07    .17613E-05
  10  Prefactor     .10000E-03    17.765        .59555E-06** at limit **
  11  Prefactor     14.930        11.195        .49042E-07    .14049E-03
  12  norm          1.8612        .84721       -.82515E-08    .58272E-03
  13  Prefactor     19.477        30.084       -.41311E-05   -.24373E-03
  14  Prefactor     5.3652        10.185        .43128E-05   -.31990E-03
  15  Prefactor     .22607        6.3679       -.43096E-06    .23497E-03
  16  norm          .10000E-03    2.5067        .33693E-08** at limit **
  17  Prefactor     .10000E-03    12.203       -.31758E-06** at limit **
  18  norm          .10000E-03    1.3225        .49695E-07** at limit **
  19  Prefactor     22.558        20.344        .40151E-06    .62890E-04
  20  Prefactor     .10000E-03    25.473       -.31606E-05** at limit **
  21  Normalizat    1.0311        .15340       -.20292E-06   -.76277E-04
  22  Prefactor     .78172        .14633       -.25439E-06   -.57270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1182
  Prefactor  = 0.0001
  norm       = 25.1098
  Prefactor  = 30.1625
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 9.75427
  Prefactor  = 0.0001
  Prefactor  = 14.9298
  norm       = 1.86116
  Prefactor  = 19.4773
  Prefactor  = 5.36517
  Prefactor  = 0.226066
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.5579
  Prefactor  = 0.000100002
  Normalizat = 1.03107
  Prefactor  = 0.781725
 **********
 **   18 **HESSE 
 **********

 FCN=   7576.053     FROM HESSE     STATUS=OK           346 CALLS     2703 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.118        10.915        .10658E-03   -1.4956    
   2  Prefactor     .10000E-03    1.8311        .11482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.110        18.374        .79940E-04   -1.4705    
   4  Prefactor     30.162        16.931        .72953E-04   -1.4609    
   5  Prefactor     .10001E-03    23.348        .36174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .48058        .58803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7543        4.4162        .11265E-03   -1.5083    
  10  Prefactor     .10000E-03    17.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.930        12.071        .10364E-03   -1.4935    
  12  norm          1.8612        .88571        .39585E-04   -1.5435    
  13  Prefactor     19.477        31.525        .90656E-04   -1.4825    
  14  Prefactor     5.3652        10.634        .86762E-03   -1.5245    
  15  Prefactor     .22607        134.92        .34818E-02   -1.5613    
  16  norm          .10000E-03    2.5252        .13457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3510        .97628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.558        20.367        .84309E-04   -1.4758    
  20  Prefactor     .10000E-03    26.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0311        .18032        .22409E-03   -.91997    
  22  Prefactor     .78172        .17318        .24994E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5725e-09
Minuit parameter uncertainties:
  1  10.9168
  2  5.20934e-07
  3  18.3783
  4  16.9338
  5  0.000896927
  6  1.57486e-07
  7  0.000433934
  8  4.63192e-05
  9  4.4163
  10  7.87512e-05
  11  12.0734
  12  0.885716
  13  31.5524
  14  10.6376
  15  11.0682
  16  1.40113e-06
  17  3.04004e-05
  18  1.40577e-06
  19  20.3736
  20  0.000467663
  21  0.180428
  22  0.173305
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.493e+01  1.207e+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:  7.817e-01  1.733e-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:  1.031e+00  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 8.25e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.63e-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) = 7575.4167307
delta logL = 0.635844853055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7575.4043181
delta logL = 0.648257452151

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.093       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4288       1.0000          .0000       10.000    
     3 'Normalizat'    1.0559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75991       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.

 FCN=   7575.404     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      204 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.093        8.0057        .24960E-02   -.31687E-02
   2  Index         2.4288        .34391        .17876       -.94724E-04
   3  Normalizat    1.0559        .14890        .40178E-01    .85523E-05
   4  Prefactor     .75991        .14557        .43193E-01    .21020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0929
  Index      = 2.42881
  Normalizat = 1.05591
  Prefactor  = 0.759914
 **********
 **   18 **HESSE 
 **********

 FCN=   7575.404     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.093        8.2103        .99840E-04   -1.4905    
   2  Index         2.4288        .41900        .66652E-02   -.54012    
   3  Normalizat    1.0559        .17644        .22178E-03   -.91180    
   4  Prefactor     .75991        .17114        .25281E-03   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25309e-09
Minuit parameter uncertainties:
  1  8.21087
  2  0.419668
  3  0.176538
  4  0.171264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592749': 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) = 7575.40431809
delta logL = 0.648257461351

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.609e+01  8.211e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.429e+00  4.197e-01  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:  7.599e-01  1.713e-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:  1.056e+00  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.98
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 2.43 +/- 0.42
Photon Flux (Free Index): 9.30e-08 +/- 4.97e-08
Energy Flux (Free Index): 2.94e-05 +/- 1.70e-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/592749/cmap_HighResolution_516153601_516412801_4FGL_J2256.0-2740_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.94e-05', photon_flux_error='8.25e-08', dlogl='6.48e-01', energy_flux='2.02e-05', photon_flux2='9.30e-08', job_status='DONE', time_completed='2021-09-29 02:59:09.489582', photon_index_error2='0.42', photon_index2='2.43', ts='4.34', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='1.03', time_epoch_completed='1632909549.49', return_code='0', job_id='592749', GAL2='0.76', EG2='1.06', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='4.97e-08', ts2='5.98', photon_index='3.02' WHERE bin_id='1068' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 592749: <4FGL_J2256.0-2740_daily_bin1068> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1068> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:48 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:49 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:49 2021
Terminated at Wed Sep 29 02:59:10 2021
Results reported at Wed Sep 29 02:59:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1068 344.025 -27.6739 516153601 516412801 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 :                                   631.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

