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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin783
RA = 344.025, Dec = -27.6739
tmin = 442281601, tmax = 442540801
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='592321', job_status='RUN', time_executed='2021-09-29 02:48:18.026656', time_epoch_executed='1632908898.03' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592321

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592321/ft1_4FGL_J2256.0-2740_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592321/ft2_4FGL_J2256.0-2740_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592321/ft1_4FGL_J2256.0-2740_daily_bin783.fits outfile=/scratch/kocevski/592321/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin783.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=442281601.0 tmax=442540801.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.49
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592321/ft1_filtered_4FGL_J2256.0-2740_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/592321/ft2_4FGL_J2256.0-2740_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/592321/ltcube_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.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/592321/ft2_4FGL_J2256.0-2740_daily_bin783.fits
.....................!
real 12.22
user 11.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592321/ft1_filtered_4FGL_J2256.0-2740_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/592321/ft2_4FGL_J2256.0-2740_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/592321/ltcube_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.fits outfile=/scratch/kocevski/592321/expmap_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.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/592321/ltcube_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.fits
.....................!
real 192.11
user 186.86
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/592321/ft1_filtered_4FGL_J2256.0-2740_daily_bin783.fits scfile=/scratch/kocevski/592321/ft2_4FGL_J2256.0-2740_daily_bin783.fits outfile=/scratch/kocevski/592321/cmap_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592321/ft1_filtered_4FGL_J2256.0-2740_daily_bin783.fits scfile=/scratch/kocevski/592321/ft2_4FGL_J2256.0-2740_daily_bin783.fits outfile=/scratch/kocevski/592321/cmap_HighResolution_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.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/592321/ft1_filtered_4FGL_J2256.0-2740_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/592321/ft2_4FGL_J2256.0-2740_daily_bin783.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592321/Model_4FGL_J2256.0-2740_daily_bin783.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/592321/ft1_filtered_4FGL_J2256.0-2740_daily_bin783.fits.....................!
real 52.12
user 50.81
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/592321/ft1_filtered_4FGL_J2256.0-2740_daily_bin783.fits', '/scratch/kocevski/592321/ft2_4FGL_J2256.0-2740_daily_bin783.fits', expMap='/scratch/kocevski/592321/expmap_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.fits', expCube='/scratch/kocevski/592321/ltcube_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/592321/Model_4FGL_J2256.0-2740_daily_bin783.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/592321/ft1_filtered_4FGL_J2256.0-2740_daily_bin783.fits
Spacecraft file(s): /scratch/kocevski/592321/ft2_4FGL_J2256.0-2740_daily_bin783.fits
Exposure map: /scratch/kocevski/592321/expmap_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.fits
Exposure cube: /scratch/kocevski/592321/ltcube_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/592321/Model_4FGL_J2256.0-2740_daily_bin783.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6566.68022647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.650       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    29.183       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.925       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.286       1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7335       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .71605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .20147       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.651       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.495       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95903       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85942       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=   6566.644     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2087 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.650        13.475        .30622E-07   -.50649E-05
   2  Prefactor     .10000E-03    2.4458        .49181E-07** at limit **
   3  norm          29.184        19.096        .46956E-07   -.26841E-04
   4  Prefactor     22.927        15.952       -.12088E-07    .48000E-05
   5  Prefactor     16.289        12.519        .25473E-06   -.11229E-03
   6  norm          .10000E-03    1.2027        .60980E-07** at limit **
   7  Prefactor     .10000E-03    35.078        .38100E-06** at limit **
   8  Prefactor     5.7375        10.215        .25511E-06    .10724E-04
   9  norm          2.5788        3.1120       -.52391E-06   -.67446E-04
  10  Prefactor     .72134        14.564        .74486E-05   -.11085E-03
  11  Prefactor     .10000E-03    4.2089       -.13176E-05** at limit **
  12  norm          .10000E-03    .13659       -.31612E-06** at limit **
  13  Prefactor     .10000E-03    32.296       -.28443E-06** at limit **
  14  Prefactor     .10000E-03    14.432        .22203E-06** at limit **
  15  Prefactor     .10000E-03    2.9150       -.65763E-07** at limit **
  16  norm          .10000E-03    1.2581        .12992E-07** at limit **
  17  Prefactor     .10000E-03    9.4959        .14743E-07** at limit **
  18  norm          .19127        1.2201        .97764E-07   -.12272E-03
  19  Prefactor     26.634        23.699       -.18040E-06    .50503E-04
  20  Prefactor     11.401        54.718       -.12611E-05   -.43985E-04
  21  Normalizat    .95874        .15556       -.10049E-06    .85656E-04
  22  Prefactor     .85971        .14972       -.24184E-06    .70566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6499
  Prefactor  = 0.0001
  norm       = 29.1838
  Prefactor  = 22.9269
  Prefactor  = 16.2886
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.7375
  norm       = 2.57878
  Prefactor  = 0.721337
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.191266
  Prefactor  = 26.6344
  Prefactor  = 11.4012
  Normalizat = 0.958738
  Prefactor  = 0.859712
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.644     FROM HESSE     STATUS=OK           348 CALLS     2435 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.650        13.476        .90355E-04   -1.4821    
   2  Prefactor     .10000E-03    2.4631        .12374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          29.184        19.046        .74164E-04   -1.4627    
   4  Prefactor     22.927        15.960        .83659E-04   -1.4750    
   5  Prefactor     16.289        12.517        .99245E-04   -1.4901    
   6  norm          .10000E-03    2.9437        .17086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7375        10.277        .16774E-03   -1.5229    
   9  norm          2.5788        3.0271        .13915E-03   -1.5387    
  10  Prefactor     .72134        15.690        .48493E-03   -1.5538    
  11  Prefactor     .10000E-03    4.5728        .33060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .18462        .58604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9337        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2590        .88765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.5004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .19127        6.2028        .16711E-02   -1.5621    
  19  Prefactor     26.634        23.648        .77600E-04   -1.4675    
  20  Prefactor     11.401        55.195        .11816E-03   -1.5033    
  21  Normalizat    .95874        .18662        .22039E-03   -.94426    
  22  Prefactor     .85971        .17900        .23205E-03   -.97563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58358e-08
Minuit parameter uncertainties:
  1  13.4783
  2  2.39153e-06
  3  19.0499
  4  15.9626
  5  12.5185
  6  4.77595e-05
  7  0.000132936
  8  10.2804
  9  3.02723
  10  6.72988
  11  9.89159e-05
  12  4.80669e-06
  13  0.000162804
  14  2.32739e-05
  15  8.49442e-06
  16  3.60618e-07
  17  9.94478e-07
  18  2.1781
  19  23.6565
  20  50.2461
  21  0.186746
  22  0.179123
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  9.892e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.597e-01  1.791e-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.587e-01  1.867e-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: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592321/likelihoodResults_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6566.6446074
delta logL = -0.00104455801284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6566.64356385
delta logL = -1.01101159089e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9725       1.0000          .0000       10.000    
     3 'Normalizat'    .95842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86006       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=   6566.634     FROM MIGRAD    STATUS=FAILED       261 CALLS      420 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33047        5.4332        .25755E-02    .55291E-02
   2  Index         2.1141        .67005        .50000       -.12819E-04
   3  Normalizat    .95884        .17530        .22039E-03   -.67060E-06
   4  Prefactor     .85823        .17703        .23205E-03    .15433E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6566.634     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      494 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33047        5.4332        .24097E-03   -1.5593    
   2  Index         2.1141        .67005        .29502E-02   -.61527    
   3  Normalizat    .95884        .17530        .27136E-03   -.94423    
   4  Prefactor     .85823        .17703        .32222E-03   -.97616    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6566.634     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      526 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33047        4.6249        .51510E-03    .14015E-04
   2  Index         2.1141        1.8797        .11887E-01   -.26377E-05
   3  Normalizat    .95884        .17552        .88155E-05   -.25792E-06
   4  Prefactor     .85823        .17713        .92821E-05   -.48992E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.330469
  Index      = 2.1141
  Normalizat = 0.958836
  Prefactor  = 0.858235
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.634     FROM HESSE     STATUS=OK            27 CALLS      553 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33047        4.7575        .20604E-04   -1.5593    
   2  Index         2.1141        1.9062        .47549E-03   -.61527    
   3  Normalizat    .95884        .17568        .17631E-05   -.94423    
   4  Prefactor     .85823        .17725        .18564E-05   -.97616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00146e-13
Minuit parameter uncertainties:
  1  2.50761
  2  1.98326
  3  0.175783
  4  0.177367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592321': 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) = 6566.63367661
delta logL = 0.00988623181911

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.305e-01  2.508e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.114e+00  1.983e+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:  8.582e-01  1.774e-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.588e-01  1.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/592321/cmap_HighResolution_442281601_442540801_4FGL_J2256.0-2740_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.18e-03', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-29 02:59:20.090560', job_id='592321', GAL2='0.86', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632909560.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='9.89e-03', ts2='0.02', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='783' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:59:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 592321: <4FGL_J2256.0-2740_daily_bin783> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin783 344.025 -27.6739 442281601 442540801 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 :                                   647.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

