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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin260
RA = 344.025, Dec = -27.6739
tmin = 306720001, tmax = 306979201
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='589482', job_status='RUN', time_executed='2021-09-29 02:37:40.117608', time_epoch_executed='1632908260.12' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589482

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589482/ft1_4FGL_J2256.0-2740_daily_bin260.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589482/ft2_4FGL_J2256.0-2740_daily_bin260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589482/ft1_4FGL_J2256.0-2740_daily_bin260.fits outfile=/scratch/kocevski/589482/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin260.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=306720001.0 tmax=306979201.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.94
user 4.68
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/589482/ft2_4FGL_J2256.0-2740_daily_bin260.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/589482/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin260.fits evtable="EVENTS" outfile="/scratch/kocevski/589482/ft1_filtered_4FGL_J2256.0-2740_daily_bin260.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.61
user 0.32
sys 0.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589482/ft1_filtered_4FGL_J2256.0-2740_daily_bin260.fits" evtable="EVENTS" scfile=/scratch/kocevski/589482/ft2_4FGL_J2256.0-2740_daily_bin260.fits sctable="SC_DATA" outfile=/scratch/kocevski/589482/ltcube_306720001_306979201_4FGL_J2256.0-2740_daily_bin260.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/589482/ft2_4FGL_J2256.0-2740_daily_bin260.fits
.....................!
real 12.25
user 11.84
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589482/ft1_filtered_4FGL_J2256.0-2740_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/589482/ft2_4FGL_J2256.0-2740_daily_bin260.fits sctable="SC_DATA" expcube=/scratch/kocevski/589482/ltcube_306720001_306979201_4FGL_J2256.0-2740_daily_bin260.fits outfile=/scratch/kocevski/589482/expmap_306720001_306979201_4FGL_J2256.0-2740_daily_bin260.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/589482/ltcube_306720001_306979201_4FGL_J2256.0-2740_daily_bin260.fits
.....................!
real 190.28
user 185.13
sys 4.84

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589482/ft1_filtered_4FGL_J2256.0-2740_daily_bin260.fits scfile=/scratch/kocevski/589482/ft2_4FGL_J2256.0-2740_daily_bin260.fits outfile=/scratch/kocevski/589482/cmap_HighResolution_306720001_306979201_4FGL_J2256.0-2740_daily_bin260.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/589482/ft1_filtered_4FGL_J2256.0-2740_daily_bin260.fits evtable="EVENTS" scfile=/scratch/kocevski/589482/ft2_4FGL_J2256.0-2740_daily_bin260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589482/Model_4FGL_J2256.0-2740_daily_bin260.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/589482/ft1_filtered_4FGL_J2256.0-2740_daily_bin260.fits......................!
real 35.02
user 33.64
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1587       1.0000         .10000E-03   10000.    
     3 'norm      '    17.805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.006       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0826       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4622       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1894       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    146.42       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    48.379       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.024       1.0000         .10000E-03   10000.    
    18 'norm      '    6.3281       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2429       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8624       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5416       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .30692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3612.976     FROM MIGRAD    STATUS=CONVERGED     64 CALLS     1929 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    4.0362       -.81460E-06** at limit **
   2  Prefactor     4.1593        1.0077        .73439E-08   -.16300E-04
   3  norm          17.806        1.0037        .25627E-07   -.42365E-03
   4  Prefactor     31.007        1.0091        .30411E-07   -.14497E-02
   5  Prefactor     .10000E-03    15.185       -.12177E-04** at limit **
   6  norm          4.0820        2.7906        .13315E-05    .29815E-03
   7  Prefactor     .10000E-03    38.194       -.14591E-04** at limit **
   8  Prefactor     8.4625        1.0021       -.73784E-09   -.49938E-04
   9  norm          3.1894        3.1152       -.17634E-05   -.80867E-03
  10  Prefactor     .10000E-03    4.0056        .11894E-05** at limit **
  11  Prefactor     .10000E-03    2.6316       -.14460E-07** at limit **
  12  norm          .10000E-03    .25562        .33745E-07** at limit **
  13  Prefactor     146.42        1.0063        .11961E-07   -.29311E-02
  14  Prefactor     .10008E-03    3.9412       -.22030E-05** at limit **
  15  Prefactor     .10000E-03    3.1991       -.68477E-06** at limit **
  16  norm          48.383        1.0595        .62162E-07   -.31974E-02
  17  Prefactor     25.024        1.0008       -.90141E-08    .47448E-03
  18  norm          6.3293        1.0053       -.11335E-08   -.39598E-04
  19  Prefactor     5.2438        1.0090        .50505E-07   -.37859E-03
  20  Prefactor     5.8635        1.0124        .69709E-07   -.69458E-03
  21  Normalizat    1.5411        .28819        .14406E-05   -.22302E-05
  22  Prefactor     .30733        .25692       -.44547E-05   -.63605E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100073
  Prefactor  = 4.15931
  norm       = 17.8058
  Prefactor  = 31.007
  Prefactor  = 0.000100001
  norm       = 4.08196
  Prefactor  = 0.0001
  Prefactor  = 8.4625
  norm       = 3.18944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 146.419
  Prefactor  = 0.000100077
  Prefactor  = 0.0001
  norm       = 48.3835
  Prefactor  = 25.0236
  norm       = 6.32934
  Prefactor  = 5.24383
  Prefactor  = 5.86351
  Normalizat = 1.5411
  Prefactor  = 0.307334
 **********
 **   18 **HESSE 
 **********

 FCN=   3612.976     FROM HESSE     STATUS=OK           392 CALLS     2321 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    7.5910        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1593        9.8463        .49411E-02   -1.5300    
   3  norm          17.806        18.402        .23729E-02   -1.4864    
   4  Prefactor     31.007        33.548        .17989E-02   -1.4594    
   5  Prefactor     .10000E-03    15.090        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0820        2.8060        .49884E-02   -1.5304    
   7  Prefactor     .10000E-03    38.186        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4625        15.103        .34451E-02   -1.5126    
   9  norm          3.1894        3.1271        .56724E-02   -1.5351    
  10  Prefactor     .10000E-03    4.0046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .23108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     146.42        106.61        .83255E-03   -1.3282    
  14  Prefactor     .10008E-03    7.7070        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          48.383        20.276        .14413E-02   -1.4316    
  17  Prefactor     25.024        77.441        .20020E-02   -1.4707    
  18  norm          6.3293        4.5676        .39891E-02   -1.5205    
  19  Prefactor     5.2438        36.248        .43887E-02   -1.5250    
  20  Prefactor     5.8635        340.55        .41466E-02   -1.5224    
  21  Normalizat    1.5411        .27320        .46793E-01   -.76630    
  22  Prefactor     .30733        .23945        .87236E-01   -1.2184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13446e-07
Minuit parameter uncertainties:
  1  0.00148462
  2  9.85011
  3  18.4078
  4  33.5682
  5  0.000214707
  6  2.80604
  7  9.95605e-05
  8  15.1097
  9  3.12729
  10  1.3026e-05
  11  2.5521e-07
  12  2.05549e-08
  13  106.752
  14  0.00154056
  15  8.42281e-06
  16  20.2784
  17  77.7542
  18  4.56789
  19  27.5975
  20  89.9129
  21  0.273463
  22  0.240224
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.552e-07  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:  3.073e-01  2.402e-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.541e+00  2.735e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589482/likelihoodResults_306720001_306979201_4FGL_J2256.0-2740_daily_bin260.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) = 3612.97724124
delta logL = -0.00170615101297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3612.97553509
delta logL = -6.85713530402e-09

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 'Index     '    3.0247       1.0000          .0000       10.000    
     3 'Normalizat'    1.5411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .30731       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=   3612.976     FROM MIGRAD    STATUS=FAILED        89 CALLS      246 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    499.19        .95159E-03** at limit **
   2  Index         3.0556        6.4848        .50000       -.58969E-05
   3  Normalizat    1.5411        .12080        .20684E-03   -.19787E-05
   4  Prefactor     .30733        .10791        .38650E-03    .95597E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3612.976     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      408 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    499.19        .25711E-03** at limit **
   2  Index         3.0556        6.4848        .11164E-04   -.58969E-05
   3  Normalizat    1.5411        .12080        .87702E-06   -.19787E-05
   4  Prefactor     .30733        .10791        .96468E-06    .95597E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3612.976     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      448 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1687        .19032E-03** at limit **
   2  Index         3.1652        5.4865        .50000       -.47305E-07
   3  Normalizat    1.5411        .28775        .82735E-05   -.13741E-05
   4  Prefactor     .30733        .25649        .15460E-04   -.11030E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.16517
  Normalizat = 1.5411
  Prefactor  = 0.307334
 **********
 **   18 **HESSE 
 **********

 FCN=   3612.976     FROM HESSE     STATUS=OK            29 CALLS      477 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6659        .38064E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1652        6.8130        .50000       -.37574    
   3  Normalizat    1.5411        .28844        .16547E-05   -.76630    
   4  Prefactor     .30733        .25711        .30920E-05   -1.2184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28941e-12
Minuit parameter uncertainties:
  1  3.37643e-06
  2  171.893
  3  0.288745
  4  0.258073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589482': 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) = 3612.97553497
delta logL = 1.16836417874e-07

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.376e-06  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.165e+00  1.719e+02  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:  3.073e-01  2.581e-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.541e+00  2.887e-01  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/589482/cmap_HighResolution_306720001_306979201_4FGL_J2256.0-2740_daily_bin260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.11e-08', time_completed='2021-09-29 02:46:03.341715', job_id='589482', GAL2='0.31', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1632908763.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.31', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='260' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:46:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 589482: <4FGL_J2256.0-2740_daily_bin260> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin260 344.025 -27.6739 306720001 306979201 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 :                                   497.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            629 sec.

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

