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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin258
RA = 344.025, Dec = -27.6739
tmin = 306201601, tmax = 306460801
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='589478', job_status='RUN', time_executed='2021-09-29 02:39:04.746354', time_epoch_executed='1632908344.75' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589478/ft1_4FGL_J2256.0-2740_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589478/ft2_4FGL_J2256.0-2740_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589478/ft1_4FGL_J2256.0-2740_daily_bin258.fits outfile=/scratch/kocevski/589478/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin258.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=306201601.0 tmax=306460801.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.55
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589478/ft2_4FGL_J2256.0-2740_daily_bin258.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/589478/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin258.fits evtable="EVENTS" outfile="/scratch/kocevski/589478/ft1_filtered_4FGL_J2256.0-2740_daily_bin258.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589478/ft1_filtered_4FGL_J2256.0-2740_daily_bin258.fits" evtable="EVENTS" scfile=/scratch/kocevski/589478/ft2_4FGL_J2256.0-2740_daily_bin258.fits sctable="SC_DATA" outfile=/scratch/kocevski/589478/ltcube_306201601_306460801_4FGL_J2256.0-2740_daily_bin258.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/589478/ft2_4FGL_J2256.0-2740_daily_bin258.fits
.....................!
real 12.00
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589478/ft1_filtered_4FGL_J2256.0-2740_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/589478/ft2_4FGL_J2256.0-2740_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/589478/ltcube_306201601_306460801_4FGL_J2256.0-2740_daily_bin258.fits outfile=/scratch/kocevski/589478/expmap_306201601_306460801_4FGL_J2256.0-2740_daily_bin258.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/589478/ltcube_306201601_306460801_4FGL_J2256.0-2740_daily_bin258.fits
.....................!
real 190.63
user 184.97
sys 5.31

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/589478/ft1_filtered_4FGL_J2256.0-2740_daily_bin258.fits scfile=/scratch/kocevski/589478/ft2_4FGL_J2256.0-2740_daily_bin258.fits outfile=/scratch/kocevski/589478/cmap_306201601_306460801_4FGL_J2256.0-2740_daily_bin258.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589478/ft1_filtered_4FGL_J2256.0-2740_daily_bin258.fits scfile=/scratch/kocevski/589478/ft2_4FGL_J2256.0-2740_daily_bin258.fits outfile=/scratch/kocevski/589478/cmap_HighResolution_306201601_306460801_4FGL_J2256.0-2740_daily_bin258.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589478/ft1_filtered_4FGL_J2256.0-2740_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/589478/ft2_4FGL_J2256.0-2740_daily_bin258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589478/Model_4FGL_J2256.0-2740_daily_bin258.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/589478/ft1_filtered_4FGL_J2256.0-2740_daily_bin258.fits.....................!
real 41.99
user 40.60
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.309       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8393       1.0000         .10000E-03   10000.    
     3 'norm      '    91.242       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24439E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.892       1.0000         .10000E-03   10000.    
     6 'norm      '    .13694E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.126       1.0000         .10000E-03   10000.    
     9 'norm      '    11.465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11155E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.754       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33580E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    9.4133       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0815       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.648       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2690       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72603       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=   4850.315     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2865 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.315        13.774        .14214E-05    .27588E-03
   2  Prefactor     4.8397        6.3403        .21389E-05   -.20099E-03
   3  norm          91.214        39.018        .13436E-05    .30245E-03
   4  Prefactor     .10003E-03    14.710       -.97858E-06** at limit **
   5  Prefactor     16.904        16.879       -.11079E-05   -.65135E-05
   6  norm          .10000E-03    1.6530       -.11780E-05** at limit **
   7  Prefactor     3.2198        226.14       -.29300E-05    .18152E-04
   8  Prefactor     18.137        14.815       -.35703E-06    .63028E-04
   9  norm          11.472        5.8749        .81401E-06    .68756E-03
  10  Prefactor     .10000E-03    6.5061       -.81068E-07** at limit **
  11  Prefactor     .10002E-03    12.095       -.12503E-05** at limit **
  12  norm          .10000E-03    .43557       -.11750E-07** at limit **
  13  Prefactor     18.656        59.759       -.74838E-05   -.81612E-04
  14  Prefactor     .10000E-03    12.393        .51251E-07** at limit **
  15  Prefactor     .10437        11.121       -.30207E-06    .14012E-03
  16  norm          9.4089        9.1202       -.48535E-07    .34326E-05
  17  Prefactor     .10000E-03    23.063        .36211E-07** at limit **
  18  norm          2.0782        4.0552        .20003E-06   -.38458E-04
  19  Prefactor     12.631        41.591        .80712E-06    .48340E-04
  20  Prefactor     .10000E-03    46.791        .12263E-06** at limit **
  21  Normalizat    1.2685        .21781        .16847E-05    .33785E-03
  22  Prefactor     .72649        .19539       -.11964E-05    .34706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3145
  Prefactor  = 4.83965
  norm       = 91.214
  Prefactor  = 0.000100033
  Prefactor  = 16.9044
  norm       = 0.000100003
  Prefactor  = 3.21979
  Prefactor  = 18.1371
  norm       = 11.4716
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  norm       = 0.0001
  Prefactor  = 18.6559
  Prefactor  = 0.0001
  Prefactor  = 0.10437
  norm       = 9.40892
  Prefactor  = 0.0001
  norm       = 2.07819
  Prefactor  = 12.6306
  Prefactor  = 0.0001
  Normalizat = 1.26849
  Prefactor  = 0.726488
 **********
 **   18 **HESSE 
 **********

 FCN=   4850.315     FROM HESSE     STATUS=OK           358 CALLS     3223 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.315        13.876        .10979E-03   -1.4978    
   2  Prefactor     4.8397        6.4366        .91433E-03   -1.5268    
   3  norm          91.214        39.235        .42069E-04   -1.3795    
   4  Prefactor     .10003E-03    246.72        .50889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.904        16.801        .97449E-04   -1.4885    
   6  norm          .10000E-03    2.6210        .16205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2198        218.76        .22312E-03   -1.5349    
   8  Prefactor     18.137        14.865        .94074E-04   -1.4856    
   9  norm          11.472        5.7613        .55537E-03   -1.5030    
  10  Prefactor     .10000E-03    6.5098        .17343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    82.969        .37124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .69042        .82115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.656        60.937        .92486E-04   -1.4844    
  14  Prefactor     .10000E-03    12.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10437        17.277        .58754E-01   -1.5643    
  16  norm          9.4089        9.1237        .13062E-03   -1.5094    
  17  Prefactor     .10000E-03    23.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0782        3.9999        .17347E-03   -1.5420    
  19  Prefactor     12.631        41.462        .11263E-03   -1.4997    
  20  Prefactor     .10000E-03    46.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2685        .26389        .23198E-03   -.84512    
  22  Prefactor     .72649        .23374        .28141E-03   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62145e-09
Minuit parameter uncertainties:
  1  13.8795
  2  6.43751
  3  39.2461
  4  0.00574852
  5  16.806
  6  0.000173497
  7  53.2827
  8  14.8681
  9  5.76161
  10  6.57418e-06
  11  0.00254862
  12  3.71009e-06
  13  61.1412
  14  3.84512e-06
  15  2.68513
  16  9.12501
  17  5.83863e-06
  18  4.00039
  19  41.5571
  20  4.30486e-06
  21  0.264171
  22  0.234056
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.265e-01  2.341e-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.268e+00  2.642e-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.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589478/likelihoodResults_306201601_306460801_4FGL_J2256.0-2740_daily_bin258.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) = 4850.3150159
delta logL = -5.70578913539e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4850.17510348
delta logL = 0.139855363376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1063       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6307       1.0000          .0000       10.000    
     3 'Normalizat'    1.2322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74886       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=   4850.175     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      423 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1047        59.272        .11254E-01    .50518E-03
   2  Index         5.6320        6.7926        .50000        .13591E-04
   3  Normalizat    1.2323        .40660E-01    .53087E-01   -.11568E-03
   4  Prefactor     .74874        .38481E-01    .62747E-01    .46709E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10474
  Index      = 5.63203
  Normalizat = 1.23229
  Prefactor  = 0.748741
 **********
 **   18 **HESSE 
 **********

 FCN=   4850.175     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      454 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1047        228.68        .14035E-03   -1.5498    
   2  Index         5.6320        7.2478        .24013E-01    .12675    
   3  Normalizat    1.2323        .25865        .23473E-03   -.85611    
   4  Prefactor     .74874        .21136        .27756E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.63577e-10
Minuit parameter uncertainties:
  1  31.9116
  2  36.1726
  3  0.25892
  4  0.211591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589478': 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) = 4850.17510332
delta logL = 0.139855528028

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.487e-01  2.116e-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.232e+00  2.589e-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/589478/cmap_HighResolution_306201601_306460801_4FGL_J2256.0-2740_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-29 02:48:59.304019', job_id='589478', GAL2='0.75', fit_tolerance='1e-08', EG2='1.23', EG='1.27', time_epoch_completed='1632908939.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.40e-01', ts2='0.29', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='258' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:48:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 589478: <4FGL_J2256.0-2740_daily_bin258> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin258 344.025 -27.6739 306201601 306460801 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 :                                   592.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

