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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin88
RA = 344.025, Dec = -27.6739
tmin = 262137601, tmax = 262396801
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='589223', job_status='RUN', time_executed='2021-09-29 02:37:30.728894', time_epoch_executed='1632908250.73' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589223/ft1_4FGL_J2256.0-2740_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589223/ft2_4FGL_J2256.0-2740_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589223/ft1_4FGL_J2256.0-2740_daily_bin88.fits outfile=/scratch/kocevski/589223/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin88.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=262137601.0 tmax=262396801.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 1.40
user 1.22
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589223/ft2_4FGL_J2256.0-2740_daily_bin88.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/589223/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin88.fits evtable="EVENTS" outfile="/scratch/kocevski/589223/ft1_filtered_4FGL_J2256.0-2740_daily_bin88.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/589223/ft1_filtered_4FGL_J2256.0-2740_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/589223/ft2_4FGL_J2256.0-2740_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/589223/ltcube_262137601_262396801_4FGL_J2256.0-2740_daily_bin88.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/589223/ft2_4FGL_J2256.0-2740_daily_bin88.fits
.....................!
real 12.56
user 12.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589223/ft1_filtered_4FGL_J2256.0-2740_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/589223/ft2_4FGL_J2256.0-2740_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/589223/ltcube_262137601_262396801_4FGL_J2256.0-2740_daily_bin88.fits outfile=/scratch/kocevski/589223/expmap_262137601_262396801_4FGL_J2256.0-2740_daily_bin88.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/589223/ltcube_262137601_262396801_4FGL_J2256.0-2740_daily_bin88.fits
.....................!
real 190.25
user 185.19
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/589223/ft1_filtered_4FGL_J2256.0-2740_daily_bin88.fits scfile=/scratch/kocevski/589223/ft2_4FGL_J2256.0-2740_daily_bin88.fits outfile=/scratch/kocevski/589223/cmap_262137601_262396801_4FGL_J2256.0-2740_daily_bin88.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589223/ft1_filtered_4FGL_J2256.0-2740_daily_bin88.fits scfile=/scratch/kocevski/589223/ft2_4FGL_J2256.0-2740_daily_bin88.fits outfile=/scratch/kocevski/589223/cmap_HighResolution_262137601_262396801_4FGL_J2256.0-2740_daily_bin88.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589223/ft1_filtered_4FGL_J2256.0-2740_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/589223/ft2_4FGL_J2256.0-2740_daily_bin88.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589223/Model_4FGL_J2256.0-2740_daily_bin88.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/589223/ft1_filtered_4FGL_J2256.0-2740_daily_bin88.fits.....................!
real 46.68
user 45.39
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.971       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .38152E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.768       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9700       1.0000         .10000E-03   10000.    
     9 'norm      '    6.8508       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14142E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.0334       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1112       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76382       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=   5949.795     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2102 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5452       -.22707E-06** at limit **
   2  Prefactor     .10000E-03    1.6980       -.95314E-07** at limit **
   3  norm          4.8601        19.774       -.71587E-07   -.34628E-03
   4  Prefactor     21.949        21.251       -.11609E-06   -.12652E-03
   5  Prefactor     .10000E-03    3.2167        .53523E-08** at limit **
   6  norm          .10001E-03    4.2709        .62227E-05** at limit **
   7  Prefactor     15.837        38.152        .19360E-05   -.16411E-03
   8  Prefactor     9.9717        12.028        .26157E-06    .22523E-03
   9  norm          6.8546        3.8120        .71990E-06    .54546E-03
  10  Prefactor     .10000E-03    7.7054       -.50142E-06** at limit **
  11  Prefactor     .10002E-03    4.9229       -.34184E-05** at limit **
  12  norm          .10000E-03    .18780       -.39912E-06** at limit **
  13  Prefactor     .10000E-03    58.990       -.73573E-06** at limit **
  14  Prefactor     .10000E-03    3.3022       -.79896E-07** at limit **
  15  Prefactor     .10000E-03    6.2930        .51306E-05** at limit **
  16  norm          .10000E-03    2.5688       -.14065E-06** at limit **
  17  Prefactor     .10000E-03    17.958       -.28084E-06** at limit **
  18  norm          2.0328        2.6511       -.11092E-06    .37173E-04
  19  Prefactor     .10000E-03    21.644       -.44378E-06** at limit **
  20  Prefactor     .10000E-03    61.928       -.47149E-06** at limit **
  21  Normalizat    1.1112        .17034       -.58836E-06   -.21454E-03
  22  Prefactor     .76398        .16023        .20360E-05   -.46805E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.86013
  Prefactor  = 21.9495
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 15.8373
  Prefactor  = 9.97171
  norm       = 6.85463
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03282
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.1112
  Prefactor  = 0.763977
 **********
 **   18 **HESSE 
 **********

 FCN=   5949.795     FROM HESSE     STATUS=OK           336 CALLS     2438 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.7000        .98171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8601        19.594        .18297E-03   -1.5267    
   4  Prefactor     21.949        21.253        .85454E-04   -1.4771    
   5  Prefactor     .10000E-03    3.2245        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    5.0733        .16568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.837        38.451        .10086E-03   -1.4912    
   8  Prefactor     9.9717        12.064        .12691E-03   -1.5076    
   9  norm          6.8546        3.8306        .10805E-03   -1.5184    
  10  Prefactor     .10000E-03    7.7512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    10.409        .30792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .22492        .64197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    59.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.3060        .13690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.574        .31747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5749        .12076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.0328        2.6370        .13735E-03   -1.5423    
  19  Prefactor     .10000E-03    21.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    62.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1112        .19799        .21412E-03   -.89393    
  22  Prefactor     .76398        .18673        .24485E-03   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61403e-09
Minuit parameter uncertainties:
  1  6.4033e-05
  2  9.04458e-06
  3  19.528
  4  21.2603
  5  2.34981e-05
  6  0.000336662
  7  38.5115
  8  12.0674
  9  3.83074
  10  5.32214e-05
  11  0.000881796
  12  1.53639e-05
  13  0.000649419
  14  2.45379e-05
  15  0.000252014
  16  1.81543e-05
  17  0.000163904
  18  2.63719
  19  0.000433131
  20  0.00025756
  21  0.198127
  22  0.186879
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  8.818e-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:  7.640e-01  1.869e-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.111e+00  1.981e-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: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589223/likelihoodResults_262137601_262396801_4FGL_J2256.0-2740_daily_bin88.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) = 5949.79496594
delta logL = -0.000456805486465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5949.7945092
delta logL = -6.66786945658e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0468       1.0000          .0000       10.000    
     3 'Normalizat'    1.1113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76393       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=   5949.795     FROM MIGRAD    STATUS=FAILED        93 CALLS      259 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10681E-03    2035.5        .30906E-02** at limit **
   2  Index         3.2473        5.8221        .50000       -.15152E-04
   3  Normalizat    1.1112        .74134E-01    .21413E-03    .27975E-03
   4  Prefactor     .76398        .70955E-01    .24485E-03    .18819E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5949.795     FROM SIMPLEX   STATUS=PROGRESS     153 CALLS      412 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    2035.5        .40960E-03** at limit **
   2  Index         3.2471        5.8221        .44415E-04   -.15152E-04
   3  Normalizat    1.1112        .74134E-01    .15947E-05    .27975E-03
   4  Prefactor     .76397        .70955E-01    .76915E-06    .18819E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5949.795     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      463 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .81596        .61812E-01** at limit **
   2  Index         4.0381        7.7342        .50000        .11346E-07
   3  Normalizat    1.1112        .24231E-02    .42825E-04    .13326E-04
   4  Prefactor     .76398        .23515E-02    .97939E-05   -.90542E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 4.0381
  Normalizat = 1.1112
  Prefactor  = 0.763976
 **********
 **   18 **HESSE 
 **********

 FCN=   5949.795     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      494 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    631.97        .22320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.0381        6.7331        .50000       -.19359    
   3  Normalizat    1.1112        .25607E-01    .85650E-05   -.89393    
   4  Prefactor     .76398        .24837E-01    .19588E-05   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.25882e-11
Minuit parameter uncertainties:
  1  0.000147096
  2  2074.68
  3  0.0256073
  4  0.0248373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589223': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5949.79450727
delta logL = 1.86740908248e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.640e-01  2.484e-02  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.111e+00  2.561e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/589223/cmap_HighResolution_262137601_262396801_4FGL_J2256.0-2740_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', job_status='DONE', photon_flux_upper_limit='9.09e-08', time_completed='2021-09-29 02:47:15.405218', job_id='589223', GAL2='0.76', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632908835.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='88' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:47:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 589223: <4FGL_J2256.0-2740_daily_bin88> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin88> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:17 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35:18 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:35:18 2021
Terminated at Wed Sep 29 02:47:16 2021
Results reported at Wed Sep 29 02:47:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin88 344.025 -27.6739 262137601 262396801 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 :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

