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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1138
RA = 344.025, Dec = -27.6739
tmin = 534297601, tmax = 534556801
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='592842', job_status='RUN', time_executed='2021-09-29 02:46:17.729544', time_epoch_executed='1632908777.73' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592842/ft1_4FGL_J2256.0-2740_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592842/ft2_4FGL_J2256.0-2740_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592842/ft1_4FGL_J2256.0-2740_daily_bin1138.fits outfile=/scratch/kocevski/592842/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1138.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=534297601.0 tmax=534556801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592842/ft1_filtered_4FGL_J2256.0-2740_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/592842/ft2_4FGL_J2256.0-2740_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/592842/ltcube_534297601_534556801_4FGL_J2256.0-2740_daily_bin1138.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/592842/ft2_4FGL_J2256.0-2740_daily_bin1138.fits
.....................!
real 11.95
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592842/ft1_filtered_4FGL_J2256.0-2740_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/592842/ft2_4FGL_J2256.0-2740_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/592842/ltcube_534297601_534556801_4FGL_J2256.0-2740_daily_bin1138.fits outfile=/scratch/kocevski/592842/expmap_534297601_534556801_4FGL_J2256.0-2740_daily_bin1138.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/592842/ltcube_534297601_534556801_4FGL_J2256.0-2740_daily_bin1138.fits
.....................!
real 192.34
user 186.49
sys 4.18

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/592842/ft1_filtered_4FGL_J2256.0-2740_daily_bin1138.fits scfile=/scratch/kocevski/592842/ft2_4FGL_J2256.0-2740_daily_bin1138.fits outfile=/scratch/kocevski/592842/cmap_534297601_534556801_4FGL_J2256.0-2740_daily_bin1138.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592842/ft1_filtered_4FGL_J2256.0-2740_daily_bin1138.fits scfile=/scratch/kocevski/592842/ft2_4FGL_J2256.0-2740_daily_bin1138.fits outfile=/scratch/kocevski/592842/cmap_HighResolution_534297601_534556801_4FGL_J2256.0-2740_daily_bin1138.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592842/ft1_filtered_4FGL_J2256.0-2740_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/592842/ft2_4FGL_J2256.0-2740_daily_bin1138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592842/Model_4FGL_J2256.0-2740_daily_bin1138.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/592842/ft1_filtered_4FGL_J2256.0-2740_daily_bin1138.fits.....................!
real 60.19
user 58.33
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6798       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.604       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.182       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7043       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11822E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2409       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.179       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1068       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.528       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.097       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0842       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.529       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .74215       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1287       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=   7944.680     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2355 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6799        12.856        .34424E-05   -.24097E-04
   2  Prefactor     .10000E-03    1.5000       -.59944E-08** at limit **
   3  norm          6.8360        12.700        .33612E-07   -.19727E-04
   4  Prefactor     16.604        12.887        .45473E-07    .10207E-04
   5  Prefactor     17.180        11.221       -.95197E-07   -.14551E-03
   6  norm          1.7037        1.5434       -.53005E-07    .26483E-04
   7  Prefactor     .10000E-03    87.247       -.20756E-05** at limit **
   8  Prefactor     2.2410        7.1405        .10102E-05   -.93658E-04
   9  norm          .10000E-03    2.2305       -.19733E-06** at limit **
  10  Prefactor     .10000E-03    4.7001       -.90001E-07** at limit **
  11  Prefactor     19.177        11.348       -.12908E-06   -.48147E-04
  12  norm          2.1069        .89873        .37334E-07   -.78772E-05
  13  Prefactor     29.267        36.894        .13084E-06    .12793E-05
  14  Prefactor     17.528        14.843        .16688E-06    .10787E-04
  15  Prefactor     10.097        8.2382        .76929E-07    .71289E-04
  16  norm          3.3289        4.2396        .23750E-06    .10255E-04
  17  Prefactor     .10000E-03    71.607        .77069E-06** at limit **
  18  norm          2.0843        1.8813        .12062E-06   -.91522E-05
  19  Prefactor     .10000E-03    14.484        .31542E-06** at limit **
  20  Prefactor     17.561        66.902        .19978E-05    .54223E-04
  21  Normalizat    .74210        .16003       -.41429E-06   -.29977E-04
  22  Prefactor     1.1288        .15544       -.31809E-06   -.23386E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.67994
  Prefactor  = 0.0001
  norm       = 6.83605
  Prefactor  = 16.6041
  Prefactor  = 17.1804
  norm       = 1.70373
  Prefactor  = 0.0001
  Prefactor  = 2.24098
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1771
  norm       = 2.1069
  Prefactor  = 29.2669
  Prefactor  = 17.5281
  Prefactor  = 10.0969
  norm       = 3.32891
  Prefactor  = 0.0001
  norm       = 2.0843
  Prefactor  = 0.0001
  Prefactor  = 17.5614
  Normalizat = 0.742097
  Prefactor  = 1.12875
 **********
 **   18 **HESSE 
 **********

 FCN=   7944.680     FROM HESSE     STATUS=OK           350 CALLS     2705 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6799        12.876        .72352E-03   -1.5154    
   2  Prefactor     .10000E-03    1.5036        .10660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8360        12.686        .15345E-03   -1.5185    
   4  Prefactor     16.604        12.890        .98291E-04   -1.4893    
   5  Prefactor     17.180        11.208        .96623E-04   -1.4879    
   6  norm          1.7037        1.5331        .10130E-03   -1.5447    
   7  Prefactor     .10000E-03    87.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2410        7.1292        .27455E-03   -1.5409    
   9  norm          .10000E-03    2.2568        .12955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.177        11.724        .91456E-04   -1.4832    
  12  norm          2.1069        .92425        .40339E-04   -1.5418    
  13  Prefactor     29.267        36.906        .74060E-04   -1.4625    
  14  Prefactor     17.528        14.844        .95666E-04   -1.4870    
  15  Prefactor     10.097        8.2158        .12610E-03   -1.5072    
  16  norm          3.3289        4.2304        .20110E-03   -1.5343    
  17  Prefactor     .10000E-03    72.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0843        1.8705        .11235E-03   -1.5419    
  19  Prefactor     .10000E-03    14.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.561        66.859        .95664E-04   -1.4870    
  21  Normalizat    .74210        .18473        .26817E-03   -1.0225    
  22  Prefactor     1.1288        .17963        .22601E-03   -.88553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20699e-10
Minuit parameter uncertainties:
  1  12.8802
  2  9.50122e-07
  3  12.6914
  4  12.8918
  5  11.209
  6  1.53315
  7  0.00023151
  8  7.13191
  9  2.7528e-06
  10  2.95143e-06
  11  11.7257
  12  0.924259
  13  36.9346
  14  14.847
  15  8.21676
  16  4.23076
  17  0.000335254
  18  1.87055
  19  1.75335e-06
  20  67.1468
  21  0.184881
  22  0.179723
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.918e+01  1.173e+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.129e+00  1.797e-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.421e-01  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 8.01e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.58e-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) = 7944.33648629
delta logL = 0.343237062024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7944.33559022
delta logL = 0.344133139929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.426       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5778       1.0000          .0000       10.000    
     3 'Normalizat'    .71896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1487       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=   7944.336     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      269 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.430        116.59        .24705E-02    .19941E-03
   2  Index         3.5775        6.7502        .21059        .61921E-04
   3  Normalizat    .71925        .80016E-01    .61529E-01    .70534E-04
   4  Prefactor     1.1484        .88066E-01    .35974E-01    .14652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4297
  Index      = 3.57745
  Normalizat = 0.719254
  Prefactor  = 1.14841
 **********
 **   18 **HESSE 
 **********

 FCN=   7944.336     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.430        9.6048        .98821E-04   -1.4897    
   2  Index         3.5775        .82284        .95258E-02   -.28849    
   3  Normalizat    .71925        .18013        .27217E-03   -1.0314    
   4  Prefactor     1.1484        .17987        .22443E-03   -.87934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15875e-11
Minuit parameter uncertainties:
  1  9.60566
  2  0.82694
  3  0.180282
  4  0.179961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592842': 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) = 7944.33558863
delta logL = 0.344134726525

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.643e+01  9.606e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.577e+00  8.269e-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:  1.148e+00  1.800e-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.193e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.71
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.58 +/- 0.83
Photon Flux (Free Index): 1.43e-07 +/- 6.05e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/592842/cmap_HighResolution_534297601_534556801_4FGL_J2256.0-2740_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='2.33e-05', photon_flux_error='8.01e-08', dlogl='3.44e-01', energy_flux='2.59e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-29 02:57:10.723397', photon_index_error2='0.83', photon_index2='3.58', ts='6.20', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.74', time_epoch_completed='1632909430.72', return_code='0', job_id='592842', GAL2='1.15', EG2='0.72', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='6.05e-08', ts2='7.71', photon_index='3.02' WHERE bin_id='1138' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 592842: <4FGL_J2256.0-2740_daily_bin1138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1138 344.025 -27.6739 534297601 534556801 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 :                                   646.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            674 sec.

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

