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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin308
RA = 344.025, Dec = -27.6739
tmin = 319161601, tmax = 319420801
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='589551', job_status='RUN', time_executed='2021-09-29 02:38:19.525233', time_epoch_executed='1632908299.53' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589551

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589551/ft1_4FGL_J2256.0-2740_daily_bin308.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589551/ft2_4FGL_J2256.0-2740_daily_bin308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589551/ft1_4FGL_J2256.0-2740_daily_bin308.fits outfile=/scratch/kocevski/589551/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin308.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=319161601.0 tmax=319420801.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 4.48
user 4.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589551/ft2_4FGL_J2256.0-2740_daily_bin308.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/589551/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin308.fits evtable="EVENTS" outfile="/scratch/kocevski/589551/ft1_filtered_4FGL_J2256.0-2740_daily_bin308.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589551/ft1_filtered_4FGL_J2256.0-2740_daily_bin308.fits" evtable="EVENTS" scfile=/scratch/kocevski/589551/ft2_4FGL_J2256.0-2740_daily_bin308.fits sctable="SC_DATA" outfile=/scratch/kocevski/589551/ltcube_319161601_319420801_4FGL_J2256.0-2740_daily_bin308.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/589551/ft2_4FGL_J2256.0-2740_daily_bin308.fits
.....................!
real 11.62
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589551/ft1_filtered_4FGL_J2256.0-2740_daily_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/589551/ft2_4FGL_J2256.0-2740_daily_bin308.fits sctable="SC_DATA" expcube=/scratch/kocevski/589551/ltcube_319161601_319420801_4FGL_J2256.0-2740_daily_bin308.fits outfile=/scratch/kocevski/589551/expmap_319161601_319420801_4FGL_J2256.0-2740_daily_bin308.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/589551/ltcube_319161601_319420801_4FGL_J2256.0-2740_daily_bin308.fits
.....................!
real 191.50
user 185.72
sys 5.34

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/589551/ft1_filtered_4FGL_J2256.0-2740_daily_bin308.fits scfile=/scratch/kocevski/589551/ft2_4FGL_J2256.0-2740_daily_bin308.fits outfile=/scratch/kocevski/589551/cmap_319161601_319420801_4FGL_J2256.0-2740_daily_bin308.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.56
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589551/ft1_filtered_4FGL_J2256.0-2740_daily_bin308.fits evtable="EVENTS" scfile=/scratch/kocevski/589551/ft2_4FGL_J2256.0-2740_daily_bin308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589551/Model_4FGL_J2256.0-2740_daily_bin308.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/589551/ft1_filtered_4FGL_J2256.0-2740_daily_bin308.fits.....................!
real 51.19
user 49.64
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.442       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4643       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5409       1.0000         .10000E-03   10000.    
     6 'norm      '    .67312       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.724       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.006       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0552       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.536       1.0000         .10000E-03   10000.    
    16 'norm      '    12.416       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81997       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1971       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=   6579.216     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2373 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.439        18.778       -.24946E-06   -.53189E-04
   2  Prefactor     1.4638        11.636        .17775E-05   -.12148E-03
   3  norm          .10000E-03    6.8924        .24798E-06** at limit **
   4  Prefactor     .10000E-03    5.2939        .56866E-07** at limit **
   5  Prefactor     5.5409        7.3633       -.18196E-07   -.85051E-04
   6  norm          .67272        1.8466        .11086E-05   -.16664E-03
   7  Prefactor     56.498        44.513       -.11342E-05   -.37745E-04
   8  Prefactor     15.725        13.935        .55719E-07   -.42626E-04
   9  norm          2.4490        2.8894       -.39668E-07   -.84556E-04
  10  Prefactor     .10000E-03    4.7340        .17050E-06** at limit **
  11  Prefactor     18.011        14.035       -.54313E-09   -.90884E-04
  12  norm          1.0547        1.0542        .48074E-07   -.31588E-03
  13  Prefactor     .10000E-03    19.254        .24932E-05** at limit **
  14  Prefactor     18.045        14.062        .31065E-07   -.10714E-04
  15  Prefactor     13.539        13.802       -.10111E-06   -.55516E-04
  16  norm          12.416        9.2024        .96484E-07   -.24796E-04
  17  Prefactor     .10000E-03    20.258        .15255E-05** at limit **
  18  norm          .10000E-03    1.5152       -.43236E-07** at limit **
  19  Prefactor     .10000E-03    13.376       -.58466E-06** at limit **
  20  Prefactor     .10000E-03    22.217       -.30038E-05** at limit **
  21  Normalizat    .81994        .18603       -.40234E-06   -.10278E-03
  22  Prefactor     1.1971        .17600       -.24067E-06   -.10302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4393
  Prefactor  = 1.4638
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5409
  norm       = 0.672722
  Prefactor  = 56.4976
  Prefactor  = 15.7251
  norm       = 2.44899
  Prefactor  = 0.0001
  Prefactor  = 18.0106
  norm       = 1.05473
  Prefactor  = 0.0001
  Prefactor  = 18.0447
  Prefactor  = 13.5389
  norm       = 12.4157
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.819944
  Prefactor  = 1.19711
 **********
 **   18 **HESSE 
 **********

 FCN=   6579.216     FROM HESSE     STATUS=OK           348 CALLS     2721 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.439        18.816        .73839E-04   -1.4622    
   2  Prefactor     1.4638        11.744        .35541E-03   -1.5466    
   3  norm          .10000E-03    6.9087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5409        7.3627        .17068E-03   -1.5237    
   6  norm          .67272        1.8558        .16247E-02   -1.5544    
   7  Prefactor     56.498        44.305        .53372E-04   -1.4203    
   8  Prefactor     15.725        14.018        .10100E-03   -1.4915    
   9  norm          2.4490        2.8728        .14037E-03   -1.5395    
  10  Prefactor     .10000E-03    4.7384        .17230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.011        14.139        .94386E-04   -1.4859    
  12  norm          1.0547        1.0090        .55298E-04   -1.5503    
  13  Prefactor     .10000E-03    19.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.045        14.062        .94285E-04   -1.4858    
  15  Prefactor     13.539        13.622        .10887E-03   -1.4972    
  16  norm          12.416        9.2012        .11368E-03   -1.5003    
  17  Prefactor     .10000E-03    20.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5865        .19485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81994        .22210        .27395E-03   -.99333    
  22  Prefactor     1.1971        .21083        .23420E-03   -.86420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17445e-08
Minuit parameter uncertainties:
  1  18.8198
  2  8.29424
  3  6.60856e-06
  4  1.24178e-06
  5  7.36395
  6  1.85595
  7  44.3305
  8  14.0206
  9  2.87299
  10  3.1844e-06
  11  14.1413
  12  1.00906
  13  0.00015162
  14  14.0648
  15  13.6251
  16  9.20226
  17  9.57243e-05
  18  1.99119e-06
  19  2.19053e-05
  20  0.000191719
  21  0.222347
  22  0.210982
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.801e+01  1.414e+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:  1.197e+00  2.110e-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:  8.199e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 9.66e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.91e-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) = 6578.44685979
delta logL = 0.769639360587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.42918941
delta logL = 0.787309742891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.355       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0060       1.0000          .0000       10.000    
     3 'Normalizat'    .77347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2333       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=   6578.429     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.352        114.91        .26429E-02    .19183E-03
   2  Index         4.0074        6.9515        .20570        .59994E-04
   3  Normalizat    .77322        .84307E-01    .63576E-01    .11985E-04
   4  Prefactor     1.2334        .89977E-01    .52310E-01   -.21618E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3517
  Index      = 4.00737
  Normalizat = 0.773222
  Prefactor  = 1.23345
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.429     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.352        10.385        .10571E-03   -1.4950    
   2  Index         4.0074        1.0441        .95331E-02   -.19985    
   3  Normalizat    .77322        .21085        .28124E-03   -1.0107    
   4  Prefactor     1.2334        .20912        .23127E-03   -.85308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27882e-12
Minuit parameter uncertainties:
  1  10.3864
  2  1.05216
  3  0.211071
  4  0.20926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589551': 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) = 6578.42918758
delta logL = 0.787311573008

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.435e+01  1.039e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.007e+00  1.052e+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:  1.233e+00  2.093e-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:  7.732e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.01 +/- 1.05
Photon Flux (Free Index): 1.56e-07 +/- 7.13e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/589551/cmap_HighResolution_319161601_319420801_4FGL_J2256.0-2740_daily_bin308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='2.33e-05', photon_flux_error='9.66e-08', dlogl='7.87e-01', energy_flux='2.43e-05', photon_flux2='1.56e-07', job_status='DONE', time_completed='2021-09-29 02:48:15.322483', photon_index_error2='1.05', photon_index2='4.01', ts='4.43', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.82', time_epoch_completed='1632908895.32', return_code='0', job_id='589551', GAL2='1.23', EG2='0.77', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='7.13e-08', ts2='6.59', photon_index='3.02' WHERE bin_id='308' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:48:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 589551: <4FGL_J2256.0-2740_daily_bin308> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin308> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:39 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35:40 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:35:40 2021
Terminated at Wed Sep 29 02:48:16 2021
Results reported at Wed Sep 29 02:48:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin308 344.025 -27.6739 319161601 319420801 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 :                                   592.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            757 sec.

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

