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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1545
RA = 344.025, Dec = -27.6739
tmin = 639792001, tmax = 640051201
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='595409', job_status='RUN', time_executed='2021-09-29 02:57:04.809018', time_epoch_executed='1632909424.81' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595409/ft1_4FGL_J2256.0-2740_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595409/ft2_4FGL_J2256.0-2740_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595409/ft1_4FGL_J2256.0-2740_daily_bin1545.fits outfile=/scratch/kocevski/595409/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1545.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=639792001.0 tmax=640051201.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.53
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595409/ft2_4FGL_J2256.0-2740_daily_bin1545.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/595409/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1545.fits evtable="EVENTS" outfile="/scratch/kocevski/595409/ft1_filtered_4FGL_J2256.0-2740_daily_bin1545.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/595409/ft1_filtered_4FGL_J2256.0-2740_daily_bin1545.fits" evtable="EVENTS" scfile=/scratch/kocevski/595409/ft2_4FGL_J2256.0-2740_daily_bin1545.fits sctable="SC_DATA" outfile=/scratch/kocevski/595409/ltcube_639792001_640051201_4FGL_J2256.0-2740_daily_bin1545.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/595409/ft2_4FGL_J2256.0-2740_daily_bin1545.fits
.....................!
real 11.82
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595409/ft1_filtered_4FGL_J2256.0-2740_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/595409/ft2_4FGL_J2256.0-2740_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/595409/ltcube_639792001_640051201_4FGL_J2256.0-2740_daily_bin1545.fits outfile=/scratch/kocevski/595409/expmap_639792001_640051201_4FGL_J2256.0-2740_daily_bin1545.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/595409/ltcube_639792001_640051201_4FGL_J2256.0-2740_daily_bin1545.fits
.....................!
real 191.56
user 186.23
sys 4.91

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/595409/ft1_filtered_4FGL_J2256.0-2740_daily_bin1545.fits scfile=/scratch/kocevski/595409/ft2_4FGL_J2256.0-2740_daily_bin1545.fits outfile=/scratch/kocevski/595409/cmap_639792001_640051201_4FGL_J2256.0-2740_daily_bin1545.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595409/ft1_filtered_4FGL_J2256.0-2740_daily_bin1545.fits scfile=/scratch/kocevski/595409/ft2_4FGL_J2256.0-2740_daily_bin1545.fits outfile=/scratch/kocevski/595409/cmap_HighResolution_639792001_640051201_4FGL_J2256.0-2740_daily_bin1545.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595409/ft1_filtered_4FGL_J2256.0-2740_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/595409/ft2_4FGL_J2256.0-2740_daily_bin1545.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595409/Model_4FGL_J2256.0-2740_daily_bin1545.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/595409/ft1_filtered_4FGL_J2256.0-2740_daily_bin1545.fits.....................!
real 51.62
user 50.06
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    41.058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.437       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .62090       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.181       1.0000         .10000E-03   10000.    
     9 'norm      '    .56506E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .48270       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7071       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.642       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7320       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .73182E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.465       1.0000         .10000E-03   10000.    
    20 'Prefactor '    105.51       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94270       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78012       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=   6628.330     FROM MIGRAD    STATUS=FAILED       886 CALLS     2898 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.791        11.903        .97738E-04   -.11283E-04
   2  Prefactor     .10000E-03    1.4012        .94026E-03** at limit **
   3  norm          41.049        21.663        .62558E-04    .32711E-05
   4  Prefactor     12.437        16.075        .11358E-03    .20018E-05
   5  Prefactor     .10000E-03    12.651        .36285E-03** at limit **
   6  norm          .62408        1.1383        .13904E-02    .20558E-03
   7  Prefactor     .10000E-03    42.128        .18142E-02** at limit **
   8  Prefactor     20.176        11.138        .89157E-04    .17214E-04
   9  norm          .78625E-01    18.673        .19463E-02   -.11145E-03
  10  Prefactor     .10000E-03    7.7032        .18142E-02** at limit **
  11  Prefactor     .39003        78.613        .26042E-02    .11223E-02
  12  norm          1.7110        .98994        .35243E-04   -.48807E-03
  13  Prefactor     30.639        29.571        .72381E-04   -.15707E-05
  14  Prefactor     .10000E-03    5.2012        .18098E-02** at limit **
  15  Prefactor     .10000E-03    6.2108        .18142E-02** at limit **
  16  norm          1.7301        4.5984        .27690E-03    .65075E-04
  17  Prefactor     .10000E-03    32.691        .12650    ** at limit **
  18  norm          .10000E-03    1.3459        .18088E-03** at limit **
  19  Prefactor     11.411        26.562        .11831E-03   -.45162E-05
  20  Prefactor     105.48        87.732        .39150E-04   -.11848E-04
  21  Normalizat    .94342        .19699        .22040E-03   -.79591E-04
  22  Prefactor     .77940        .18159        .23809E-03   -.69045E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6628.330     FROM SIMPLEX   STATUS=UNCHANGED   1345 CALLS     4243 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.791        11.903        .49694E-06   -1.4888    
   2  Prefactor     .10000E-03    1.4012        .24525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          41.049        21.663        .47311E-06   -1.4426    
   4  Prefactor     12.437        16.075        .49227E-06   -1.5003    
   5  Prefactor     .10000E-03    12.651        .27601E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .62408        1.1383        .51038E-06   -1.5550    
   7  Prefactor     .10000E-03    42.128        .53441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.176        11.138        .48614E-06   -1.4809    
   9  norm          .78625E-01    18.673        .51407E-06   -1.5652    
  10  Prefactor     .10000E-03    7.7032        .11509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .39003        78.613        .51257E-06   -1.5583    
  12  norm          1.7110        .98994        .50661E-06   -1.5446    
  13  Prefactor     30.639        29.571        .47897E-06   -1.4600    
  14  Prefactor     .10000E-03    5.2012        .21751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2108        .17363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7301        4.5984        .50661E-06   -1.5445    
  17  Prefactor     .10000E-03    32.691        .25634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3459        .87110E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.411        26.562        .49400E-06   -1.5032    
  20  Prefactor     105.48        87.732        .44850E-06   -1.3650    
  21  Normalizat    .94342        .19699        .31230E-06   -.94951    
  22  Prefactor     .77940        .18159        .32950E-06   -1.0049    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6628.330     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     4584 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.791        11.902        .39095E-05   -.11632E-05
   2  Prefactor     .10000E-03    1.4013        .18805E-03** at limit **
   3  norm          41.049        21.653        .25023E-05   -.18173E-05
   4  Prefactor     12.437        16.074        .45434E-05    .50045E-06
   5  Prefactor     .10000E-03    12.651        .72569E-04** at limit **
   6  norm          .62408        1.1364        .55616E-04   -.28618E-05
   7  Prefactor     .10000E-03    42.137        .36285E-03** at limit **
   8  Prefactor     20.176        11.137        .35663E-05    .25503E-05
   9  norm          .78662E-01    18.076        .77854E-04   -.13726E-04
  10  Prefactor     .10000E-03    7.7037        .36285E-03** at limit **
  11  Prefactor     .38996        60.112        .52083E-03   -.16087E-04
  12  norm          1.7110        .88216        .14097E-05    .24696E-05
  13  Prefactor     30.639        29.570        .28952E-05     .0000    
  14  Prefactor     .10000E-03    5.2020        .36197E-03** at limit **
  15  Prefactor     .10000E-03    6.2120        .36285E-03** at limit **
  16  norm          1.7301        4.5977        .11076E-04    .73902E-05
  17  Prefactor     .10000E-03    32.280        .12759    ** at limit **
  18  norm          .10000E-03    1.3459        .36177E-04** at limit **
  19  Prefactor     11.411        26.547        .47326E-05   -.19218E-06
  20  Prefactor     105.48        87.718        .78300E-05   -.58078E-06
  21  Normalizat    .94342        .19456        .88160E-05   -.36107E-05
  22  Prefactor     .77940        .18029        .95238E-05   -.71623E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7914
  Prefactor  = 0.0001
  norm       = 41.0487
  Prefactor  = 12.4366
  Prefactor  = 0.0001
  norm       = 0.62408
  Prefactor  = 0.0001
  Prefactor  = 20.1764
  norm       = 0.0786615
  Prefactor  = 0.0001
  Prefactor  = 0.389956
  norm       = 1.711
  Prefactor  = 30.6389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7301
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.4114
  Prefactor  = 105.48
  Normalizat = 0.943418
  Prefactor  = 0.779405
 **********
 **   18 **HESSE 
 **********

 FCN=   6628.330     FROM HESSE     STATUS=OK           330 CALLS     4914 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.791        11.900        .78190E-06   -1.4888    
   2  Prefactor     .10000E-03    1.4013        .37610E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          41.049        21.622        .50047E-06   -1.4426    
   4  Prefactor     12.437        16.090        .90868E-06   -1.5003    
   5  Prefactor     .10000E-03    12.651        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .62408        1.1364        .22246E-05   -1.5550    
   7  Prefactor     .10000E-03    42.137        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.176        11.133        .71326E-06   -1.4809    
   9  norm          .78662E-01    17.992        .31142E-05   -1.5652    
  10  Prefactor     .10000E-03    7.7037        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .38996        56.869        .20833E-04   -1.5583    
  12  norm          1.7110        .86123        .36827E-06   -1.5446    
  13  Prefactor     30.639        29.571        .28952E-05   -1.4600    
  14  Prefactor     .10000E-03    5.2020        .72394E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.2121        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7301        4.5972        .22152E-05   -1.5445    
  17  Prefactor     .10000E-03    32.377        .12730       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3459        .72353E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.411        26.543        .47326E-05   -1.5032    
  20  Prefactor     105.48        87.621        .15660E-05   -1.3650    
  21  Normalizat    .94342        .19383        .17632E-05   -.94951    
  22  Prefactor     .77940        .17997        .19048E-05   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97879e-12
Minuit parameter uncertainties:
  1  11.9021
  2  6.9554e-09
  3  21.6258
  4  16.0955
  5  2.22077e-06
  6  1.13641
  7  1.08208e-06
  8  11.134
  9  2.37849
  10  3.20567e-08
  11  9.42627
  12  0.861232
  13  29.5846
  14  1.25587e-07
  15  9.13604e-07
  16  4.59813
  17  7.09735e-05
  18  1.08293e-06
  19  26.5703
  20  87.7286
  21  0.193976
  22  0.180106
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  3.900e-01  9.426e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.794e-01  1.801e-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.434e-01  1.940e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595409/likelihoodResults_639792001_640051201_4FGL_J2256.0-2740_daily_bin1545.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) = 6628.33033039
delta logL = 0.000134141460876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6628.3303295
delta logL = 0.000135036599204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38997       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9447       1.0000          .0000       10.000    
     3 'Normalizat'    .94357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77927       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=   6628.330     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      231 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41202        123.62        .85236E-01    .29150E-03
   2  Index         2.9451        5.6602        .50000       -.15072E-04
   3  Normalizat    .94341        .28469E-01    .45456E-01    .11519E-04
   4  Prefactor     .77937        .26954E-01    .43447E-01   -.27167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.412017
  Index      = 2.94511
  Normalizat = 0.943407
  Prefactor  = 0.779372
 **********
 **   18 **HESSE 
 **********

 FCN=   6628.330     FROM HESSE     STATUS=OK            35 CALLS      266 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41202        30.155        .26644E-02   -1.5580    
   2  Index         2.9451        6.4624        .30755E-01   -.42353    
   3  Normalizat    .94341        .18008        .22040E-03   -.94951    
   4  Prefactor     .77937        .17527        .23809E-03   -1.0049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47666e-10
Minuit parameter uncertainties:
  1  7.05243
  2  4.8183
  3  0.180195
  4  0.175391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595409': 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) = 6628.33032363
delta logL = 0.000140903055581

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.120e-01  7.052e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.945e+00  4.818e+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:  7.794e-01  1.754e-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.434e-01  1.802e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/595409/cmap_HighResolution_639792001_640051201_4FGL_J2256.0-2740_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2021-09-29 03:11:51.642156', job_id='595409', GAL2='0.78', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632910311.64', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.41e-04', ts2='0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1545' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:11:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 595409: <4FGL_J2256.0-2740_daily_bin1545> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1545> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:55:19 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:55:20 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:55:20 2021
Terminated at Wed Sep 29 03:11:52 2021
Results reported at Wed Sep 29 03:11:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1545 344.025 -27.6739 639792001 640051201 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 :                                   814.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

