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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin401
RA = 344.025, Dec = -27.6739
tmin = 343267201, tmax = 343526401
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='590723', job_status='RUN', time_executed='2021-09-29 02:43:41.622426', time_epoch_executed='1632908621.62' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590723/ft1_4FGL_J2256.0-2740_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590723/ft2_4FGL_J2256.0-2740_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590723/ft1_4FGL_J2256.0-2740_daily_bin401.fits outfile=/scratch/kocevski/590723/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin401.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=343267201.0 tmax=343526401.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.45
user 3.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590723/ft2_4FGL_J2256.0-2740_daily_bin401.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/590723/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin401.fits evtable="EVENTS" outfile="/scratch/kocevski/590723/ft1_filtered_4FGL_J2256.0-2740_daily_bin401.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590723/ft1_filtered_4FGL_J2256.0-2740_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/590723/ft2_4FGL_J2256.0-2740_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/590723/ltcube_343267201_343526401_4FGL_J2256.0-2740_daily_bin401.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/590723/ft2_4FGL_J2256.0-2740_daily_bin401.fits
.....................!
real 11.81
user 11.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590723/ft1_filtered_4FGL_J2256.0-2740_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/590723/ft2_4FGL_J2256.0-2740_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/590723/ltcube_343267201_343526401_4FGL_J2256.0-2740_daily_bin401.fits outfile=/scratch/kocevski/590723/expmap_343267201_343526401_4FGL_J2256.0-2740_daily_bin401.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/590723/ltcube_343267201_343526401_4FGL_J2256.0-2740_daily_bin401.fits
.....................!
real 192.41
user 187.27
sys 4.72

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/590723/ft1_filtered_4FGL_J2256.0-2740_daily_bin401.fits scfile=/scratch/kocevski/590723/ft2_4FGL_J2256.0-2740_daily_bin401.fits outfile=/scratch/kocevski/590723/cmap_343267201_343526401_4FGL_J2256.0-2740_daily_bin401.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.52
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590723/ft1_filtered_4FGL_J2256.0-2740_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/590723/ft2_4FGL_J2256.0-2740_daily_bin401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590723/Model_4FGL_J2256.0-2740_daily_bin401.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/590723/ft1_filtered_4FGL_J2256.0-2740_daily_bin401.fits.....................!
real 38.82
user 37.38
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9730       1.0000         .10000E-03   10000.    
     3 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.727       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.704       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7691       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14395E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.092       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .65048E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1575       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.599       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7663       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11266E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .37357E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83168       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=   4280.057     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     2747 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.942        .18142E-02** at limit **
   2  Prefactor     7.9778        10.931        .14200E-03   -.48918E-04
   3  norm          .10000E-03    18.725        .18142E-02** at limit **
   4  Prefactor     11.730        22.178        .11698E-03   -.28669E-04
   5  Prefactor     21.734        19.072        .85976E-04   -.45646E-03
   6  norm          1.7713        1.8551        .88106E-04   -.57665E-03
   7  Prefactor     .10000E-03    149.52        .18142E-02** at limit **
   8  Prefactor     27.095        15.047        .76967E-04    .16986E-04
   9  norm          .10000E-03    1.4322        .76363E-03** at limit **
  10  Prefactor     .10000E-03    4.9756        .14249E-02** at limit **
  11  Prefactor     .10000E-03    43.023        .40350E-02** at limit **
  12  norm          1.1560        .81891        .43272E-04    .10493E-02
  13  Prefactor     .10000E-03    34.494        .18142E-02** at limit **
  14  Prefactor     .10000E-03    11.936        .18142E-02** at limit **
  15  Prefactor     12.580        14.586        .11285E-03    .18707E-03
  16  norm          1.7822        18.036        .31517E-03   -.60925E-04
  17  Prefactor     .10000E-03    23.093        .18142E-02** at limit **
  18  norm          .10000E-03    12.450        .19069E-02** at limit **
  19  Prefactor     .10000E-03    38.775        .11190    ** at limit **
  20  Prefactor     .10001E-03    43.975        .18142E-02** at limit **
  21  Normalizat    1.0783        .25327        .23702E-03   -.75737E-03
  22  Prefactor     .83164        .23023        .25141E-03   -.27503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 7.97777
  norm       = 0.0001
  Prefactor  = 11.7298
  Prefactor  = 21.7338
  norm       = 1.77131
  Prefactor  = 0.000100004
  Prefactor  = 27.0946
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.156
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.5801
  norm       = 1.78222
  Prefactor  = 0.000100001
  norm       = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Normalizat = 1.0783
  Prefactor  = 0.831642
 **********
 **   18 **HESSE 
 **********

 FCN=   4280.057     FROM HESSE     STATUS=OK           330 CALLS     3077 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.955        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9778        10.930        .56800E-05   -1.5143    
   3  norm          .10000E-03    18.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.730        22.175        .46793E-05   -1.5023    
   5  Prefactor     21.734        19.070        .17195E-04   -1.4775    
   6  norm          1.7713        1.8550        .35242E-05   -1.5442    
   7  Prefactor     .10000E-03    149.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.095        15.046        .30787E-05   -1.4666    
   9  norm          .10000E-03    1.4322        .15273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9756        .28499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.294        .80699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1560        .81826        .17309E-05   -1.5493    
  13  Prefactor     .10000E-03    34.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.580        14.576        .45141E-05   -1.4998    
  16  norm          1.7822        18.027        .12607E-04   -1.5441    
  17  Prefactor     .10000E-03    23.093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.553        .38138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.259        .11515       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    43.975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0783        .25342        .47404E-04   -.90451    
  22  Prefactor     .83164        .23040        .50282E-04   -.98572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63799e-09
Minuit parameter uncertainties:
  1  0.000397916
  2  10.9326
  3  2.94075e-05
  4  22.1903
  5  19.0756
  6  1.8551
  7  0.00148081
  8  15.0486
  9  4.73207e-07
  10  7.07854e-07
  11  0.000206815
  12  0.818265
  13  0.000375819
  14  4.80497e-05
  15  14.5804
  16  11.3403
  17  0.000256494
  18  0.000378051
  19  0.000334018
  20  0.000972338
  21  0.253707
  22  0.230669
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.068e-04  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:  8.316e-01  2.307e-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.078e+00  2.537e-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: 1.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590723/likelihoodResults_343267201_343526401_4FGL_J2256.0-2740_daily_bin401.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) = 4280.05673467
delta logL = -0.00011027169603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4279.10063553
delta logL = 0.955988867371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54422       1.0000         .10000E-03   10000.    
     2 'Index     '    8.2171       1.0000          .0000       10.000    
     3 'Normalizat'    .97905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89538       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4279.101     FROM MIGRAD    STATUS=FAILED        96 CALLS      392 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54596        19.319        .39057E-03    .29775E-02
   2  Index         8.2157        6.3791        .54421E-02    .10946E-04
   3  Normalizat    .97969        .22462        .24640E-03   -.83051E-06
   4  Prefactor     .89490        .20181        .24319E-03    .28049E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4279.101     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      474 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54596        19.319        .62735E-04    .29775E-02
   2  Index         8.2157        6.3791        .23814E-02    .10946E-04
   3  Normalizat    .97969        .22462        .28321E-03   -.83051E-06
   4  Prefactor     .89490        .20181        .15738E-03    .28049E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4279.101     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      506 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54596        8.9939        .78115E-04   -.22267E-04
   2  Index         8.2157        8.9024        .10884E-02   -.62671E-06
   3  Normalizat    .97969        .25936        .98560E-05   -.92278E-06
   4  Prefactor     .89490        .23789        .97274E-05    .23374E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.545965
  Index      = 8.21571
  Normalizat = 0.97969
  Prefactor  = 0.894904
 **********
 **   18 **HESSE 
 **********

 FCN=   4279.101     FROM HESSE     STATUS=OK            23 CALLS      529 TOTAL
                     EDM=   .54E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54596        2.6783        .31246E-05   -1.5560    
   2  Index         8.2157        8.3349        .43536E-04    .69860    
   3  Normalizat    .97969        .25363        .19712E-05   -.93714    
   4  Prefactor     .89490        .23606        .19455E-05   -.96319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40563e-14
Minuit parameter uncertainties:
  1  2.41843
  2  5.59464
  3  0.253944
  4  0.236329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590723': 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) = 4279.10062634
delta logL = 0.955998061315

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.460e-01  2.418e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  8.216e+00  5.595e+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:  8.949e-01  2.363e-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.797e-01  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 8.22 +/- 5.59
Photon Flux (Free Index): 9.72e-08 +/- 8.35e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.02e-05

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/590723/cmap_HighResolution_343267201_343526401_4FGL_J2256.0-2740_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='9.56e-01', photon_flux2='9.72e-08', job_status='DONE', time_completed='2021-09-29 02:52:54.027191', photon_index_error2='5.59', photon_index2='8.22', ts='-0.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.02e-05', EG='1.08', time_epoch_completed='1632909174.03', return_code='0', job_id='590723', GAL2='0.89', EG2='0.98', return_code2='0', photon_flux_error2='8.35e-08', ts2='2.04', photon_index='3.02' WHERE bin_id='401' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 590723: <4FGL_J2256.0-2740_daily_bin401> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin401> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:21 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:22 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:22 2021
Terminated at Wed Sep 29 02:52:54 2021
Results reported at Wed Sep 29 02:52:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin401 344.025 -27.6739 343267201 343526401 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 :                                   550.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

