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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1033
RA = 344.025, Dec = -27.6739
tmin = 507081601, tmax = 507340801
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='592697', job_status='RUN', time_executed='2021-09-29 02:48:14.094025', time_epoch_executed='1632908894.09' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592697/ft1_4FGL_J2256.0-2740_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592697/ft2_4FGL_J2256.0-2740_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592697/ft1_4FGL_J2256.0-2740_daily_bin1033.fits outfile=/scratch/kocevski/592697/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1033.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=507081601.0 tmax=507340801.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.33
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592697/ft1_filtered_4FGL_J2256.0-2740_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/592697/ft2_4FGL_J2256.0-2740_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/592697/ltcube_507081601_507340801_4FGL_J2256.0-2740_daily_bin1033.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/592697/ft2_4FGL_J2256.0-2740_daily_bin1033.fits
.....................!
real 11.94
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592697/ft1_filtered_4FGL_J2256.0-2740_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/592697/ft2_4FGL_J2256.0-2740_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/592697/ltcube_507081601_507340801_4FGL_J2256.0-2740_daily_bin1033.fits outfile=/scratch/kocevski/592697/expmap_507081601_507340801_4FGL_J2256.0-2740_daily_bin1033.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/592697/ltcube_507081601_507340801_4FGL_J2256.0-2740_daily_bin1033.fits
.....................!
real 191.85
user 186.59
sys 4.90

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/592697/ft1_filtered_4FGL_J2256.0-2740_daily_bin1033.fits scfile=/scratch/kocevski/592697/ft2_4FGL_J2256.0-2740_daily_bin1033.fits outfile=/scratch/kocevski/592697/cmap_507081601_507340801_4FGL_J2256.0-2740_daily_bin1033.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592697/ft1_filtered_4FGL_J2256.0-2740_daily_bin1033.fits scfile=/scratch/kocevski/592697/ft2_4FGL_J2256.0-2740_daily_bin1033.fits outfile=/scratch/kocevski/592697/cmap_HighResolution_507081601_507340801_4FGL_J2256.0-2740_daily_bin1033.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/592697/ft1_filtered_4FGL_J2256.0-2740_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/592697/ft2_4FGL_J2256.0-2740_daily_bin1033.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592697/Model_4FGL_J2256.0-2740_daily_bin1033.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/592697/ft1_filtered_4FGL_J2256.0-2740_daily_bin1033.fits.....................!
real 53.88
user 52.46
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.2629       1.0000         .10000E-03   10000.    
     3 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.404       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3535       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8777       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.520       1.0000         .10000E-03   10000.    
    12 'norm      '    .44308       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.864       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1062       1.0000         .10000E-03   10000.    
    16 'norm      '    .17511E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.280       1.0000         .10000E-03   10000.    
    18 'norm      '    .53067       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.565       1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.789       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80944       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=   6929.497     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2365 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0733        .37135E-07** at limit **
   2  Prefactor     4.2627        5.8225        .36149E-06   -.12200E-04
   3  norm          .10000E-03    24.208        .40422E-06** at limit **
   4  Prefactor     40.404        17.878       -.26421E-07   -.63016E-05
   5  Prefactor     .10000E-03    5.6060        .17952E-06** at limit **
   6  norm          2.3529        1.6486        .43777E-07   -.55111E-04
   7  Prefactor     .10000E-03    13.817        .10048E-06** at limit **
   8  Prefactor     .10000E-03    3.4118        .93958E-07** at limit **
   9  norm          3.8775        3.3299        .72164E-07   -.75676E-04
  10  Prefactor     .10000E-03    18.767       -.24007E-06** at limit **
  11  Prefactor     16.522        10.404       -.73039E-06   -.16388E-03
  12  norm          .44255        .71186        .16054E-06    .16466E-03
  13  Prefactor     .10000E-03    30.906        .14261E-06** at limit **
  14  Prefactor     11.865        10.714        .48829E-06   -.14328E-04
  15  Prefactor     2.1083        9.5458        .16144E-05   -.45057E-05
  16  norm          .10000E-03    3.2092        .11226E-06** at limit **
  17  Prefactor     16.286        24.146       -.76258E-07    .70426E-05
  18  norm          .53115        1.8609        .11773E-05   -.43295E-04
  19  Prefactor     10.564        15.852       -.51604E-06   -.45105E-04
  20  Prefactor     32.731        65.089       -.71686E-06   -.48752E-04
  21  Normalizat    .80937        .15392        .88139E-06   -.20958E-03
  22  Prefactor     .90698        .15126       -.13191E-05   -.40384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.26272
  norm       = 0.0001
  Prefactor  = 40.4035
  Prefactor  = 0.0001
  norm       = 2.35286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.87751
  Prefactor  = 0.0001
  Prefactor  = 16.5221
  norm       = 0.442548
  Prefactor  = 0.0001
  Prefactor  = 11.8646
  Prefactor  = 2.10834
  norm       = 0.0001
  Prefactor  = 16.2858
  norm       = 0.531148
  Prefactor  = 10.5639
  Prefactor  = 32.7313
  Normalizat = 0.809372
  Prefactor  = 0.90698
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.497     FROM HESSE     STATUS=OK           348 CALLS     2713 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0753        .14252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2627        5.8209        .19515E-03   -1.5295    
   3  norm          .10000E-03    24.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.404        17.875        .63061E-04   -1.4436    
   5  Prefactor     .10000E-03    5.6509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3529        1.6446        .86494E-04   -1.5401    
   7  Prefactor     .10000E-03    13.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4304        .15016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8775        3.3034        .12789E-03   -1.5314    
  10  Prefactor     .10000E-03    19.135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.522        10.029        .98541E-04   -1.4895    
  12  norm          .44255        .62902        .61153E-03   -1.5575    
  13  Prefactor     .10000E-03    30.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.865        10.717        .58150E-03   -1.5019    
  15  Prefactor     2.1083        8.7723        .28431E-03   -1.5418    
  16  norm          .10000E-03    9.8594        .28916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.286        24.163        .99265E-04   -1.4901    
  18  norm          .53115        1.8607        .20109E-03   -1.5562    
  19  Prefactor     10.564        15.811        .12327E-03   -1.5058    
  20  Prefactor     32.731        65.391        .69978E-04   -1.4563    
  21  Normalizat    .80937        .18032        .23426E-03   -.99722    
  22  Prefactor     .90698        .17510        .22318E-03   -.95898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73481e-10
Minuit parameter uncertainties:
  1  5.51212e-07
  2  5.82167
  3  3.91643e-05
  4  17.8776
  5  2.42653e-06
  6  1.64463
  7  7.69313e-06
  8  1.44129e-06
  9  3.30356
  10  9.86413e-06
  11  10.0301
  12  0.629025
  13  9.23635e-07
  14  10.7191
  15  8.60312
  16  4.43337e-05
  17  24.1772
  18  1.86087
  19  15.817
  20  65.5344
  21  0.18045
  22  0.175206
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.652e+01  1.003e+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:  9.070e-01  1.752e-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.094e-01  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.21
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 6.85e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.35e-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) = 6929.06289878
delta logL = 0.434133569104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6929.06091884
delta logL = 0.436113503011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.356       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0071       1.0000          .0000       10.000    
     3 'Normalizat'    .77856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93777       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6929.061     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      271 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.356        13.804        .11019E-03   -.47151E-03
   2  Index         4.0071        1.8938        .99397E-02   -.50861E-04
   3  Normalizat    .77857        .17724        .23840E-03    .30749E-03
   4  Prefactor     .93777        .17660        .22020E-03    .30874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3563
  Index      = 4.00707
  Normalizat = 0.77857
  Prefactor  = 0.937773
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.061     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.356        11.001        .44075E-05   -1.5034    
   2  Index         4.0071        1.5228        .39759E-03   -.19992    
   3  Normalizat    .77857        .17739        .95361E-05   -1.0087    
   4  Prefactor     .93777        .17607        .44041E-04   -.94833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95264e-10
Minuit parameter uncertainties:
  1  11.0025
  2  1.54842
  3  0.177522
  4  0.176176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592697': 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) = 6929.06091882
delta logL = 0.436113522804

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.136e+01  1.100e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.007e+00  1.548e+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:  9.378e-01  1.762e-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.786e-01  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.66
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 4.01 +/- 1.55
Photon Flux (Free Index): 1.23e-07 +/- 5.24e-08
Energy Flux (Free Index): 1.84e-05 +/- 9.53e-06

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/592697/cmap_HighResolution_507081601_507340801_4FGL_J2256.0-2740_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='1.84e-05', photon_flux_error='6.85e-08', dlogl='4.36e-01', energy_flux='2.23e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2021-09-29 02:58:54.773009', photon_index_error2='1.55', photon_index2='4.01', ts='7.21', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='9.53e-06', EG='0.81', time_epoch_completed='1632909534.77', return_code='0', job_id='592697', GAL2='0.94', EG2='0.78', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='5.24e-08', ts2='8.66', photon_index='3.02' WHERE bin_id='1033' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 592697: <4FGL_J2256.0-2740_daily_bin1033> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1033 344.025 -27.6739 507081601 507340801 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 :                                   606.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            790 sec.

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

