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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin441
RA = 344.025, Dec = -27.6739
tmin = 353635201, tmax = 353894401
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='590784', job_status='RUN', time_executed='2021-09-29 02:43:13.533560', time_epoch_executed='1632908593.53' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590784

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590784/ft1_4FGL_J2256.0-2740_daily_bin441.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590784/ft2_4FGL_J2256.0-2740_daily_bin441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590784/ft1_4FGL_J2256.0-2740_daily_bin441.fits outfile=/scratch/kocevski/590784/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin441.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=353635201.0 tmax=353894401.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590784/ft1_filtered_4FGL_J2256.0-2740_daily_bin441.fits" evtable="EVENTS" scfile=/scratch/kocevski/590784/ft2_4FGL_J2256.0-2740_daily_bin441.fits sctable="SC_DATA" outfile=/scratch/kocevski/590784/ltcube_353635201_353894401_4FGL_J2256.0-2740_daily_bin441.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/590784/ft2_4FGL_J2256.0-2740_daily_bin441.fits
.....................!
real 11.76
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590784/ft1_filtered_4FGL_J2256.0-2740_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/590784/ft2_4FGL_J2256.0-2740_daily_bin441.fits sctable="SC_DATA" expcube=/scratch/kocevski/590784/ltcube_353635201_353894401_4FGL_J2256.0-2740_daily_bin441.fits outfile=/scratch/kocevski/590784/expmap_353635201_353894401_4FGL_J2256.0-2740_daily_bin441.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/590784/ltcube_353635201_353894401_4FGL_J2256.0-2740_daily_bin441.fits
.....................!
real 190.02
user 185.24
sys 4.42

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/590784/ft1_filtered_4FGL_J2256.0-2740_daily_bin441.fits scfile=/scratch/kocevski/590784/ft2_4FGL_J2256.0-2740_daily_bin441.fits outfile=/scratch/kocevski/590784/cmap_353635201_353894401_4FGL_J2256.0-2740_daily_bin441.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590784/ft1_filtered_4FGL_J2256.0-2740_daily_bin441.fits scfile=/scratch/kocevski/590784/ft2_4FGL_J2256.0-2740_daily_bin441.fits outfile=/scratch/kocevski/590784/cmap_HighResolution_353635201_353894401_4FGL_J2256.0-2740_daily_bin441.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590784/ft1_filtered_4FGL_J2256.0-2740_daily_bin441.fits evtable="EVENTS" scfile=/scratch/kocevski/590784/ft2_4FGL_J2256.0-2740_daily_bin441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590784/Model_4FGL_J2256.0-2740_daily_bin441.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/590784/ft1_filtered_4FGL_J2256.0-2740_daily_bin441.fits.....................!
real 41.33
user 39.96
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.554       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.513       1.0000         .10000E-03   10000.    
     3 'norm      '    21.308       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8467       1.0000         .10000E-03   10000.    
     6 'norm      '    .10617E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11347E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.521       1.0000         .10000E-03   10000.    
     9 'norm      '    23.460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4294       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6631       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2353       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.8921       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.971       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4266       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17196E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    207.28       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1534       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74184       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=   4416.453     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2392 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.553        22.614       -.61618E-07    .34808E-05
   2  Prefactor     12.512        13.073       -.16000E-06   -.12633E-04
   3  norm          21.330        31.721       -.21864E-05   -.74052E-04
   4  Prefactor     .10000E-03    8.4542       -.74650E-07** at limit **
   5  Prefactor     8.8646        20.749       -.35902E-05   -.23103E-04
   6  norm          .10000E-03    1.9445        .64328E-06** at limit **
   7  Prefactor     .10000E-03    284.85        .58050E-05** at limit **
   8  Prefactor     33.522        18.828       -.20530E-06    .43134E-05
   9  norm          23.463        9.5507       -.97318E-07   -.11967E-03
  10  Prefactor     .10000E-03    15.338        .10342E-05** at limit **
  11  Prefactor     5.4356        17.822       -.13080E-05   -.24934E-04
  12  norm          1.6630        .96945        .11358E-07   -.19917E-03
  13  Prefactor     .10000E-03    100.18        .99204E-07** at limit **
  14  Prefactor     5.2357        11.318        .12434E-06   -.29078E-05
  15  Prefactor     .10000E-03    3.6666        .20351E-06** at limit **
  16  norm          8.8918        11.853       -.11514E-06   -.11508E-04
  17  Prefactor     56.937        59.996       -.53454E-06   -.11327E-04
  18  norm          4.4238        3.6255        .30496E-06   -.19451E-04
  19  Prefactor     .10000E-03    180.51       -.16149E-05** at limit **
  20  Prefactor     207.18        183.55        .91127E-06   -.15717E-04
  21  Normalizat    1.1534        .26565        .27294E-05   -.19075E-03
  22  Prefactor     .74187        .21667       -.24678E-05    .22396E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.5535
  Prefactor  = 12.512
  norm       = 21.3304
  Prefactor  = 0.0001
  Prefactor  = 8.86465
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.5219
  norm       = 23.4628
  Prefactor  = 0.0001
  Prefactor  = 5.43565
  norm       = 1.66302
  Prefactor  = 0.0001
  Prefactor  = 5.2357
  Prefactor  = 0.0001
  norm       = 8.89181
  Prefactor  = 56.9374
  norm       = 4.42377
  Prefactor  = 0.0001
  Prefactor  = 207.181
  Normalizat = 1.15337
  Prefactor  = 0.741865
 **********
 **   18 **HESSE 
 **********

 FCN=   4416.453     FROM HESSE     STATUS=OK           348 CALLS     2740 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.553        22.626        .84343E-04   -1.4758    
   2  Prefactor     12.512        13.098        .11324E-03   -1.5000    
   3  norm          21.330        31.612        .86770E-04   -1.4784    
   4  Prefactor     .10000E-03    8.4571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.8646        20.693        .13476E-03   -1.5112    
   6  norm          .10000E-03    11.087        .17203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    289.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.522        18.898        .69212E-04   -1.4549    
   9  norm          23.463        9.4547        .82700E-04   -1.4739    
  10  Prefactor     .10000E-03    15.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4356        17.649        .17245E-03   -1.5242    
  12  norm          1.6630        .97032        .41241E-04   -1.5450    
  13  Prefactor     .10000E-03    100.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2357        11.308        .17568E-03   -1.5250    
  15  Prefactor     .10000E-03    3.6700        .12430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.8918        11.866        .13441E-03   -1.5111    
  17  Prefactor     56.937        60.091        .53149E-04   -1.4197    
  18  norm          4.4238        3.6347        .11057E-03   -1.5287    
  19  Prefactor     .10000E-03    182.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     207.18        186.13        .14038E-03   -1.2819    
  21  Normalizat    1.1534        .30725        .25512E-03   -.88056    
  22  Prefactor     .74187        .24895        .28449E-03   -1.0191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02853e-10
Minuit parameter uncertainties:
  1  22.6347
  2  13.1011
  3  31.6366
  4  3.80069e-07
  5  20.7096
  6  9.01465e-05
  7  0.000179072
  8  18.9009
  9  9.45528
  10  3.06761e-05
  11  17.6658
  12  0.970334
  13  4.14515e-05
  14  11.3131
  15  2.50863e-06
  16  11.8688
  17  60.1555
  18  3.63484
  19  0.000265081
  20  186.659
  21  0.307732
  22  0.249322
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.436e+00  1.767e+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.419e-01  2.493e-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.153e+00  3.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 2.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590784/likelihoodResults_353635201_353894401_4FGL_J2256.0-2740_daily_bin441.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): 102
logL (Free Index) = 4416.28677614
delta logL = 0.166380660344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4415.99314596
delta logL = 0.460010840035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11879       1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    1.1112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77377       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=   4415.993     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      301 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11890        5.6573        .53528E-02    .17168E-02
   2  Index        10.0000       10.0000        .50000    ** at limit **
   3  Normalizat    1.1110        .97227E-01    .58584E-01   -.47250E-05
   4  Prefactor     .77389        .85702E-01    .63166E-01    .98711E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.118905
  Index      = 10
  Normalizat = 1.11099
  Prefactor  = 0.773893
 **********
 **   18 **HESSE 
 **********

 FCN=   4415.993     FROM HESSE     STATUS=OK            37 CALLS      338 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11890        .17519        .24640E-03   -1.5639    
   2  Index        10.0000        7.9320        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1110        .27158        .25908E-03   -.89400    
   4  Prefactor     .77389        .24583        .27940E-03   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38903e-09
Minuit parameter uncertainties:
  1  0.175194
  2  4.00097e-05
  3  0.271921
  4  0.246176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590784': 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) = 4415.99314365
delta logL = 0.460013142884

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.189e-01  1.752e-01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.000e+01  4.001e-05  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.739e-01  2.462e-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.111e+00  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.09e-08 +/- 1.15e-07
Energy Flux (Free Index): 9.04e-06 +/- 1.30e-05

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/590784/cmap_HighResolution_353635201_353894401_4FGL_J2256.0-2740_daily_bin441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-02', comment='SUCCESS', energy_flux2='9.04e-06', dlogl='4.60e-01', photon_flux2='8.09e-08', job_status='DONE', time_completed='2021-09-29 02:52:10.510410', photon_index_error2='0.00', photon_index2='10.00', ts='0.16', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='2.26e-07', energy_flux_error2='1.30e-05', EG='1.15', time_epoch_completed='1632909130.51', return_code='0', job_id='590784', GAL2='0.77', EG2='1.11', return_code2='0', photon_flux_error2='1.15e-07', ts2='1.16', photon_index='3.02' WHERE bin_id='441' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 590784: <4FGL_J2256.0-2740_daily_bin441> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin441> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:25 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:26 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:40:26 2021
Terminated at Wed Sep 29 02:52:10 2021
Results reported at Wed Sep 29 02:52:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin441 344.025 -27.6739 353635201 353894401 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            705 sec.

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

