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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1029
RA = 344.025, Dec = -27.6739
tmin = 506044801, tmax = 506304001
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='592691', job_status='RUN', time_executed='2021-09-29 02:46:28.461029', time_epoch_executed='1632908788.46' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592691/ft1_4FGL_J2256.0-2740_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592691/ft2_4FGL_J2256.0-2740_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592691/ft1_4FGL_J2256.0-2740_daily_bin1029.fits outfile=/scratch/kocevski/592691/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1029.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=506044801.0 tmax=506304001.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.30
user 4.07
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592691/ft1_filtered_4FGL_J2256.0-2740_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/592691/ft2_4FGL_J2256.0-2740_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/592691/ltcube_506044801_506304001_4FGL_J2256.0-2740_daily_bin1029.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/592691/ft2_4FGL_J2256.0-2740_daily_bin1029.fits
.....................!
real 12.16
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592691/ft1_filtered_4FGL_J2256.0-2740_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/592691/ft2_4FGL_J2256.0-2740_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/592691/ltcube_506044801_506304001_4FGL_J2256.0-2740_daily_bin1029.fits outfile=/scratch/kocevski/592691/expmap_506044801_506304001_4FGL_J2256.0-2740_daily_bin1029.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/592691/ltcube_506044801_506304001_4FGL_J2256.0-2740_daily_bin1029.fits
.....................!
real 192.13
user 187.29
sys 4.48

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/592691/ft1_filtered_4FGL_J2256.0-2740_daily_bin1029.fits scfile=/scratch/kocevski/592691/ft2_4FGL_J2256.0-2740_daily_bin1029.fits outfile=/scratch/kocevski/592691/cmap_506044801_506304001_4FGL_J2256.0-2740_daily_bin1029.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592691/ft1_filtered_4FGL_J2256.0-2740_daily_bin1029.fits scfile=/scratch/kocevski/592691/ft2_4FGL_J2256.0-2740_daily_bin1029.fits outfile=/scratch/kocevski/592691/cmap_HighResolution_506044801_506304001_4FGL_J2256.0-2740_daily_bin1029.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/592691/ft1_filtered_4FGL_J2256.0-2740_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/592691/ft2_4FGL_J2256.0-2740_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592691/Model_4FGL_J2256.0-2740_daily_bin1029.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/592691/ft1_filtered_4FGL_J2256.0-2740_daily_bin1029.fits.....................!
real 49.08
user 47.84
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15789E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.473       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    64.059       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9368       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16950       1.0000         .10000E-03   10000.    
    12 'norm      '    .90132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6324       1.0000         .10000E-03   10000.    
    16 'norm      '    12.753       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .30181E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1829       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.592       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3239       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .59440       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=   6231.339     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2401 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.105        22.055        .14307E-02    .20926E-03
   2  Prefactor     .10000E-03    10.744        .90712E-02** at limit **
   3  norm          .10000E-03    23.637        .90712E-02** at limit **
   4  Prefactor     22.471        16.548        .21124E-02    .37420E-03
   5  Prefactor     .10000E-03    8.7872        .90712E-02** at limit **
   6  norm          .10000E-03    1.0765        .90712E-02** at limit **
   7  Prefactor     64.060        55.029        .12535E-02    .57356E-03
   8  Prefactor     7.9439        11.438        .35581E-02    .82967E-03
   9  norm          .10000E-03    1.0180        .90712E-02** at limit **
  10  Prefactor     15.095        14.232        .25781E-02    .21381E-02
  11  Prefactor     .17398        16.160        .63868E-01    .57813E-03
  12  norm          .90166        .58387        .89784E-02    .90487E-03
  13  Prefactor     .10000E-03    39.608        .90712E-02** at limit **
  14  Prefactor     .10000E-03    20.062        .90712E-02** at limit **
  15  Prefactor     4.6357        7.4996        .46749E-02    .21139E-03
  16  norm          12.753        7.4736        .28042E-02   -.50357E-02
  17  Prefactor     .10000E-03    28.553        .13329    ** at limit **
  18  norm          3.1831        2.7877        .56785E-02    .46784E-03
  19  Prefactor     23.589        23.313        .20617E-02   -.22051E-03
  20  Prefactor     .10000E-03    84.284        .90712E-02** at limit **
  21  Normalizat    1.3236        .18443        .48390E-01    .21857E-03
  22  Prefactor     .59467        .16756        .66639E-01    .15933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.1054
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.4706
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 64.06
  Prefactor  = 7.94389
  norm       = 0.0001
  Prefactor  = 15.0947
  Prefactor  = 0.173982
  norm       = 0.901659
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.63567
  norm       = 12.7529
  Prefactor  = 0.000100005
  norm       = 3.18308
  Prefactor  = 23.5888
  Prefactor  = 0.000100003
  Normalizat = 1.32362
  Prefactor  = 0.594667
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.339     FROM HESSE     STATUS=OK           338 CALLS     2739 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.105        22.054        .57227E-04   -1.4305    
   2  Prefactor     .10000E-03    11.184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    23.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.471        16.546        .84495E-04   -1.4760    
   5  Prefactor     .10000E-03    8.8932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.0816        .79646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     64.060        56.729        .50139E-04   -1.4106    
   8  Prefactor     7.9439        11.548        .14232E-03   -1.5144    
   9  norm          .10000E-03    1.0192        .77734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.095        16.814        .10312E-03   -1.4931    
  11  Prefactor     .17398        379.98        .39243E-02   -1.5625    
  12  norm          .90166        .67559        .39956E-04   -1.5518    
  13  Prefactor     .10000E-03    39.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6357        7.9176        .18700E-03   -1.5277    
  16  norm          12.753        7.4557        .11217E-03   -1.4994    
  17  Prefactor     .10000E-03    247.60        .80797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1831        2.7763        .11663E-03   -1.5351    
  19  Prefactor     23.589        23.333        .82469E-04   -1.4736    
  20  Prefactor     .10000E-03    84.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3236        .23394        .21392E-03   -.82864    
  22  Prefactor     .59467        .20811        .29490E-03   -1.0781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99557e-08
Minuit parameter uncertainties:
  1  22.0572
  2  1.12736e-05
  3  3.94862e-05
  4  16.5497
  5  1.58683e-05
  6  3.16945e-06
  7  56.777
  8  11.5514
  9  1.31082e-06
  10  16.8192
  11  16.3618
  12  0.675594
  13  0.000509586
  14  4.07441e-06
  15  7.91939
  16  7.45627
  17  0.00219442
  18  2.77646
  19  23.3422
  20  0.00103941
  21  0.234128
  22  0.208382
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.740e-01  1.636e+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:  5.947e-01  2.084e-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.324e+00  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592691/likelihoodResults_506044801_506304001_4FGL_J2256.0-2740_daily_bin1029.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) = 6231.3231323
delta logL = 0.0153757917142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6231.19624153
delta logL = 0.142266555279

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2966       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6345       1.0000          .0000       10.000    
     3 'Normalizat'    1.2837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61907       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=   6231.196     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2960        6.4487        .20775E-03   -.10408E-03
   2  Index         4.6353        2.9006        .21412E-01    .12269E-03
   3  Normalizat    1.2838        .21672        .21651E-03   -.10474E-02
   4  Prefactor     .61899        .20127        .28936E-03   -.46852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.29598
  Index      = 4.63532
  Normalizat = 1.28377
  Prefactor  = 0.61899
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.196     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2960        5.7307        .83100E-05   -1.5405    
   2  Index         4.6353        2.6116        .42824E-02   -.73001E-01
   3  Normalizat    1.2838        .21694        .43303E-04   -.84052    
   4  Prefactor     .61899        .20153        .11575E-04   -1.0679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34808e-09
Minuit parameter uncertainties:
  1  5.73209
  2  2.74874
  3  0.217095
  4  0.201769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592691': 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) = 6231.19624128
delta logL = 0.142266811469

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.296e+00  5.732e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.635e+00  2.749e+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:  6.190e-01  2.018e-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.284e+00  2.171e-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/592691/cmap_HighResolution_506044801_506304001_4FGL_J2256.0-2740_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-29 02:57:10.577715', job_id='592691', GAL2='0.62', fit_tolerance='1e-08', EG2='1.28', EG='1.32', time_epoch_completed='1632909430.58', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='1.42e-01', ts2='0.31', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1029' 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@bullet0239>
Subject: Job 592691: <4FGL_J2256.0-2740_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1029 344.025 -27.6739 506044801 506304001 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 :                                   638.00 sec.
    Max Memory :                                 1135 MB
    Average Memory :                             285.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            686 sec.

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

