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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1655
RA = 344.025, Dec = -27.6739
tmin = 668304001, tmax = 668563201
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='198629', job_status='RUN', time_executed='2022-03-10 00:37:15.285354', time_epoch_executed='1646901435.29' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198629/ft1_4FGL_J2256.0-2740_daily_bin1655.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198629/ft2_4FGL_J2256.0-2740_daily_bin1655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198629/ft1_4FGL_J2256.0-2740_daily_bin1655.fits outfile=/scratch/kocevski/198629/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1655.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=668304001.0 tmax=668563201.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.66
user 3.43
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198629/ft2_4FGL_J2256.0-2740_daily_bin1655.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/198629/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1655.fits evtable="EVENTS" outfile="/scratch/kocevski/198629/ft1_filtered_4FGL_J2256.0-2740_daily_bin1655.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.35
sys 0.13
Number of photons that survived the gtmktime cut: 455

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198629/ft1_filtered_4FGL_J2256.0-2740_daily_bin1655.fits" evtable="EVENTS" scfile=/scratch/kocevski/198629/ft2_4FGL_J2256.0-2740_daily_bin1655.fits sctable="SC_DATA" outfile=/scratch/kocevski/198629/ltcube_668304001_668563201_4FGL_J2256.0-2740_daily_bin1655.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/198629/ft2_4FGL_J2256.0-2740_daily_bin1655.fits
.....................!
real 12.13
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198629/ft1_filtered_4FGL_J2256.0-2740_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/198629/ft2_4FGL_J2256.0-2740_daily_bin1655.fits sctable="SC_DATA" expcube=/scratch/kocevski/198629/ltcube_668304001_668563201_4FGL_J2256.0-2740_daily_bin1655.fits outfile=/scratch/kocevski/198629/expmap_668304001_668563201_4FGL_J2256.0-2740_daily_bin1655.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/198629/ltcube_668304001_668563201_4FGL_J2256.0-2740_daily_bin1655.fits
.....................!
real 190.14
user 185.66
sys 4.11

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/198629/ft1_filtered_4FGL_J2256.0-2740_daily_bin1655.fits scfile=/scratch/kocevski/198629/ft2_4FGL_J2256.0-2740_daily_bin1655.fits outfile=/scratch/kocevski/198629/cmap_668304001_668563201_4FGL_J2256.0-2740_daily_bin1655.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198629/ft1_filtered_4FGL_J2256.0-2740_daily_bin1655.fits scfile=/scratch/kocevski/198629/ft2_4FGL_J2256.0-2740_daily_bin1655.fits outfile=/scratch/kocevski/198629/cmap_HighResolution_668304001_668563201_4FGL_J2256.0-2740_daily_bin1655.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/198629/ft1_filtered_4FGL_J2256.0-2740_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/198629/ft2_4FGL_J2256.0-2740_daily_bin1655.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/198629/Model_4FGL_J2256.0-2740_daily_bin1655.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/198629/ft1_filtered_4FGL_J2256.0-2740_daily_bin1655.fits.....................!
real 44.82
user 43.50
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.160       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    47.860       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.920       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.644       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0045       1.0000         .10000E-03   10000.    
     9 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3903       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .46013       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.588       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.750       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.624       1.0000         .10000E-03   10000.    
    16 'norm      '    19.742       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.646       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.928       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75139       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4270       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=   5222.025     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2823 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.163        16.527       -.34754E-05    .40027E-05
   2  Prefactor     .10000E-03    5.1415       -.12234E-06** at limit **
   3  norm          47.865        28.757       -.57850E-06    .26598E-04
   4  Prefactor     22.923        27.424       -.33622E-06    .76582E-05
   5  Prefactor     .10000E-03    5.3707       -.23095E-06** at limit **
   6  norm          .10000E-03    1.2439       -.41431E-06** at limit **
   7  Prefactor     26.657        48.378        .13856E-04    .37250E-04
   8  Prefactor     7.0013        15.404        .22498E-06   -.40761E-04
   9  norm          .10000E-03    3.9347        .14046E-06** at limit **
  10  Prefactor     5.3942        16.957       -.10234E-04   -.97881E-04
  11  Prefactor     .10000E-03    9.0728        .21644E-06** at limit **
  12  norm          .46053        .91011       -.75744E-07   -.23910E-02
  13  Prefactor     26.595        77.103        .11184E-04    .67137E-05
  14  Prefactor     13.752        18.931       -.23310E-05   -.97017E-05
  15  Prefactor     12.619        13.168        .25053E-05    .53509E-04
  16  norm          19.732        11.431       -.13555E-05    .24867E-04
  17  Prefactor     .10000E-03    121.75       -.51466E-07** at limit **
  18  norm          .10000E-03    1.5654       -.20434E-06** at limit **
  19  Prefactor     72.668        59.870        .26578E-04    .86698E-04
  20  Prefactor     33.732        249.54       -.32888E-03    .82846E-05
  21  Normalizat    .75116        .22655        .51905E-05    .46171E-04
  22  Prefactor     1.4271        .20983        .20331E-05    .59064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1631
  Prefactor  = 0.0001
  norm       = 47.8646
  Prefactor  = 22.9233
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.6566
  Prefactor  = 7.00133
  norm       = 0.0001
  Prefactor  = 5.39416
  Prefactor  = 0.0001
  norm       = 0.460533
  Prefactor  = 26.595
  Prefactor  = 13.752
  Prefactor  = 12.6192
  norm       = 19.7317
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 72.6682
  Prefactor  = 33.7321
  Normalizat = 0.751165
  Prefactor  = 1.42711
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.025     FROM HESSE     STATUS=OK           346 CALLS     3169 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.163        16.530        .99631E-04   -1.4904    
   2  Prefactor     .10000E-03    5.1882        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          47.865        28.755        .57962E-04   -1.4323    
   4  Prefactor     22.923        27.423        .83668E-04   -1.4750    
   5  Prefactor     .10000E-03    5.3883        .16352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2482        .78465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.657        48.375        .77609E-04   -1.4675    
   8  Prefactor     7.0013        15.445        .15158E-03   -1.5179    
   9  norm          .10000E-03    4.0634        .27861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3942        16.652        .17309E-03   -1.5243    
  11  Prefactor     .10000E-03    9.1487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .46053        .82756        .71536E-03   -1.5572    
  13  Prefactor     26.595        77.197        .77692E-04   -1.4676    
  14  Prefactor     13.752        18.946        .10802E-03   -1.4966    
  15  Prefactor     12.619        12.847        .11274E-03   -1.4997    
  16  norm          19.732        11.442        .90143E-04   -1.4819    
  17  Prefactor     .10000E-03    122.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5722        .88217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     72.668        59.979        .47103E-04   -1.4001    
  20  Prefactor     33.732        250.96        .34398E-03   -1.4546    
  21  Normalizat    .75116        .26836        .31605E-03   -1.0191    
  22  Prefactor     1.4271        .24999        .23589E-03   -.79602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02822e-09
Minuit parameter uncertainties:
  1  16.5349
  2  3.78456e-05
  3  28.7629
  4  27.4383
  5  5.65933e-05
  6  3.39194e-05
  7  48.4462
  8  15.4542
  9  4.87783e-05
  10  16.666
  11  3.96854e-05
  12  0.827578
  13  77.4887
  14  18.954
  15  12.8498
  16  11.4429
  17  0.000474286
  18  2.75671e-05
  19  60.0288
  20  185.111
  21  0.268834
  22  0.250204
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
557   Normalization:  7.512e-01  2.688e-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.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198629/likelihoodResults_668304001_668563201_4FGL_J2256.0-2740_daily_bin1655.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) = 5222.02575499
delta logL = -0.000521123984072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5222.0252345
delta logL = -6.28157067695e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0035       1.0000          .0000       10.000    
     3 'Normalizat'    .75095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4273       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=   5222.025     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      270 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.621        .59107E-01** at limit **
   2  Index         2.5513        8.0860        .50000       -.84378E-07
   3  Normalizat    .75116        .11176E-01    .31604E-03   -.40367E-03
   4  Prefactor     1.4271        .11160E-01    .23589E-03   -.54573E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5513
  Normalizat = 0.751164
  Prefactor  = 1.42711
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.025     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      301 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    777.09        .33608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5513        8.6755        .50000       -.51179    
   3  Normalizat    .75116        .47670E-01    .63209E-04   -1.0191    
   4  Prefactor     1.4271        .47599E-01    .47178E-04   -.79602    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04902e-10
Minuit parameter uncertainties:
  1  4.11558e-05
  2  813.501
  3  0.0476727
  4  0.0476004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198629': 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) = 5222.02523277
delta logL = 1.09684424388e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  4.116e-05  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  2.551e+00  8.135e+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:  1.427e+00  4.760e-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:  7.512e-01  4.767e-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/198629/cmap_HighResolution_668304001_668563201_4FGL_J2256.0-2740_daily_bin1655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2022-03-10 00:46:59.990094', job_id='198629', GAL2='1.43', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1646902019.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1655' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:47:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 198629: <4FGL_J2256.0-2740_daily_bin1655> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1655> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Mar 10 00:35:50 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:36:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:36:05 2022
Terminated at Thu Mar 10 00:47:00 2022
Results reported at Thu Mar 10 00:47:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1655 344.025 -27.6739 668304001 668563201 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 :                                   587.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             351.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            670 sec.

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

