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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin608
RA = 344.025, Dec = -27.6739
tmin = 396921601, tmax = 397180801
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='591042', job_status='RUN', time_executed='2021-09-29 02:42:39.768358', time_epoch_executed='1632908559.77' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591042

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591042/ft1_4FGL_J2256.0-2740_daily_bin608.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591042/ft2_4FGL_J2256.0-2740_daily_bin608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591042/ft1_4FGL_J2256.0-2740_daily_bin608.fits outfile=/scratch/kocevski/591042/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin608.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=396921601.0 tmax=397180801.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.60
user 4.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591042/ft1_filtered_4FGL_J2256.0-2740_daily_bin608.fits" evtable="EVENTS" scfile=/scratch/kocevski/591042/ft2_4FGL_J2256.0-2740_daily_bin608.fits sctable="SC_DATA" outfile=/scratch/kocevski/591042/ltcube_396921601_397180801_4FGL_J2256.0-2740_daily_bin608.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/591042/ft2_4FGL_J2256.0-2740_daily_bin608.fits
.....................!
real 12.14
user 11.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591042/ft1_filtered_4FGL_J2256.0-2740_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/591042/ft2_4FGL_J2256.0-2740_daily_bin608.fits sctable="SC_DATA" expcube=/scratch/kocevski/591042/ltcube_396921601_397180801_4FGL_J2256.0-2740_daily_bin608.fits outfile=/scratch/kocevski/591042/expmap_396921601_397180801_4FGL_J2256.0-2740_daily_bin608.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/591042/ltcube_396921601_397180801_4FGL_J2256.0-2740_daily_bin608.fits
.....................!
real 193.17
user 187.79
sys 5.01

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/591042/ft1_filtered_4FGL_J2256.0-2740_daily_bin608.fits scfile=/scratch/kocevski/591042/ft2_4FGL_J2256.0-2740_daily_bin608.fits outfile=/scratch/kocevski/591042/cmap_396921601_397180801_4FGL_J2256.0-2740_daily_bin608.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/591042/ft1_filtered_4FGL_J2256.0-2740_daily_bin608.fits scfile=/scratch/kocevski/591042/ft2_4FGL_J2256.0-2740_daily_bin608.fits outfile=/scratch/kocevski/591042/cmap_HighResolution_396921601_397180801_4FGL_J2256.0-2740_daily_bin608.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591042/ft1_filtered_4FGL_J2256.0-2740_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/591042/ft2_4FGL_J2256.0-2740_daily_bin608.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591042/Model_4FGL_J2256.0-2740_daily_bin608.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/591042/ft1_filtered_4FGL_J2256.0-2740_daily_bin608.fits.....................!
real 55.35
user 53.97
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.863       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12308E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.570       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6092       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20044E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10430E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    78.894       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9844       1.0000         .10000E-03   10000.    
     9 'norm      '    7.4845       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0732       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12825E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2926       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.127       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8575       1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.614       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.256       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87791       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90693       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=   7479.611     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2466 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.864        11.321        .61432E-07   -.43680E-04
   2  Prefactor     .10000E-03    4.5785        .11965E-06** at limit **
   3  norm          15.571        11.837       -.13338E-06   -.10993E-03
   4  Prefactor     4.6110        10.273        .33215E-06   -.35209E-05
   5  Prefactor     .10001E-03    4.8032        .54511E-06** at limit **
   6  norm          .10000E-03    1.3483        .10985E-05** at limit **
   7  Prefactor     78.950        35.455        .60085E-07   -.30798E-03
   8  Prefactor     5.9856        8.3420        .75389E-06    .48991E-04
   9  norm          7.4843        3.2313       -.77230E-07   -.50316E-03
  10  Prefactor     6.0740        6.7254       -.40045E-06   -.20689E-03
  11  Prefactor     .10000E-03    6.3866        .32675E-06** at limit **
  12  norm          .10000E-03    .24110        .48693E-07** at limit **
  13  Prefactor     .10001E-03    168.08        .43846E-05** at limit **
  14  Prefactor     5.2930        5.2561       -.59739E-07   -.25967E-04
  15  Prefactor     12.127        8.1511       -.60555E-09   -.26882E-03
  16  norm          2.8596        7.7431        .71813E-06   -.55423E-05
  17  Prefactor     58.605        34.225       -.11924E-06   -.60574E-04
  18  norm          1.3019        2.1136        .42555E-06    .14151E-03
  19  Prefactor     .10000E-03    57.270       -.43560E-06** at limit **
  20  Prefactor     14.273        40.833        .44469E-05    .99383E-04
  21  Normalizat    .87788        .15073       -.12597E-05   -.38266E-03
  22  Prefactor     .90695        .14255        .18259E-06   -.43266E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8636
  Prefactor  = 0.000100001
  norm       = 15.5705
  Prefactor  = 4.61101
  Prefactor  = 0.000100006
  norm       = 0.000100001
  Prefactor  = 78.9499
  Prefactor  = 5.98561
  norm       = 7.48434
  Prefactor  = 6.074
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 5.29296
  Prefactor  = 12.1274
  norm       = 2.85956
  Prefactor  = 58.6046
  norm       = 1.30191
  Prefactor  = 0.0001
  Prefactor  = 14.2732
  Normalizat = 0.877882
  Prefactor  = 0.906945
 **********
 **   18 **HESSE 
 **********

 FCN=   7479.611     FROM HESSE     STATUS=OK           346 CALLS     2812 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.864        11.320        .11169E-03   -1.4990    
   2  Prefactor     .10000E-03    20.837        .35118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.571        11.839        .10150E-03   -1.4919    
   4  Prefactor     4.6110        10.211        .18748E-03   -1.5278    
   5  Prefactor     .10001E-03    25.236        .35749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7827        .15857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     78.950        35.745        .45213E-04   -1.3929    
   8  Prefactor     5.9856        8.3896        .16414E-03   -1.5219    
   9  norm          7.4843        3.2191        .97193E-04   -1.5161    
  10  Prefactor     6.0740        6.6935        .81460E-03   -1.5215    
  11  Prefactor     .10000E-03    6.5525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .64321        .78280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    172.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2930        5.2615        .17471E-03   -1.5248    
  15  Prefactor     12.127        7.8995        .11503E-03   -1.5011    
  16  norm          2.8596        7.7524        .24050E-03   -1.5370    
  17  Prefactor     58.605        34.289        .52403E-04   -1.4175    
  18  norm          1.3019        2.1093        .15473E-03   -1.5480    
  19  Prefactor     .10000E-03    59.167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.273        41.801        .10608E-03   -1.4952    
  21  Normalizat    .87788        .17547        .23251E-03   -.97242    
  22  Prefactor     .90695        .16849        .22920E-03   -.95899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45932e-09
Minuit parameter uncertainties:
  1  11.3217
  2  0.00027759
  3  11.8409
  4  10.2153
  5  0.000794701
  6  9.5606e-05
  7  35.7543
  8  8.39129
  9  3.21916
  10  6.69428
  11  2.83188e-05
  12  3.19272e-06
  13  0.00189155
  14  5.26198
  15  7.90022
  16  7.7551
  17  34.301
  18  2.10943
  19  0.000114815
  20  41.8871
  21  0.175584
  22  0.16859
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.832e-05  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.069e-01  1.686e-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.779e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591042/likelihoodResults_396921601_397180801_4FGL_J2256.0-2740_daily_bin608.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) = 7479.6121856
delta logL = -0.000728751548195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7479.61145694
delta logL = -9.48302840698e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0227       1.0000          .0000       10.000    
     3 'Normalizat'    .87793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90693       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=   7479.611     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    118.65        .90712E-02** at limit **
   2  Index         3.0226        5.0761        .50000        .77944E-07
   3  Normalizat    .87788        .15377E-01    .44619E-01    .50006E-03
   4  Prefactor     .90695        .15464E-01    .45093E-01    .43595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 3.02258
  Normalizat = 0.877883
  Prefactor  = 0.906946
 **********
 **   18 **HESSE 
 **********

 FCN=   7479.611     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    65.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0226        6.4194        .50000       -.40659    
   3  Normalizat    .87788        .16509        .23251E-03   -.97242    
   4  Prefactor     .90695        .16612        .22920E-03   -.95899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68762e-09
Minuit parameter uncertainties:
  1  0.00115071
  2  439.416
  3  0.165185
  4  0.166209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591042': 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) = 7479.61145685
delta logL = -4.01996658184e-10

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.151e-03  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  4.394e+02  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.069e-01  1.662e-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.779e-01  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

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/591042/cmap_HighResolution_396921601_397180801_4FGL_J2256.0-2740_daily_bin608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-29 02:54:32.263232', job_id='591042', GAL2='0.91', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632909272.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-4.02e-10', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='608' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 591042: <4FGL_J2256.0-2740_daily_bin608> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin608> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:43 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:44 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:44 2021
Terminated at Wed Sep 29 02:54:33 2021
Results reported at Wed Sep 29 02:54:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin608 344.025 -27.6739 396921601 397180801 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 :                                   709.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

