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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin306
RA = 344.025, Dec = -27.6739
tmin = 318643201, tmax = 318902401
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='590582', job_status='RUN', time_executed='2021-09-29 02:42:29.468128', time_epoch_executed='1632908549.47' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590582

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590582/ft1_4FGL_J2256.0-2740_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590582/ft2_4FGL_J2256.0-2740_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590582/ft1_4FGL_J2256.0-2740_daily_bin306.fits outfile=/scratch/kocevski/590582/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin306.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=318643201.0 tmax=318902401.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.38
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590582/ft2_4FGL_J2256.0-2740_daily_bin306.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/590582/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin306.fits evtable="EVENTS" outfile="/scratch/kocevski/590582/ft1_filtered_4FGL_J2256.0-2740_daily_bin306.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/590582/ft1_filtered_4FGL_J2256.0-2740_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/590582/ft2_4FGL_J2256.0-2740_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/590582/ltcube_318643201_318902401_4FGL_J2256.0-2740_daily_bin306.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/590582/ft2_4FGL_J2256.0-2740_daily_bin306.fits
.....................!
real 11.94
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590582/ft1_filtered_4FGL_J2256.0-2740_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/590582/ft2_4FGL_J2256.0-2740_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/590582/ltcube_318643201_318902401_4FGL_J2256.0-2740_daily_bin306.fits outfile=/scratch/kocevski/590582/expmap_318643201_318902401_4FGL_J2256.0-2740_daily_bin306.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/590582/ltcube_318643201_318902401_4FGL_J2256.0-2740_daily_bin306.fits
.....................!
real 191.22
user 185.24
sys 5.57

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590582/ft1_filtered_4FGL_J2256.0-2740_daily_bin306.fits scfile=/scratch/kocevski/590582/ft2_4FGL_J2256.0-2740_daily_bin306.fits outfile=/scratch/kocevski/590582/cmap_HighResolution_318643201_318902401_4FGL_J2256.0-2740_daily_bin306.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590582/ft1_filtered_4FGL_J2256.0-2740_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/590582/ft2_4FGL_J2256.0-2740_daily_bin306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590582/Model_4FGL_J2256.0-2740_daily_bin306.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/590582/ft1_filtered_4FGL_J2256.0-2740_daily_bin306.fits.....................!
real 51.84
user 50.48
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.840       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.802       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6103       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9365       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10613E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0736       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14482E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0928       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5090       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.904       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .63905E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11352E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.050       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91560       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75054       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=   6687.671     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2383 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.843        11.410        .24775E-06   -.35747E-04
   2  Prefactor     11.805        6.6774        .71917E-07   -.63390E-04
   3  norm          .10000E-03    4.5739        .37788E-07** at limit **
   4  Prefactor     9.6148        14.426       -.24909E-08   -.29580E-04
   5  Prefactor     1.9414        7.4478        .77852E-06   -.13858E-03
   6  norm          .10000E-03    .45445       -.20255E-07** at limit **
   7  Prefactor     .10000E-03    31.236       -.80393E-06** at limit **
   8  Prefactor     1.0777        8.5314        .38231E-05   -.17764E-03
   9  norm          3.9940        3.5427       -.21385E-06   -.30256E-03
  10  Prefactor     .10000E-03    22.416       -.24628E-06** at limit **
  11  Prefactor     2.0876        8.9651        .27825E-05    .26471E-04
  12  norm          1.5086        .68952       -.18312E-06   -.41903E-04
  13  Prefactor     32.071        37.144        .18989E-05    .16412E-03
  14  Prefactor     .10000E-03    3.4434       -.49265E-08** at limit **
  15  Prefactor     .10000E-03    5.1440        .11939E-06** at limit **
  16  norm          10.899        6.2176       -.24314E-06   -.21885E-03
  17  Prefactor     .10002E-03    95.805       -.92203E-05** at limit **
  18  norm          .10000E-03    1.5571        .67194E-07** at limit **
  19  Prefactor     31.047        26.298        .20404E-06   -.65062E-04
  20  Prefactor     .10000E-03    42.217        .16790E-05** at limit **
  21  Normalizat    .91513        .15236       -.14747E-05   -.40616E-04
  22  Prefactor     .75084        .14277        .38326E-06   -.16579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8429
  Prefactor  = 11.8049
  norm       = 0.0001
  Prefactor  = 9.61484
  Prefactor  = 1.94139
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.0777
  norm       = 3.99395
  Prefactor  = 0.000100001
  Prefactor  = 2.08764
  norm       = 1.50865
  Prefactor  = 32.071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8988
  Prefactor  = 0.000100021
  norm       = 0.0001
  Prefactor  = 31.047
  Prefactor  = 0.000100001
  Normalizat = 0.915133
  Prefactor  = 0.750839
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.671     FROM HESSE     STATUS=OK           344 CALLS     2727 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.843        11.416        .50317E-03   -1.4912    
   2  Prefactor     11.805        6.6849        .11661E-03   -1.5021    
   3  norm          .10000E-03    4.5766        .17082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.6148        14.421        .12927E-03   -1.5088    
   5  Prefactor     1.9414        7.5422        .29839E-03   -1.5429    
   6  norm          .10000E-03    .45611        .53818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0777        9.3538        .46757E-03   -1.5500    
   9  norm          3.9940        3.4783        .12624E-03   -1.5308    
  10  Prefactor     .10000E-03    22.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0876        8.9677        .28535E-03   -1.5419    
  12  norm          1.5086        .70141        .34079E-04   -1.5462    
  13  Prefactor     32.071        37.825        .70766E-04   -1.4575    
  14  Prefactor     .10000E-03    3.4487        .14820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1811        .18065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.899        6.2342        .12133E-03   -1.5048    
  17  Prefactor     .10002E-03    103.31        .42060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.8164        .19360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.047        25.901        .71905E-04   -1.4593    
  20  Prefactor     .10000E-03    42.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91513        .18130        .21465E-03   -.95930    
  22  Prefactor     .75084        .17090        .23297E-03   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22842e-10
Minuit parameter uncertainties:
  1  11.4174
  2  6.68533
  3  3.79771e-06
  4  14.4267
  5  7.54592
  6  8.44545e-07
  7  0.000225944
  8  6.35104
  9  3.47851
  10  0.00027327
  11  8.65562
  12  0.701415
  13  37.8536
  14  1.31586e-07
  15  1.39511e-05
  16  6.23453
  17  0.00296117
  18  2.06497e-05
  19  25.9104
  20  0.000464674
  21  0.181419
  22  0.171024
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.088e+00  8.656e+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.508e-01  1.710e-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.151e-01  1.814e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590582/likelihoodResults_318643201_318902401_4FGL_J2256.0-2740_daily_bin306.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) = 6687.66426111
delta logL = 0.00643763196786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6687.66376597
delta logL = 0.00693277595747

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2400       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7003       1.0000          .0000       10.000    
     3 'Normalizat'    .91729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74887       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6687.664     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      239 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2369        11.707         .0000        .16757E-01
   2  Index         2.6990        .85065         .0000       -.10919E-04
   3  Normalizat    .91731        .14503         .0000        .11137E-04
   4  Prefactor     .74887        .14085         .0000        .16827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.23688
  Index      = 2.69904
  Normalizat = 0.917315
  Prefactor  = 0.748867
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.664     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2369        6.3606        .13731E-02   -1.5409    
   2  Index         2.6990        2.0719        .95054E-02   -.47821    
   3  Normalizat    .91731        .17257        .21442E-03   -.95854    
   4  Prefactor     .74887        .16892        .23322E-03   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78782e-10
Minuit parameter uncertainties:
  1  6.36257
  2  2.1556
  3  0.172678
  4  0.169039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590582': 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) = 6687.66376571
delta logL = 0.00693303688877

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.237e+00  6.363e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.699e+00  2.156e+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.489e-01  1.690e-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.173e-01  1.727e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/590582/cmap_HighResolution_318643201_318902401_4FGL_J2256.0-2740_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-29 02:53:16.670676', job_id='590582', GAL2='0.75', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632909196.67', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.93e-03', ts2='0.14', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='306' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:53:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 590582: <4FGL_J2256.0-2740_daily_bin306> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin306> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:12 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:14 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:40:14 2021
Terminated at Wed Sep 29 02:53:17 2021
Results reported at Wed Sep 29 02:53:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin306 344.025 -27.6739 318643201 318902401 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            785 sec.

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

