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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin718
RA = 344.025, Dec = -27.6739
tmin = 425433601, tmax = 425692801
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='591206', job_status='RUN', time_executed='2021-09-29 02:43:01.686511', time_epoch_executed='1632908581.69' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591206

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591206/ft1_4FGL_J2256.0-2740_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591206/ft2_4FGL_J2256.0-2740_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591206/ft1_4FGL_J2256.0-2740_daily_bin718.fits outfile=/scratch/kocevski/591206/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin718.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=425433601.0 tmax=425692801.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.06
user 2.85
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591206/ft1_filtered_4FGL_J2256.0-2740_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/591206/ft2_4FGL_J2256.0-2740_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/591206/ltcube_425433601_425692801_4FGL_J2256.0-2740_daily_bin718.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/591206/ft2_4FGL_J2256.0-2740_daily_bin718.fits
.....................!
real 10.04
user 9.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591206/ft1_filtered_4FGL_J2256.0-2740_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/591206/ft2_4FGL_J2256.0-2740_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/591206/ltcube_425433601_425692801_4FGL_J2256.0-2740_daily_bin718.fits outfile=/scratch/kocevski/591206/expmap_425433601_425692801_4FGL_J2256.0-2740_daily_bin718.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/591206/ltcube_425433601_425692801_4FGL_J2256.0-2740_daily_bin718.fits
.....................!
real 190.98
user 185.25
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/591206/ft1_filtered_4FGL_J2256.0-2740_daily_bin718.fits scfile=/scratch/kocevski/591206/ft2_4FGL_J2256.0-2740_daily_bin718.fits outfile=/scratch/kocevski/591206/cmap_425433601_425692801_4FGL_J2256.0-2740_daily_bin718.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/591206/ft1_filtered_4FGL_J2256.0-2740_daily_bin718.fits scfile=/scratch/kocevski/591206/ft2_4FGL_J2256.0-2740_daily_bin718.fits outfile=/scratch/kocevski/591206/cmap_HighResolution_425433601_425692801_4FGL_J2256.0-2740_daily_bin718.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591206/ft1_filtered_4FGL_J2256.0-2740_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/591206/ft2_4FGL_J2256.0-2740_daily_bin718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591206/Model_4FGL_J2256.0-2740_daily_bin718.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/591206/ft1_filtered_4FGL_J2256.0-2740_daily_bin718.fits.....................!
real 46.26
user 45.00
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.125       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1238       1.0000         .10000E-03   10000.    
     6 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.510       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8944       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.459       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8676       1.0000         .10000E-03   10000.    
    12 'norm      '    .46052       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6023       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.4226       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.141       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95094       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1210       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=   5676.254     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2333 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8352        12.720        .21656E-06   -.70156E-05
   2  Prefactor     .10000E-03    9.2685        .10338E-06** at limit **
   3  norm          12.128        28.111       -.79174E-06    .62129E-05
   4  Prefactor     19.391        19.369        .38315E-06   -.77230E-04
   5  Prefactor     4.1261        11.096        .34359E-05   -.23664E-03
   6  norm          .10000E-03    1.0976       -.11741E-05** at limit **
   7  Prefactor     11.491        55.490        .88971E-07   -.37147E-04
   8  Prefactor     3.8945        10.660       -.23263E-06   -.22078E-04
   9  norm          .10000E-03    2.2046       -.23827E-06** at limit **
  10  Prefactor     22.459        16.228       -.17824E-05   -.36077E-04
  11  Prefactor     4.8687        10.661        .56106E-05   -.27278E-03
  12  norm          .46042        .54321       -.42542E-06   -.12281E-02
  13  Prefactor     .10000E-03    11.386        .31171E-07** at limit **
  14  Prefactor     5.6022        9.5478        .13992E-06   -.50312E-05
  15  Prefactor     .10000E-03    4.2873       -.23161E-06** at limit **
  16  norm          .10000E-03    5.6525        .12786E-06** at limit **
  17  Prefactor     .10000E-03    19.107        .92355E-07** at limit **
  18  norm          8.4224        4.0856        .24374E-07    .59955E-04
  19  Prefactor     .10000E-03    9.3780        .14695E-07** at limit **
  20  Prefactor     34.134        71.631        .12655E-05   -.31005E-04
  21  Normalizat    .95094        .19701       -.35417E-06    .12669E-03
  22  Prefactor     1.1210        .18700       -.99842E-06   -.11729E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.83521
  Prefactor  = 0.0001
  norm       = 12.1275
  Prefactor  = 19.3911
  Prefactor  = 4.12614
  norm       = 0.000100001
  Prefactor  = 11.4914
  Prefactor  = 3.8945
  norm       = 0.0001
  Prefactor  = 22.4592
  Prefactor  = 4.86866
  norm       = 0.460419
  Prefactor  = 0.0001
  Prefactor  = 5.60223
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.42245
  Prefactor  = 0.0001
  Prefactor  = 34.1345
  Normalizat = 0.950945
  Prefactor  = 1.12097
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.254     FROM HESSE     STATUS=OK           344 CALLS     2677 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8352        12.718        .16626E-03   -1.5225    
   2  Prefactor     .10000E-03    9.4771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.128        28.052        .11504E-03   -1.5011    
   4  Prefactor     19.391        19.370        .90948E-04   -1.4827    
   5  Prefactor     4.1261        11.029        .99252E-03   -1.5302    
   6  norm          .10000E-03    1.1865        .79537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.491        55.725        .11808E-03   -1.5030    
   8  Prefactor     3.8945        10.681        .20446E-03   -1.5313    
   9  norm          .10000E-03    2.2245        .10920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.459        16.180        .84520E-04   -1.4760    
  11  Prefactor     4.8687        10.860        .91161E-03   -1.5267    
  12  norm          .46042        .52172        .51208E-03   -1.5572    
  13  Prefactor     .10000E-03    11.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6022        9.5407        .16973E-03   -1.5235    
  15  Prefactor     .10000E-03    4.3063        .15234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.7858        .17493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.4224        4.0863        .10196E-03   -1.5127    
  19  Prefactor     .10000E-03    9.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.134        71.589        .68582E-04   -1.4539    
  21  Normalizat    .95094        .24363        .25394E-03   -.94692    
  22  Prefactor     1.1210        .23070        .23643E-03   -.88799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83043e-09
Minuit parameter uncertainties:
  1  12.7238
  2  1.19423e-05
  3  28.0828
  4  19.3759
  5  11.0343
  6  7.44438e-05
  7  50.6868
  8  10.6864
  9  2.30199e-05
  10  16.1827
  11  10.864
  12  0.52173
  13  1.74678e-06
  14  9.54332
  15  3.59158e-05
  16  1.93596e-05
  17  3.1443e-05
  18  4.08642
  19  1.23613e-05
  20  71.7695
  21  0.243911
  22  0.230902
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.869e+00  1.086e+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:  1.121e+00  2.309e-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.509e-01  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/591206/likelihoodResults_425433601_425692801_4FGL_J2256.0-2740_daily_bin718.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) = 5676.08999373
delta logL = 0.163683390208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5676.07278961
delta logL = 0.180887509669

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7517       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4016       1.0000          .0000       10.000    
     3 'Normalizat'    .92326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1419       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=   5676.073     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      275 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7456        10.998        .83324E-03   -.26248E-03
   2  Index         4.4065        3.5211        .18679E-01   -.16026E-04
   3  Normalizat    .92311        .23580        .25726E-03   -.18118E-04
   4  Prefactor     1.1418        .22998        .23457E-03    .10711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.74562
  Index      = 4.40646
  Normalizat = 0.923113
  Prefactor  = 1.14178
 **********
 **   18 **HESSE 
 **********

 FCN=   5676.073     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7456        7.5253        .33329E-04   -1.5321    
   2  Index         4.4065        2.5483        .74715E-03   -.11899    
   3  Normalizat    .92311        .23589        .10290E-04   -.95653    
   4  Prefactor     1.1418        .23046        .93828E-05   -.88142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84984e-11
Minuit parameter uncertainties:
  1  7.52724
  2  2.67604
  3  0.236159
  4  0.230665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591206': 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) = 5676.07278559
delta logL = 0.180891528383

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.746e+00  7.527e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.406e+00  2.676e+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:  1.142e+00  2.307e-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.231e-01  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/591206/cmap_HighResolution_425433601_425692801_4FGL_J2256.0-2740_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-29 02:52:50.442210', job_id='591206', GAL2='1.14', fit_tolerance='1e-08', EG2='0.92', EG='0.95', time_epoch_completed='1632909170.44', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.81e-01', ts2='0.79', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='718' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 591206: <4FGL_J2256.0-2740_daily_bin718> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin718> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:54 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:56 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:40:56 2021
Terminated at Wed Sep 29 02:52:51 2021
Results reported at Wed Sep 29 02:52:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin718 344.025 -27.6739 425433601 425692801 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 :                                   587.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            717 sec.

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

