/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 129 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 = 7407
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2256.0-2740_daily_bin309
RA = 344.025, Dec = -27.6739
tmin = 319420801, tmax = 319680001
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='589553', job_status='RUN', time_executed='2021-09-29 02:37:56.786947', time_epoch_executed='1632908276.79' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589553/ft1_4FGL_J2256.0-2740_daily_bin309.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589553/ft2_4FGL_J2256.0-2740_daily_bin309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589553/ft1_4FGL_J2256.0-2740_daily_bin309.fits outfile=/scratch/kocevski/589553/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin309.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=319420801.0 tmax=319680001.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.44
user 3.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589553/ft1_filtered_4FGL_J2256.0-2740_daily_bin309.fits" evtable="EVENTS" scfile=/scratch/kocevski/589553/ft2_4FGL_J2256.0-2740_daily_bin309.fits sctable="SC_DATA" outfile=/scratch/kocevski/589553/ltcube_319420801_319680001_4FGL_J2256.0-2740_daily_bin309.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/589553/ft2_4FGL_J2256.0-2740_daily_bin309.fits
.....................!
real 11.82
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589553/ft1_filtered_4FGL_J2256.0-2740_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/589553/ft2_4FGL_J2256.0-2740_daily_bin309.fits sctable="SC_DATA" expcube=/scratch/kocevski/589553/ltcube_319420801_319680001_4FGL_J2256.0-2740_daily_bin309.fits outfile=/scratch/kocevski/589553/expmap_319420801_319680001_4FGL_J2256.0-2740_daily_bin309.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/589553/ltcube_319420801_319680001_4FGL_J2256.0-2740_daily_bin309.fits
.....................!
real 189.48
user 184.86
sys 4.30

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/589553/ft1_filtered_4FGL_J2256.0-2740_daily_bin309.fits scfile=/scratch/kocevski/589553/ft2_4FGL_J2256.0-2740_daily_bin309.fits outfile=/scratch/kocevski/589553/cmap_319420801_319680001_4FGL_J2256.0-2740_daily_bin309.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/589553/ft1_filtered_4FGL_J2256.0-2740_daily_bin309.fits scfile=/scratch/kocevski/589553/ft2_4FGL_J2256.0-2740_daily_bin309.fits outfile=/scratch/kocevski/589553/cmap_HighResolution_319420801_319680001_4FGL_J2256.0-2740_daily_bin309.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589553/ft1_filtered_4FGL_J2256.0-2740_daily_bin309.fits evtable="EVENTS" scfile=/scratch/kocevski/589553/ft2_4FGL_J2256.0-2740_daily_bin309.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589553/Model_4FGL_J2256.0-2740_daily_bin309.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/589553/ft1_filtered_4FGL_J2256.0-2740_daily_bin309.fits.....................!
real 50.21
user 48.97
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5638       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.085       1.0000         .10000E-03   10000.    
     3 'norm      '    10.556       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1422       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.505       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.830       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16879E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.760       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0688       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0213       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .64519       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.315       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73456       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2568       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=   6412.347     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2356 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5639        9.1057        .45453E-06   -.63489E-05
   2  Prefactor     10.086        7.2824       -.17787E-06    .89163E-05
   3  norm          10.556        11.109        .20482E-07    .12021E-05
   4  Prefactor     3.1128        38.441        .10610E-05   -.40999E-04
   5  Prefactor     12.504        11.743        .17189E-06   -.56613E-05
   6  norm          .10000E-03    .62173       -.19288E-06** at limit **
   7  Prefactor     27.821        28.626        .10389E-06   -.18215E-04
   8  Prefactor     .10000E-03    3.4028       -.33908E-07** at limit **
   9  norm          .10000E-03    1.3630       -.37843E-08** at limit **
  10  Prefactor     .10000E-03    4.9794       -.98274E-08** at limit **
  11  Prefactor     .10000E-03    9.2373       -.31287E-07** at limit **
  12  norm          1.1230        .60007        .19349E-07   -.10596E-04
  13  Prefactor     18.772        40.527        .84699E-07    .20285E-04
  14  Prefactor     .10000E-03    5.6317        .52908E-07** at limit **
  15  Prefactor     9.0601        10.384        .22454E-06   -.87022E-05
  16  norm          6.0215        7.8421        .24824E-06   -.93156E-05
  17  Prefactor     .10000E-03    12.972        .39418E-07** at limit **
  18  norm          .64542        3.0113        .21281E-05   -.63793E-04
  19  Prefactor     24.314        28.948       -.16161E-05   -.10258E-03
  20  Prefactor     .10000E-03    29.524        .10699E-06** at limit **
  21  Normalizat    .73445        .17206       -.48255E-06   -.78753E-04
  22  Prefactor     1.2569        .16792       -.35059E-06   -.77150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56389
  Prefactor  = 10.0857
  norm       = 10.5557
  Prefactor  = 3.11276
  Prefactor  = 12.5044
  norm       = 0.0001
  Prefactor  = 27.8208
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12296
  Prefactor  = 18.7722
  Prefactor  = 0.0001
  Prefactor  = 9.06014
  norm       = 6.02151
  Prefactor  = 0.0001
  norm       = 0.64542
  Prefactor  = 24.3145
  Prefactor  = 0.0001
  Normalizat = 0.73445
  Prefactor  = 1.25686
 **********
 **   18 **HESSE 
 **********

 FCN=   6412.347     FROM HESSE     STATUS=OK           346 CALLS     2702 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5639        9.0887        .21409E-03   -1.5330    
   2  Prefactor     10.086        7.2750        .12618E-03   -1.5073    
   3  norm          10.556        11.109        .12332E-03   -1.5058    
   4  Prefactor     3.1128        38.081        .22869E-03   -1.5355    
   5  Prefactor     12.504        11.759        .11328E-03   -1.5001    
   6  norm          .10000E-03    .62093        .61410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.821        28.547        .75941E-04   -1.4653    
   8  Prefactor     .10000E-03    3.4165        .14423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3718        .91229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9856        .17443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.4361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1230        .59008        .40255E-04   -1.5496    
  13  Prefactor     18.772        40.531        .92471E-04   -1.4841    
  14  Prefactor     .10000E-03    5.6529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0601        10.352        .13309E-03   -1.5106    
  16  norm          6.0215        7.8395        .16363E-03   -1.5217    
  17  Prefactor     .10000E-03    12.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .64542        3.0270        .24991E-03   -1.5547    
  19  Prefactor     24.314        29.147        .81236E-04   -1.4721    
  20  Prefactor     .10000E-03    29.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73445        .20681        .27221E-03   -1.0255    
  22  Prefactor     1.2569        .20223        .21854E-03   -.84599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54246e-11
Minuit parameter uncertainties:
  1  9.09217
  2  7.27561
  3  11.1115
  4  21.792
  5  11.7614
  6  7.73595e-07
  7  28.5611
  8  2.49935e-06
  9  4.5101e-07
  10  1.95689e-07
  11  2.0559e-06
  12  0.590082
  13  40.5906
  14  6.38093e-07
  15  10.3539
  16  7.84079
  17  5.9101e-06
  18  2.79548
  19  29.1639
  20  2.99798e-05
  21  0.207028
  22  0.20236
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.257e+00  2.024e-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.344e-01  2.070e-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: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589553/likelihoodResults_319420801_319680001_4FGL_J2256.0-2740_daily_bin309.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) = 6412.34742051
delta logL = -0.000505926231199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6412.34691424
delta logL = 3.46862179867e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11436E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3068       1.0000          .0000       10.000    
     3 'Normalizat'    .73449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2569       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=   6412.347     FROM MIGRAD    STATUS=FAILED        98 CALLS      294 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10808E-03    1416.6        .31872E-02** at limit **
   2  Index         3.6286        5.5329        .50000       -.95852E-05
   3  Normalizat    .73445        .48346E-01    .27221E-03    .18084E-03
   4  Prefactor     1.2569        .49390E-01    .21854E-03    .15367E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6412.347     FROM SIMPLEX   STATUS=UNCHANGED    147 CALLS      441 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10808E-03    1416.6        .56954E-03** at limit **
   2  Index         3.6286        5.5329        .58329E-04   -.95852E-05
   3  Normalizat    .73445        .48346E-01    .89473E-06    .18084E-03
   4  Prefactor     1.2569        .49390E-01    .32940E-06    .15367E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6412.347     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      495 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .75911        .43021E-01** at limit **
   2  Index         4.4563        6.7530        .50000       -.18963E-07
   3  Normalizat    .73445        .22188E-02    .10888E-04   -.19358E-03
   4  Prefactor     1.2569        .22819E-02    .43707E-04   -.28154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 4.45631
  Normalizat = 0.734449
  Prefactor  = 1.25686
 **********
 **   18 **HESSE 
 **********

 FCN=   6412.347     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      526 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    452.69        .24715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.4563        5.8722        .50000       -.10895    
   3  Normalizat    .73445        .21168E-01    .21776E-05   -1.0255    
   4  Prefactor     1.2569        .21760E-01    .87415E-05   -.84599    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.99109e-11
Minuit parameter uncertainties:
  1  0.000616104
  2  2354.93
  3  0.0211686
  4  0.0217597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589553': 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): 102
logL (Free Index) = 6412.34691206
delta logL = 2.52684003499e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.257e+00  2.176e-02  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.344e-01  2.117e-02  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/589553/cmap_HighResolution_319420801_319680001_4FGL_J2256.0-2740_daily_bin309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.66e-03', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2021-09-29 02:48:48.668905', job_id='589553', GAL2='1.26', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632908928.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='2.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='309' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:48:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 589553: <4FGL_J2256.0-2740_daily_bin309> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin309> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:40 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35:41 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:35:41 2021
Terminated at Wed Sep 29 02:48:49 2021
Results reported at Wed Sep 29 02:48:49 2021

Your job looked like:

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

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

