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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1036
RA = 344.025, Dec = -27.6739
tmin = 507859201, tmax = 508118401
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='592701', job_status='RUN', time_executed='2021-09-29 02:47:30.694309', time_epoch_executed='1632908850.69' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1036'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592701

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592701/ft1_4FGL_J2256.0-2740_daily_bin1036.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592701/ft2_4FGL_J2256.0-2740_daily_bin1036.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592701/ft1_4FGL_J2256.0-2740_daily_bin1036.fits outfile=/scratch/kocevski/592701/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1036.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=507859201.0 tmax=508118401.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 4.15
user 3.89
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592701/ft1_filtered_4FGL_J2256.0-2740_daily_bin1036.fits" evtable="EVENTS" scfile=/scratch/kocevski/592701/ft2_4FGL_J2256.0-2740_daily_bin1036.fits sctable="SC_DATA" outfile=/scratch/kocevski/592701/ltcube_507859201_508118401_4FGL_J2256.0-2740_daily_bin1036.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/592701/ft2_4FGL_J2256.0-2740_daily_bin1036.fits
.....................!
real 11.82
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592701/ft1_filtered_4FGL_J2256.0-2740_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/592701/ft2_4FGL_J2256.0-2740_daily_bin1036.fits sctable="SC_DATA" expcube=/scratch/kocevski/592701/ltcube_507859201_508118401_4FGL_J2256.0-2740_daily_bin1036.fits outfile=/scratch/kocevski/592701/expmap_507859201_508118401_4FGL_J2256.0-2740_daily_bin1036.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/592701/ltcube_507859201_508118401_4FGL_J2256.0-2740_daily_bin1036.fits
.....................!
real 191.05
user 185.13
sys 5.59

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/592701/ft1_filtered_4FGL_J2256.0-2740_daily_bin1036.fits scfile=/scratch/kocevski/592701/ft2_4FGL_J2256.0-2740_daily_bin1036.fits outfile=/scratch/kocevski/592701/cmap_507859201_508118401_4FGL_J2256.0-2740_daily_bin1036.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592701/ft1_filtered_4FGL_J2256.0-2740_daily_bin1036.fits scfile=/scratch/kocevski/592701/ft2_4FGL_J2256.0-2740_daily_bin1036.fits outfile=/scratch/kocevski/592701/cmap_HighResolution_507859201_508118401_4FGL_J2256.0-2740_daily_bin1036.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/592701/ft1_filtered_4FGL_J2256.0-2740_daily_bin1036.fits evtable="EVENTS" scfile=/scratch/kocevski/592701/ft2_4FGL_J2256.0-2740_daily_bin1036.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592701/Model_4FGL_J2256.0-2740_daily_bin1036.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/592701/ft1_filtered_4FGL_J2256.0-2740_daily_bin1036.fits.....................!
real 47.52
user 46.23
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    30.878       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.426       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46252E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2194       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.781       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.320       1.0000         .10000E-03   10000.    
     9 'norm      '    10.608       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0714       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    50.083       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8042       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .49254E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.622       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75171       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1636       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5948.989     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2411 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.405        11.434       -.46487E-07   -.78613E-06
   2  Prefactor     .10000E-03    1.8507        .88213E-07** at limit **
   3  norm          30.878        19.620        .94512E-07   -.12989E-04
   4  Prefactor     29.430        19.399       -.27012E-06    .20996E-04
   5  Prefactor     .10033E-03    9.2772        .55702E-06** at limit **
   6  norm          2.2205        2.0192       -.25421E-06   -.97968E-04
   7  Prefactor     19.721        45.302        .93184E-05   -.71829E-04
   8  Prefactor     12.319        10.187       -.33953E-06    .32344E-04
   9  norm          10.606        4.6969       -.27485E-06   -.82030E-04
  10  Prefactor     .10000E-03    5.2647       -.11338E-06** at limit **
  11  Prefactor     1.0779        9.1447        .44617E-05    .19071E-03
  12  norm          .10000E-03    .15460       -.72545E-08** at limit **
  13  Prefactor     .10000E-03    13.769        .82000E-07** at limit **
  14  Prefactor     .10000E-03    7.0007        .13486E-06** at limit **
  15  Prefactor     .10000E-03    4.3836       -.15363E-06** at limit **
  16  norm          50.083        13.839       -.16828E-06    .11181E-04
  17  Prefactor     .10000E-03    27.382        .47348E-07** at limit **
  18  norm          1.8087        3.3805       -.20410E-06    .17510E-04
  19  Prefactor     .10000E-03    71.960       -.30347E-05** at limit **
  20  Prefactor     68.986        103.48       -.79456E-06   -.78777E-04
  21  Normalizat    .75202        .18884        .96501E-06   -.10645E-04
  22  Prefactor     1.1631        .17943        .81095E-06    .16311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4049
  Prefactor  = 0.0001
  norm       = 30.8783
  Prefactor  = 29.4296
  Prefactor  = 0.000100333
  norm       = 2.22054
  Prefactor  = 19.7205
  Prefactor  = 12.3189
  norm       = 10.6062
  Prefactor  = 0.0001
  Prefactor  = 1.07789
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 50.0828
  Prefactor  = 0.0001
  norm       = 1.80872
  Prefactor  = 0.0001
  Prefactor  = 68.9858
  Normalizat = 0.752017
  Prefactor  = 1.16313
 **********
 **   18 **HESSE 
 **********

 FCN=   5948.989     FROM HESSE     STATUS=OK           342 CALLS     2753 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.405        11.440        .12423E-03   -1.5063    
   2  Prefactor     .10000E-03    1.8560        .10245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          30.878        19.618        .72105E-04   -1.4596    
   4  Prefactor     29.430        19.405        .73858E-04   -1.4622    
   5  Prefactor     .10033E-03    40.544        .41621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2205        2.0238        .92720E-04   -1.5410    
   7  Prefactor     19.721        45.576        .90054E-04   -1.4820    
   8  Prefactor     12.319        10.213        .11413E-03   -1.5006    
   9  norm          10.606        4.7134        .10075E-03   -1.5057    
  10  Prefactor     .10000E-03    5.2811        .17290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0779        9.5873        .20329E-02   -1.5500    
  12  norm          .10000E-03    .16150        .59400E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4167        .15786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          50.083        13.847        .56667E-04   -1.4291    
  17  Prefactor     .10000E-03    27.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8087        3.3585        .18389E-03   -1.5439    
  19  Prefactor     .10000E-03    72.736        .21165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     68.986        102.29        .24227E-03   -1.4045    
  21  Normalizat    .75202        .22429        .27480E-03   -1.0187    
  22  Prefactor     1.1631        .21727        .22764E-03   -.87474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60949e-09
Minuit parameter uncertainties:
  1  11.4428
  2  4.99162e-06
  3  19.6217
  4  19.4095
  5  0.00735826
  6  2.02382
  7  45.6565
  8  10.214
  9  4.71358
  10  2.26702e-05
  11  6.43039
  12  2.73802e-06
  13  1.16646e-05
  14  1.63738e-05
  15  2.83736e-05
  16  13.8475
  17  4.13542e-05
  18  3.35883
  19  0.00011753
  20  102.555
  21  0.224569
  22  0.217437
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.078e+00  6.430e+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:  1.163e+00  2.174e-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:  7.520e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592701/likelihoodResults_507859201_508118401_4FGL_J2256.0-2740_daily_bin1036.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) = 5948.71669358
delta logL = 0.272253948918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5948.68756721
delta logL = 0.301380322437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8613       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9300       1.0000          .0000       10.000    
     3 'Normalizat'    .71710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1859       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=   5948.688     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      230 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8648        62.991        .76356E-02    .26578E-03
   2  Index         4.9267        7.0680        .50000        .66410E-05
   3  Normalizat    .71720        .41273E-01    .63449E-01    .12539E-04
   4  Prefactor     1.1859        .41811E-01    .51045E-01    .10033E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.86478
  Index      = 4.92674
  Normalizat = 0.717196
  Prefactor  = 1.18586
 **********
 **   18 **HESSE 
 **********

 FCN=   5948.688     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8648        4.9970        .13726E-03   -1.5435    
   2  Index         4.9267        3.1094        .18370E-01   -.14653E-01
   3  Normalizat    .71720        .21769        .28070E-03   -1.0322    
   4  Prefactor     1.1859        .21703        .22567E-03   -.86767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65048e-11
Minuit parameter uncertainties:
  1  4.99812
  2  3.3558
  3  0.217951
  4  0.217189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592701': 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) = 5948.68756619
delta logL = 0.301381335953

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.186e+00  2.172e-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:  7.172e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/592701/cmap_HighResolution_507859201_508118401_4FGL_J2256.0-2740_daily_bin1036.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-29 02:58:00.405744', job_id='592701', GAL2='1.19', fit_tolerance='1e-08', EG2='0.72', EG='0.75', time_epoch_completed='1632909480.41', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.01e-01', ts2='0.68', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1036' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 592701: <4FGL_J2256.0-2740_daily_bin1036> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1036 344.025 -27.6739 507859201 508118401 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 :                                   615.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

