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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1265
RA = 344.025, Dec = -27.6739
tmin = 567216001, tmax = 567475201
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='593999', job_status='RUN', time_executed='2021-09-29 02:52:14.062623', time_epoch_executed='1632909134.06' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593999/ft1_4FGL_J2256.0-2740_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593999/ft2_4FGL_J2256.0-2740_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593999/ft1_4FGL_J2256.0-2740_daily_bin1265.fits outfile=/scratch/kocevski/593999/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1265.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=567216001.0 tmax=567475201.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 2.86
user 2.63
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593999/ft1_filtered_4FGL_J2256.0-2740_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/593999/ft2_4FGL_J2256.0-2740_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/593999/ltcube_567216001_567475201_4FGL_J2256.0-2740_daily_bin1265.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/593999/ft2_4FGL_J2256.0-2740_daily_bin1265.fits
.....................!
real 12.51
user 12.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593999/ft1_filtered_4FGL_J2256.0-2740_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/593999/ft2_4FGL_J2256.0-2740_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/593999/ltcube_567216001_567475201_4FGL_J2256.0-2740_daily_bin1265.fits outfile=/scratch/kocevski/593999/expmap_567216001_567475201_4FGL_J2256.0-2740_daily_bin1265.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/593999/ltcube_567216001_567475201_4FGL_J2256.0-2740_daily_bin1265.fits
.....................!
real 190.56
user 184.78
sys 5.38

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/593999/ft1_filtered_4FGL_J2256.0-2740_daily_bin1265.fits scfile=/scratch/kocevski/593999/ft2_4FGL_J2256.0-2740_daily_bin1265.fits outfile=/scratch/kocevski/593999/cmap_567216001_567475201_4FGL_J2256.0-2740_daily_bin1265.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/593999/ft1_filtered_4FGL_J2256.0-2740_daily_bin1265.fits scfile=/scratch/kocevski/593999/ft2_4FGL_J2256.0-2740_daily_bin1265.fits outfile=/scratch/kocevski/593999/cmap_HighResolution_567216001_567475201_4FGL_J2256.0-2740_daily_bin1265.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.110       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9584       1.0000         .10000E-03   10000.    
     3 'norm      '    10.232       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.062       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8973       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3141       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3881       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4876       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38151E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3621       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5943       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6251       1.0000         .10000E-03   10000.    
    16 'norm      '    9.1144       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.660       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2117       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75930       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=   7364.504     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2335 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.114        17.455        .43590E-06   -.55058E-05
   2  Prefactor     7.9637        9.3325        .12932E-05   -.11107E-03
   3  norm          10.233        13.709        .77550E-07    .29012E-04
   4  Prefactor     26.060        26.267       -.14633E-05   -.18001E-04
   5  Prefactor     5.8984        7.5999        .30610E-06    .48875E-04
   6  norm          1.3136        2.0218       -.15393E-06   -.25255E-03
   7  Prefactor     .10000E-03    59.229       -.24336E-04** at limit **
   8  Prefactor     7.3938        10.409        .21048E-05   -.61460E-04
   9  norm          1.4873        1.8777        .12434E-06    .31075E-03
  10  Prefactor     .10074E-03    5.0449       -.10297E-05** at limit **
  11  Prefactor     7.3611        10.188       -.72610E-06    .35531E-03
  12  norm          1.5941        .73114        .22148E-06    .12080E-02
  13  Prefactor     .10000E-03    14.072       -.57111E-06** at limit **
  14  Prefactor     .10000E-03    6.9096        .94962E-06** at limit **
  15  Prefactor     4.6248        6.2663       -.50563E-05    .34845E-04
  16  norm          9.1168        8.3022       -.31455E-06   -.12295E-03
  17  Prefactor     36.667        48.313        .95061E-05   -.53728E-05
  18  norm          .10000E-03    .53210       -.97767E-07** at limit **
  19  Prefactor     .10000E-03    12.406        .42592E-06** at limit **
  20  Prefactor     .10000E-03    44.681        .27217E-04** at limit **
  21  Normalizat    1.2112        .16950       -.84627E-06    .21910E-03
  22  Prefactor     .75975        .15189       -.15455E-06    .55084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.1145
  Prefactor  = 7.96367
  norm       = 10.233
  Prefactor  = 26.06
  Prefactor  = 5.89836
  norm       = 1.31359
  Prefactor  = 0.000100001
  Prefactor  = 7.39384
  norm       = 1.4873
  Prefactor  = 0.000100736
  Prefactor  = 7.36105
  norm       = 1.59413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.62483
  norm       = 9.11681
  Prefactor  = 36.6674
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21118
  Prefactor  = 0.759747
 **********
 **   18 **HESSE 
 **********

 FCN=   7364.504     FROM HESSE     STATUS=OK           350 CALLS     2685 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.114        17.482        .10304E-03   -1.4930    
   2  Prefactor     7.9637        9.3307        .14213E-03   -1.5143    
   3  norm          10.233        13.690        .12526E-03   -1.5068    
   4  Prefactor     26.060        26.324        .78470E-04   -1.4687    
   5  Prefactor     5.8984        7.5941        .16536E-03   -1.5222    
   6  norm          1.3136        1.9883        .14341E-03   -1.5479    
   7  Prefactor     .10000E-03    58.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3938        10.411        .14756E-03   -1.5164    
   9  norm          1.4873        1.8586        .12668E-03   -1.5464    
  10  Prefactor     .10074E-03    39.113        .35203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3611        10.093        .14782E-03   -1.5165    
  12  norm          1.5941        .74436        .39182E-04   -1.5455    
  13  Prefactor     .10000E-03    14.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6248        6.2469        .18715E-03   -1.5278    
  16  norm          9.1168        8.3008        .13276E-03   -1.5104    
  17  Prefactor     36.667        48.647        .66192E-04   -1.4496    
  18  norm          .10000E-03    .53492        .61122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2112        .20395        .22624E-03   -.86258    
  22  Prefactor     .75975        .18011        .26795E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80247e-08
Minuit parameter uncertainties:
  1  17.4877
  2  9.33238
  3  13.694
  4  26.3359
  5  7.59535
  6  1.98841
  7  0.000437488
  8  10.4135
  9  1.85863
  10  0.010738
  11  10.0952
  12  0.74436
  13  9.64466e-07
  14  5.32353e-06
  15  6.24779
  16  8.30182
  17  48.6998
  18  7.4072e-07
  19  1.01809e-05
  20  2.10344e-05
  21  0.204079
  22  0.180252
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.361e+00  1.010e+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:  7.597e-01  1.803e-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:  1.211e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/593999/likelihoodResults_567216001_567475201_4FGL_J2256.0-2740_daily_bin1265.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) = 7363.48521573
delta logL = 1.018689257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7363.48353265
delta logL = 1.02037233508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3144       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1563       1.0000          .0000       10.000    
     3 'Normalizat'    1.1589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79652       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7363.484     FROM MIGRAD    STATUS=FAILED        84 CALLS      278 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3141        8.9582        .10741E-03   -.10785E-03
   2  Index         5.1564        2.6713        .12453E-01    .26024E-03
   3  Normalizat    1.1589        .19130        .23031E-03   -.25792E-03
   4  Prefactor     .79651        .17980        .26243E-03   -.17926E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7363.484     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      353 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3141        8.9582        .14128E-03   -1.5293    
   2  Index         5.1564        2.6713        .16917E-02    .31293E-01
   3  Normalizat    1.1589        .19130        .13837E-03   -.87882    
   4  Prefactor     .79651        .17980        .21769E-03   -.99857    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7363.484     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      388 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3141        6.5068        .42965E-05   -.69326E-04
   2  Index         5.1564        1.9887        .24906E-02    .83077E-06
   3  Normalizat    1.1589        .19120        .46063E-04   -.57507E-04
   4  Prefactor     .79651        .17999        .10497E-04   -.39639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31406
  Index      = 5.15645
  Normalizat = 1.15892
  Prefactor  = 0.796506
 **********
 **   18 **HESSE 
 **********

 FCN=   7363.484     FROM HESSE     STATUS=OK            23 CALLS      411 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3141        6.2033        .85929E-06   -1.5293    
   2  Index         5.1564        1.9007        .99623E-04    .31294E-01
   3  Normalizat    1.1589        .19132        .92125E-05   -.87882    
   4  Prefactor     .79651        .18018        .20994E-05   -.99857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40065e-12
Minuit parameter uncertainties:
  1  6.20424
  2  1.94981
  3  0.19144
  4  0.180308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593999': 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) = 7363.48353265
delta logL = 1.02037234227

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.314e+00  6.204e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  5.156e+00  1.950e+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:  7.965e-01  1.803e-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:  1.159e+00  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 5.16 +/- 1.95
Photon Flux (Free Index): 9.22e-08 +/- 6.00e-08
Energy Flux (Free Index): 1.21e-05 +/- 8.25e-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/593999/cmap_HighResolution_567216001_567475201_4FGL_J2256.0-2740_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='1.02e+00', photon_flux2='9.22e-08', job_status='DONE', time_completed='2021-09-29 03:05:28.662117', photon_index_error2='1.95', photon_index2='5.16', ts='0.99', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='8.25e-06', EG='1.21', time_epoch_completed='1632909928.66', return_code='0', job_id='593999', GAL2='0.80', EG2='1.16', return_code2='0', photon_flux_error2='6.00e-08', ts2='3.25', photon_index='3.02' WHERE bin_id='1265' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:05:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 593999: <4FGL_J2256.0-2740_daily_bin1265> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1265> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:24 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:26 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:50:26 2021
Terminated at Wed Sep 29 03:05:29 2021
Results reported at Wed Sep 29 03:05:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1265 344.025 -27.6739 567216001 567475201 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 :                                   688.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

