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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin921
RA = 344.025, Dec = -27.6739
tmin = 478051201, tmax = 478310401
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='592529', job_status='RUN', time_executed='2021-09-29 02:47:44.822655', time_epoch_executed='1632908864.82' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592529/ft1_4FGL_J2256.0-2740_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592529/ft2_4FGL_J2256.0-2740_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592529/ft1_4FGL_J2256.0-2740_daily_bin921.fits outfile=/scratch/kocevski/592529/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin921.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=478051201.0 tmax=478310401.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.62
user 3.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592529/ft1_filtered_4FGL_J2256.0-2740_daily_bin921.fits" evtable="EVENTS" scfile=/scratch/kocevski/592529/ft2_4FGL_J2256.0-2740_daily_bin921.fits sctable="SC_DATA" outfile=/scratch/kocevski/592529/ltcube_478051201_478310401_4FGL_J2256.0-2740_daily_bin921.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/592529/ft2_4FGL_J2256.0-2740_daily_bin921.fits
.....................!
real 12.30
user 11.87
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592529/ft1_filtered_4FGL_J2256.0-2740_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/592529/ft2_4FGL_J2256.0-2740_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/592529/ltcube_478051201_478310401_4FGL_J2256.0-2740_daily_bin921.fits outfile=/scratch/kocevski/592529/expmap_478051201_478310401_4FGL_J2256.0-2740_daily_bin921.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/592529/ltcube_478051201_478310401_4FGL_J2256.0-2740_daily_bin921.fits
.....................!
real 191.16
user 185.62
sys 5.12

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/592529/ft1_filtered_4FGL_J2256.0-2740_daily_bin921.fits scfile=/scratch/kocevski/592529/ft2_4FGL_J2256.0-2740_daily_bin921.fits outfile=/scratch/kocevski/592529/cmap_478051201_478310401_4FGL_J2256.0-2740_daily_bin921.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592529/ft1_filtered_4FGL_J2256.0-2740_daily_bin921.fits scfile=/scratch/kocevski/592529/ft2_4FGL_J2256.0-2740_daily_bin921.fits outfile=/scratch/kocevski/592529/cmap_HighResolution_478051201_478310401_4FGL_J2256.0-2740_daily_bin921.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0210       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1591       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7157       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5713       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13965E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3679       1.0000         .10000E-03   10000.    
     9 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5777       1.0000         .10000E-03   10000.    
    12 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .93802       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.968       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10980E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.153       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11010E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4004       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70363       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=   4566.249     FROM MIGRAD    STATUS=FAILED       843 CALLS     2747 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.961        .18142E-02** at limit **
   2  Prefactor     8.0245        11.093        .14157E-03    .88335E-06
   3  norm          .10000E-03    22.193        .18142E-02** at limit **
   4  Prefactor     3.1763        37.158        .11402E-02    .77883E-04
   5  Prefactor     1.7044        22.060        .32081E-03   -.47131E-05
   6  norm          2.5694        2.3076        .89053E-04    .95746E-05
   7  Prefactor     .10006E-03    73.680        .13410    ** at limit **
   8  Prefactor     2.3771        19.187        .13314E-02    .26138E-03
   9  norm          .10000E-03    3.2270        .11743E-02** at limit **
  10  Prefactor     .10000E-03    8.9062        .18142E-02** at limit **
  11  Prefactor     2.5739        8.1043        .12710E-02    .74606E-03
  12  norm          .10000E-03    .20772        .18142E-03** at limit **
  13  Prefactor     .95872        198.41        .77164E-02    .69764E-03
  14  Prefactor     .10000E-03    9.7700        .18142E-02** at limit **
  15  Prefactor     .10000E-03    11.125        .18142E-02** at limit **
  16  norm          10.969        10.676        .12097E-03    .75933E-04
  17  Prefactor     .10000E-03    90.466        .18142E-02** at limit **
  18  norm          .10000E-03    1.8440        .88785E-03** at limit **
  19  Prefactor     27.171        31.937        .76881E-04   -.32532E-05
  20  Prefactor     .10000E-03    37.416        .18142E-02** at limit **
  21  Normalizat    1.4003        .26946        .21718E-03    .34791E-03
  22  Prefactor     .70357        .23831        .27805E-03    .37453E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4566.249     FROM SIMPLEX   STATUS=UNCHANGED   1118 CALLS     3865 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.961        .52854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.0245        11.093        .10077E-05   -1.5141    
   3  norm          .10000E-03    22.193        .64135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1763        37.158        .10311E-05   -1.5352    
   5  Prefactor     1.7044        22.060        .10422E-05   -1.5447    
   6  norm          2.5694        2.3076        .10279E-05   -1.5387    
   7  Prefactor     .10006E-03    73.680        .20845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3771        19.187        .10361E-05   -1.5400    
   9  norm          .10000E-03    3.2270        .16683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9062        .28897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5739        8.1043        .10266E-05   -1.5387    
  12  norm          .10000E-03    .20772        .51227E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .95872        198.41        .10404E-05   -1.5512    
  14  Prefactor     .10000E-03    9.7700        .15586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.125        .39362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.969        10.676        .10019E-05   -1.5045    
  17  Prefactor     .10000E-03    90.466        .83996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8440        .47395E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.171        31.937        .97573E-06   -1.4665    
  20  Prefactor     .10000E-03    37.416        .27042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4003        .26946        .53682E-06   -.80620    
  22  Prefactor     .70357        .23831        .68837E-06   -1.0339    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4566.249     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     4206 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.963        .36285E-03** at limit **
   2  Prefactor     8.0246        11.090        .56628E-05   -.80305E-06
   3  norm          .10000E-03    22.196        .36285E-03** at limit **
   4  Prefactor     3.1761        37.111        .45608E-04   -.24927E-06
   5  Prefactor     1.7044        22.027        .12833E-04   -.18427E-04
   6  norm          2.5694        2.3074        .35621E-05   -.14170E-03
   7  Prefactor     .10009E-03    72.632        .13524    ** at limit **
   8  Prefactor     2.3769        19.123        .53256E-04   -.12808E-05
   9  norm          .10000E-03    3.2277        .23485E-03** at limit **
  10  Prefactor     .10000E-03    8.9076        .36285E-03** at limit **
  11  Prefactor     2.5737        8.0862        .50840E-04   -.24821E-04
  12  norm          .10000E-03    .20773        .36285E-04** at limit **
  13  Prefactor     .95886        203.23        .15433E-02    .28307E-04
  14  Prefactor     .10000E-03    9.7717        .36285E-03** at limit **
  15  Prefactor     .10000E-03    11.129        .36285E-03** at limit **
  16  norm          10.969        10.676        .48389E-05   -.46988E-06
  17  Prefactor     .10000E-03    90.488        .36285E-03** at limit **
  18  norm          .10000E-03    1.8443        .17757E-03** at limit **
  19  Prefactor     27.171        31.934        .30752E-05    .73937E-06
  20  Prefactor     .10000E-03    37.416        .36285E-03** at limit **
  21  Normalizat    1.4003        .26932        .43436E-04   -.35282E-04
  22  Prefactor     .70357        .23839        .11122E-04   -.20444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.02458
  norm       = 0.0001
  Prefactor  = 3.17609
  Prefactor  = 1.70445
  norm       = 2.56938
  Prefactor  = 0.000100085
  Prefactor  = 2.37686
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.5737
  norm       = 0.0001
  Prefactor  = 0.958864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9686
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.1713
  Prefactor  = 0.0001
  Normalizat = 1.4003
  Prefactor  = 0.703569
 **********
 **   18 **HESSE 
 **********

 FCN=   4566.249     FROM HESSE     STATUS=OK           332 CALLS     4538 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.963        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.0246        11.097        .11326E-05   -1.5141    
   3  norm          .10000E-03    22.196        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1761        37.323        .18243E-05   -1.5352    
   5  Prefactor     1.7044        22.007        .25665E-05   -1.5447    
   6  norm          2.5694        2.3077        .71243E-06   -1.5387    
   7  Prefactor     .10009E-03    72.931        .13486       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3769        19.131        .21302E-05   -1.5400    
   9  norm          .10000E-03    3.2277        .46970E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9076        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5737        8.0906        .20336E-05   -1.5387    
  12  norm          .10000E-03    .20773        .72569E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .95886        203.33        .30866E-03   -1.5512    
  14  Prefactor     .10000E-03    9.7717        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.129        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.969        10.681        .96779E-06   -1.5045    
  17  Prefactor     .10000E-03    90.489        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8443        .35514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.171        32.124        .61505E-06   -1.4665    
  20  Prefactor     .10000E-03    37.417        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4003        .26934        .86871E-05   -.80620    
  22  Prefactor     .70357        .23820        .22244E-05   -1.0339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52253e-11
Minuit parameter uncertainties:
  1  2.26618e-07
  2  11.0994
  3  1.87285e-07
  4  21.792
  5  12.2543
  6  2.30774
  7  0.00499982
  8  13.4922
  9  2.46609e-06
  10  7.72424e-06
  11  8.09406
  12  4.56378e-08
  13  28.0214
  14  4.9782e-07
  15  1.07847e-05
  16  10.6824
  17  8.27819e-06
  18  2.39907e-08
  19  32.1439
  20  1.55897e-07
  21  0.269612
  22  0.238544
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.574e+00  8.094e+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.036e-01  2.385e-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.400e+00  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/592529/likelihoodResults_478051201_478310401_4FGL_J2256.0-2740_daily_bin921.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) = 4565.8808028
delta logL = 0.368029193424

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4565.87615691
delta logL = 0.372675085809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4017       1.0000         .10000E-03   10000.    
     2 'Index     '    5.2007       1.0000          .0000       10.000    
     3 'Normalizat'    1.3555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73345       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=   4565.876     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      250 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4023        10.449        .12018E-03    .18284E-02
   2  Index         5.2004        7.2793        .16197E-01    .12671E-03
   3  Normalizat    1.3554        .25786        .22007E-03    .64747E-03
   4  Prefactor     .73348        .23760        .27283E-03    .32495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40235
  Index      = 5.20038
  Normalizat = 1.35544
  Prefactor  = 0.733478
 **********
 **   18 **HESSE 
 **********

 FCN=   4565.876     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4023        6.2676        .48071E-05   -1.5398    
   2  Index         5.2004        3.1678        .64787E-03    .40087E-01
   3  Normalizat    1.3554        .25673        .44014E-04   -.81926    
   4  Prefactor     .73348        .23770        .54565E-04   -1.0223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7482e-09
Minuit parameter uncertainties:
  1  6.26929
  2  3.43129
  3  0.25697
  4  0.238033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592529': 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) = 4565.87615683
delta logL = 0.372675158396

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.402e+00  6.269e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  5.200e+00  3.431e+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.335e-01  2.380e-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.355e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/592529/cmap_HighResolution_478051201_478310401_4FGL_J2256.0-2740_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-29 02:58:48.130822', job_id='592529', GAL2='0.73', fit_tolerance='1e-08', EG2='1.36', EG='1.40', time_epoch_completed='1632909528.13', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='3.73e-01', ts2='0.90', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='921' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 592529: <4FGL_J2256.0-2740_daily_bin921> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin921> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:32 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:34 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:45:34 2021
Terminated at Wed Sep 29 02:58:48 2021
Results reported at Wed Sep 29 02:58:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin921 344.025 -27.6739 478051201 478310401 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 :                                   643.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

