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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1634
RA = 344.025, Dec = -27.6739
tmin = 662860801, tmax = 663120001
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='772992', job_status='RUN', time_executed='2022-01-06 02:16:57.837796', time_epoch_executed='1641464217.84' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772992

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772992/ft1_4FGL_J2256.0-2740_daily_bin1634.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772992/ft2_4FGL_J2256.0-2740_daily_bin1634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772992/ft1_4FGL_J2256.0-2740_daily_bin1634.fits outfile=/scratch/kocevski/772992/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1634.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=662860801.0 tmax=663120001.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 2.93
user 2.72
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772992/ft2_4FGL_J2256.0-2740_daily_bin1634.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/772992/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1634.fits evtable="EVENTS" outfile="/scratch/kocevski/772992/ft1_filtered_4FGL_J2256.0-2740_daily_bin1634.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.50
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772992/ft1_filtered_4FGL_J2256.0-2740_daily_bin1634.fits" evtable="EVENTS" scfile=/scratch/kocevski/772992/ft2_4FGL_J2256.0-2740_daily_bin1634.fits sctable="SC_DATA" outfile=/scratch/kocevski/772992/ltcube_662860801_663120001_4FGL_J2256.0-2740_daily_bin1634.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/772992/ft2_4FGL_J2256.0-2740_daily_bin1634.fits
.....................!
real 14.77
user 14.33
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772992/ft1_filtered_4FGL_J2256.0-2740_daily_bin1634.fits evtable="EVENTS" scfile=/scratch/kocevski/772992/ft2_4FGL_J2256.0-2740_daily_bin1634.fits sctable="SC_DATA" expcube=/scratch/kocevski/772992/ltcube_662860801_663120001_4FGL_J2256.0-2740_daily_bin1634.fits outfile=/scratch/kocevski/772992/expmap_662860801_663120001_4FGL_J2256.0-2740_daily_bin1634.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/772992/ltcube_662860801_663120001_4FGL_J2256.0-2740_daily_bin1634.fits
.....................!
real 191.45
user 185.93
sys 4.39

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/772992/ft1_filtered_4FGL_J2256.0-2740_daily_bin1634.fits scfile=/scratch/kocevski/772992/ft2_4FGL_J2256.0-2740_daily_bin1634.fits outfile=/scratch/kocevski/772992/cmap_662860801_663120001_4FGL_J2256.0-2740_daily_bin1634.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772992/ft1_filtered_4FGL_J2256.0-2740_daily_bin1634.fits scfile=/scratch/kocevski/772992/ft2_4FGL_J2256.0-2740_daily_bin1634.fits outfile=/scratch/kocevski/772992/cmap_HighResolution_662860801_663120001_4FGL_J2256.0-2740_daily_bin1634.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.59
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/772992/ft1_filtered_4FGL_J2256.0-2740_daily_bin1634.fits evtable="EVENTS" scfile=/scratch/kocevski/772992/ft2_4FGL_J2256.0-2740_daily_bin1634.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/772992/Model_4FGL_J2256.0-2740_daily_bin1634.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/772992/ft1_filtered_4FGL_J2256.0-2740_daily_bin1634.fits.....................!
real 57.00
user 55.57
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90110E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1176       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.8516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.112       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1817       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .18993E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.3148       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22381E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5027       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68273       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=   7428.229     FROM MIGRAD    STATUS=FAILED       888 CALLS     2505 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.029        .95318E-01** at limit **
   2  Prefactor     .10000E-03    3.1494        .14901E-02** at limit **
   3  norm          .10000E-03    9.3291        .18142E-02** at limit **
   4  Prefactor     .10000E-03    15.740        .18142E-02** at limit **
   5  Prefactor     .10000E-03    9.2871        .18142E-02** at limit **
   6  norm          2.1218        2.2580        .10873E-03   -.45618E-03
   7  Prefactor     1.8033        345.70        .30638E-03    .76811E-05
   8  Prefactor     18.108        10.732        .94109E-04   -.15825E-04
   9  norm          .10000E-03    6.4767        .21244E-02** at limit **
  10  Prefactor     .10000E-03    5.0339        .18142E-02** at limit **
  11  Prefactor     .10000E-03    2.7363        .13865E-02** at limit **
  12  norm          1.1818        .50298        .38562E-04   -.16041E-02
  13  Prefactor     .10000E-03    26.108        .18142E-02** at limit **
  14  Prefactor     .10000E-03    4.6526        .18121E-02** at limit **
  15  Prefactor     .10000E-03    2.9089        .14328E-02** at limit **
  16  norm          .12863        83.728        .32181E-02    .82784E-03
  17  Prefactor     .10000E-03    12.284        .18142E-02** at limit **
  18  norm          5.3149        2.7342        .49225E-03   -.56071E-03
  19  Prefactor     .10000E-03    14.257        .18142E-02** at limit **
  20  Prefactor     .10003E-03    862.50        .36285E-03** at limit **
  21  Normalizat    1.5030        .20504        .21666E-03   -.42747E-03
  22  Prefactor     .68268        .19364        .29619E-03    .14551E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7428.229     FROM SIMPLEX   STATUS=UNCHANGED   1147 CALLS     3652 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.029        .26695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1494        .27768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.3291        .29809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.740        .41548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2871        .16582E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1218        2.2580        .52720E-06   -1.5417    
   7  Prefactor     1.8033        345.70        .56384E-06   -1.5439    
   8  Prefactor     18.108        10.732        .50713E-06   -1.4857    
   9  norm          .10000E-03    6.4767        .16134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0339        .16466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7363        .13449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1818        .50298        .52931E-06   -1.5491    
  13  Prefactor     .10000E-03    26.108        .36912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6526        .22887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9089        .32093E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .12863        83.728        .53710E-06   -1.5636    
  17  Prefactor     .10000E-03    12.284        .44460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3149        2.7342        .52072E-06   -1.5247    
  19  Prefactor     .10000E-03    14.257        .64689E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    862.50        .21751E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5030        .20504        .26532E-06   -.77695    
  22  Prefactor     .68268        .19364        .35591E-06   -1.0421    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7428.229     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     3989 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.275        .10079    ** at limit **
   2  Prefactor     .10000E-03    3.1498        .29802E-03** at limit **
   3  norm          .10000E-03    9.3298        .36285E-03** at limit **
   4  Prefactor     .10000E-03    15.743        .36285E-03** at limit **
   5  Prefactor     .10000E-03    9.2903        .36285E-03** at limit **
   6  norm          2.1218        2.2538        .43493E-05    .10456E-05
   7  Prefactor     1.8027        344.49        .12255E-04   -.37107E-06
   8  Prefactor     18.108        10.731        .37644E-05   -.12080E-05
   9  norm          .10000E-03    6.5166        .42489E-03** at limit **
  10  Prefactor     .10000E-03    5.0344        .36285E-03** at limit **
  11  Prefactor     .10000E-03    2.7366        .27730E-03** at limit **
  12  norm          1.1818        .50271        .15425E-05   -.23395E-04
  13  Prefactor     .10000E-03    26.109        .36285E-03** at limit **
  14  Prefactor     .10000E-03    4.6534        .36241E-03** at limit **
  15  Prefactor     .10000E-03    2.9091        .28657E-03** at limit **
  16  norm          .12867        86.316        .64362E-03    .33409E-04
  17  Prefactor     .10000E-03    12.284        .36285E-03** at limit **
  18  norm          5.3149        2.7337        .19690E-04   -.57739E-06
  19  Prefactor     .10000E-03    14.258        .36285E-03** at limit **
  20  Prefactor     .10000E-03    862.52        .72569E-04** at limit **
  21  Normalizat    1.5030        .20514        .43331E-04   -.91304E-05
  22  Prefactor     .68268        .19365        .11847E-04   -.61414E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12184
  Prefactor  = 1.80271
  Prefactor  = 18.1082
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.18184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.128669
  Prefactor  = 0.0001
  norm       = 5.31487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.50297
  Prefactor  = 0.682675
 **********
 **   18 **HESSE 
 **********

 FCN=   7428.229     FROM HESSE     STATUS=OK           332 CALLS     4321 TOTAL
                     EDM=   .60E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.865        .98836E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1498        .59605E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.3298        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.743        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2905        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1218        2.2636        .86985E-06   -1.5417    
   7  Prefactor     1.8027        353.98        .24510E-05   -1.5439    
   8  Prefactor     18.108        10.737        .75287E-06   -1.4857    
   9  norm          .10000E-03    6.5182        .84977E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0344        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7366        .55460E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1818        .50276        .36932E-06   -1.5491    
  13  Prefactor     .10000E-03    26.109        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6534        .72483E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9092        .57314E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .12867        86.242        .12872E-03   -1.5636    
  17  Prefactor     .10000E-03    12.284        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3149        2.7339        .78760E-06   -1.5247    
  19  Prefactor     .10000E-03    14.258        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    862.12        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5030        .20525        .86662E-05   -.77695    
  22  Prefactor     .68268        .19377        .23695E-05   -1.0421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98853e-13
Minuit parameter uncertainties:
  1  0.00048543
  2  3.34545e-07
  3  8.56234e-08
  4  3.14261e-07
  5  5.63018e-07
  6  2.26371
  7  50.8287
  8  10.7385
  9  2.31778e-06
  10  3.90457e-07
  11  6.78711e-07
  12  0.502762
  13  1.54012e-06
  14  1.16834e-07
  15  3.57188e-07
  16  6.66939
  17  7.98464e-07
  18  2.73399
  19  2.4246e-06
  20  5.97246e-05
  21  0.205364
  22  0.193958
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  6.787e-07  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:  6.827e-01  1.940e-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.503e+00  2.054e-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: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772992/likelihoodResults_662860801_663120001_4FGL_J2256.0-2740_daily_bin1634.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) = 7428.23072371
delta logL = -0.00173668852949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7428.22898704
delta logL = -2.5571353035e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0168       1.0000          .0000       10.000    
     3 'Normalizat'    1.5030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68268       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=   7428.229     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      257 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    89.832        .13885E-01** at limit **
   2  Index         2.6509        5.9107        .50000        .59526E-07
   3  Normalizat    1.5030        .23978E-01    .21666E-03    .52429E-03
   4  Prefactor     .68268        .23163E-01    .29619E-03    .39965E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.65089
  Normalizat = 1.50297
  Prefactor  = 0.682676
 **********
 **   18 **HESSE 
 **********

 FCN=   7428.229     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    581.01        .14147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6509        7.5161        .50000       -.48909    
   3  Normalizat    1.5030        .97338E-01    .43331E-04   -.77695    
   4  Prefactor     .68268        .94040E-01    .11847E-04   -1.0421    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79719e-10
Minuit parameter uncertainties:
  1  6.83856e-05
  2  1132.38
  3  0.09735
  4  0.0940622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772992': 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) = 7428.2289861
delta logL = 9.1831861937e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  6.839e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.651e+00  1.132e+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:  6.827e-01  9.406e-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:  1.503e+00  9.735e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/772992/cmap_HighResolution_662860801_663120001_4FGL_J2256.0-2740_daily_bin1634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2022-01-06 02:30:58.503303', job_id='772992', GAL2='0.68', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1641465058.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='9.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1634' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan  6 02:30:58 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 772992: <4FGL_J2256.0-2740_daily_bin1634> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1634> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jan  6 02:15:18 2022
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan  6 02:15:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan  6 02:15:32 2022
Terminated at Thu Jan  6 02:30:59 2022
Results reported at Thu Jan  6 02:30:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1634 344.025 -27.6739 662860801 663120001 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 :                                   842.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            941 sec.

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

