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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin930
RA = 344.025, Dec = -27.6739
tmin = 480384001, tmax = 480643201
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='592541', job_status='RUN', time_executed='2021-09-29 02:47:36.105144', time_epoch_executed='1632908856.11' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592541

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592541/ft1_4FGL_J2256.0-2740_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592541/ft2_4FGL_J2256.0-2740_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592541/ft1_4FGL_J2256.0-2740_daily_bin930.fits outfile=/scratch/kocevski/592541/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin930.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=480384001.0 tmax=480643201.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.50
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592541/ft1_filtered_4FGL_J2256.0-2740_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/592541/ft2_4FGL_J2256.0-2740_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/592541/ltcube_480384001_480643201_4FGL_J2256.0-2740_daily_bin930.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/592541/ft2_4FGL_J2256.0-2740_daily_bin930.fits
.....................!
real 12.93
user 12.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592541/ft1_filtered_4FGL_J2256.0-2740_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/592541/ft2_4FGL_J2256.0-2740_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/592541/ltcube_480384001_480643201_4FGL_J2256.0-2740_daily_bin930.fits outfile=/scratch/kocevski/592541/expmap_480384001_480643201_4FGL_J2256.0-2740_daily_bin930.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/592541/ltcube_480384001_480643201_4FGL_J2256.0-2740_daily_bin930.fits
.....................!
real 189.76
user 185.48
sys 3.96

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/592541/ft1_filtered_4FGL_J2256.0-2740_daily_bin930.fits scfile=/scratch/kocevski/592541/ft2_4FGL_J2256.0-2740_daily_bin930.fits outfile=/scratch/kocevski/592541/cmap_480384001_480643201_4FGL_J2256.0-2740_daily_bin930.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.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592541/ft1_filtered_4FGL_J2256.0-2740_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/592541/ft2_4FGL_J2256.0-2740_daily_bin930.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592541/Model_4FGL_J2256.0-2740_daily_bin930.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/592541/ft1_filtered_4FGL_J2256.0-2740_daily_bin930.fits.....................!
real 44.18
user 42.91
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4533       1.0000         .10000E-03   10000.    
     3 'norm      '    40.412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3717       1.0000         .10000E-03   10000.    
     6 'norm      '    .11651E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8282       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .32791       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.806       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13969E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .65193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.371       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.333       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1175       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.3685       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98789       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .79325       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=   5391.996     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2453 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1824       -.34239E-07** at limit **
   2  Prefactor     2.4508        7.9696       -.15310E-06   -.23222E-03
   3  norm          40.418        21.574        .11044E-05    .54029E-03
   4  Prefactor     .10001E-03    33.972        .39245E-05** at limit **
   5  Prefactor     7.3723        9.1514        .50782E-06    .24288E-03
   6  norm          .10000E-03    1.8345        .62200E-08** at limit **
   7  Prefactor     1.6563        271.25       -.29195E-05    .99409E-05
   8  Prefactor     .10000E-03    6.7968        .40983E-07** at limit **
   9  norm          .34075        3.0737        .51876E-06    .21782E-03
  10  Prefactor     18.805        18.194       -.53585E-06    .37040E-03
  11  Prefactor     .10046E-03    8.1701       -.17166E-05** at limit **
  12  norm          .65199        .71326       -.39702E-07    .17727E-02
  13  Prefactor     .10000E-03    66.277        .10559E-05** at limit **
  14  Prefactor     14.370        14.860        .14891E-06    .15441E-04
  15  Prefactor     15.336        9.9278        .33776E-07    .34207E-03
  16  norm          1.1169        6.4335        .22253E-05   -.22564E-04
  17  Prefactor     .10000E-03    11.856        .39986E-08** at limit **
  18  norm          2.3685        2.4088        .76667E-07    .18353E-04
  19  Prefactor     .10000E-03    10.601       -.13545E-06** at limit **
  20  Prefactor     .10001E-03    46.965       -.29852E-05** at limit **
  21  Normalizat    .98829        .17401       -.15384E-08    .99113E-04
  22  Prefactor     .79293        .16677       -.67937E-06    .41715E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.45084
  norm       = 40.418
  Prefactor  = 0.000100012
  Prefactor  = 7.37233
  norm       = 0.0001
  Prefactor  = 1.65626
  Prefactor  = 0.0001
  norm       = 0.340747
  Prefactor  = 18.805
  Prefactor  = 0.000100459
  norm       = 0.651985
  Prefactor  = 0.000100001
  Prefactor  = 14.3701
  Prefactor  = 15.3359
  norm       = 1.11691
  Prefactor  = 0.0001
  norm       = 2.36851
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Normalizat = 0.988286
  Prefactor  = 0.792934
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1897        .16326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4508        8.4123        .26115E-03   -1.5395    
   3  norm          40.418        22.047        .63055E-04   -1.4436    
   4  Prefactor     .10001E-03    36.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3723        9.1283        .14772E-03   -1.5165    
   6  norm          .10000E-03    1.8514        .19086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6563        256.24        .30871E-03   -1.5451    
   8  Prefactor     .10000E-03    6.8633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .34075        12.057        .21061E-02   -1.5591    
  10  Prefactor     18.805        18.489        .92358E-04   -1.4840    
  11  Prefactor     .10046E-03    42.051        .27531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .65199        .65734        .49199E-03   -1.5546    
  13  Prefactor     .10000E-03    66.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.370        14.864        .10566E-03   -1.4950    
  15  Prefactor     15.336        9.8257        .10229E-03   -1.4925    
  16  norm          1.1169        7.5329        .38705E-03   -1.5497    
  17  Prefactor     .10000E-03    11.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.3685        2.4009        .11136E-03   -1.5400    
  19  Prefactor     .10000E-03    10.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    47.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .98829        .20788        .21877E-03   -.93424    
  22  Prefactor     .79293        .19828        .23951E-03   -.99989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1908e-08
Minuit parameter uncertainties:
  1  4.97544e-06
  2  8.41638
  3  22.051
  4  0.00131093
  5  9.12998
  6  7.49985e-06
  7  41.3825
  8  1.24283e-05
  9  4.05414
  10  18.4946
  11  0.0087903
  12  0.657343
  13  0.000463419
  14  14.8674
  15  9.8267
  16  5.80204
  17  1.42011e-06
  18  2.40096
  19  2.36563e-05
  20  0.00111654
  21  0.208049
  22  0.198454
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.005e-04  8.790e-03  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.929e-01  1.985e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.883e-01  2.080e-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: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592541/likelihoodResults_480384001_480643201_4FGL_J2256.0-2740_daily_bin930.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): 0
logL (Free Index) = 5391.99568075
delta logL = -0.000113568164124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5391.99568043
delta logL = -0.00011324494335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96142E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0224       1.0000          .0000       10.000    
     3 'Normalizat'    .98811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79310       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=   5391.405     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      252 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6830        3.3340        .90734E-02    .30503E-03
   2  Index         1.7544        .34803        .18736       -.96801E-04
   3  Normalizat    .98681        .16425        .46018E-01    .36641E-04
   4  Prefactor     .78685        .16351        .43627E-01    .24234E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68297
  Index      = 1.75443
  Normalizat = 0.986813
  Prefactor  = 0.786847
 **********
 **   18 **HESSE 
 **********

 FCN=   5391.405     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6830        4.7094        .14431E-03   -1.5380    
   2  Index         1.7544        .62749        .65270E-02   -.70642    
   3  Normalizat    .98681        .19541        .21873E-03   -.93474    
   4  Prefactor     .78685        .19428        .23994E-03   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67353e-12
Minuit parameter uncertainties:
  1  4.71008
  2  0.63037
  3  0.195556
  4  0.194451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592541': 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) = 5391.40491054
delta logL = 0.590656645007

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.683e+00  4.710e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.754e+00  6.304e-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.868e-01  1.945e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.868e-01  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 1.75 +/- 0.63
Photon Flux (Free Index): 1.62e-08 +/- 2.56e-08
Energy Flux (Free Index): 2.23e-05 +/- 3.49e-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/592541/cmap_HighResolution_480384001_480643201_4FGL_J2256.0-2740_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-03', comment='SUCCESS', energy_flux2='2.23e-05', dlogl='5.91e-01', photon_flux2='1.62e-08', job_status='DONE', time_completed='2021-09-29 02:57:49.552022', photon_index_error2='0.63', photon_index2='1.75', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='3.49e-05', EG='0.99', time_epoch_completed='1632909469.55', return_code='0', job_id='592541', GAL2='0.79', EG2='0.99', return_code2='0', photon_flux_error2='2.56e-08', ts2='1.18', photon_index='3.02' WHERE bin_id='930' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 592541: <4FGL_J2256.0-2740_daily_bin930> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin930> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:34 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:35 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:35 2021
Terminated at Wed Sep 29 02:57:50 2021
Results reported at Wed Sep 29 02:57:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin930 344.025 -27.6739 480384001 480643201 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 :                                   605.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

