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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1498
RA = 344.025, Dec = -27.6739
tmin = 627609601, tmax = 627868801
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='595336', job_status='RUN', time_executed='2021-09-29 02:56:06.364474', time_epoch_executed='1632909366.36' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595336/ft1_4FGL_J2256.0-2740_daily_bin1498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595336/ft2_4FGL_J2256.0-2740_daily_bin1498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595336/ft1_4FGL_J2256.0-2740_daily_bin1498.fits outfile=/scratch/kocevski/595336/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1498.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=627609601.0 tmax=627868801.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 2.55
user 2.33
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/595336/ft2_4FGL_J2256.0-2740_daily_bin1498.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/595336/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1498.fits evtable="EVENTS" outfile="/scratch/kocevski/595336/ft1_filtered_4FGL_J2256.0-2740_daily_bin1498.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595336/ft1_filtered_4FGL_J2256.0-2740_daily_bin1498.fits" evtable="EVENTS" scfile=/scratch/kocevski/595336/ft2_4FGL_J2256.0-2740_daily_bin1498.fits sctable="SC_DATA" outfile=/scratch/kocevski/595336/ltcube_627609601_627868801_4FGL_J2256.0-2740_daily_bin1498.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/595336/ft2_4FGL_J2256.0-2740_daily_bin1498.fits
.....................!
real 13.61
user 13.24
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595336/ft1_filtered_4FGL_J2256.0-2740_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/595336/ft2_4FGL_J2256.0-2740_daily_bin1498.fits sctable="SC_DATA" expcube=/scratch/kocevski/595336/ltcube_627609601_627868801_4FGL_J2256.0-2740_daily_bin1498.fits outfile=/scratch/kocevski/595336/expmap_627609601_627868801_4FGL_J2256.0-2740_daily_bin1498.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/595336/ltcube_627609601_627868801_4FGL_J2256.0-2740_daily_bin1498.fits
.....................!
real 190.58
user 185.24
sys 4.81

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

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595336/ft1_filtered_4FGL_J2256.0-2740_daily_bin1498.fits scfile=/scratch/kocevski/595336/ft2_4FGL_J2256.0-2740_daily_bin1498.fits outfile=/scratch/kocevski/595336/cmap_HighResolution_627609601_627868801_4FGL_J2256.0-2740_daily_bin1498.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595336/ft1_filtered_4FGL_J2256.0-2740_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/595336/ft2_4FGL_J2256.0-2740_daily_bin1498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595336/Model_4FGL_J2256.0-2740_daily_bin1498.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/595336/ft1_filtered_4FGL_J2256.0-2740_daily_bin1498.fits.....................!
real 46.95
user 45.70
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.8169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4073       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0305       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6570       1.0000         .10000E-03   10000.    
     9 'norm      '    .83628       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.994       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8530       1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.738       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6789       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.0903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17846E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .28366E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.004       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2830       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71208       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=   5804.392     FROM MIGRAD    STATUS=FAILED       873 CALLS     3120 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2545        .18142E-02** at limit **
   2  Prefactor     .10000E-03    5.5392        .17397E-02** at limit **
   3  norm          9.8175        12.974        .12789E-03    .37334E-05
   4  Prefactor     4.4070        19.780        .19183E-03   -.35558E-05
   5  Prefactor     9.0253        12.211        .13337E-03   -.16195E-05
   6  norm          .10000E-03    1.3556        .17080E-03** at limit **
   7  Prefactor     .10000E-03    29.481        .18142E-02** at limit **
   8  Prefactor     8.6529        14.285        .13624E-03   -.76772E-05
   9  norm          .82906        11.387        .29676E-02    .28316E-02
  10  Prefactor     .10000E-03    6.9644        .18142E-02** at limit **
  11  Prefactor     16.997        15.865        .97156E-04    .10297E-04
  12  norm          2.8535        1.2289        .38568E-04    .82536E-05
  13  Prefactor     54.728        49.995        .54216E-04   -.90168E-05
  14  Prefactor     2.6781        13.414        .24897E-03   -.41554E-05
  15  Prefactor     .10000E-03    4.6871        .16085E-02** at limit **
  16  norm          8.0892        6.4265        .14096E-03    .99203E-05
  17  Prefactor     .10000E-03    241.30        .77014E-02** at limit **
  18  norm          .10000E-03    3.4256        .33792E-01** at limit **
  19  Prefactor     16.014        34.680        .10012E-03   -.23392E-04
  20  Prefactor     .10000E-03    53.058        .18142E-02** at limit **
  21  Normalizat    1.2835        .24069        .22775E-03   -.62188E-04
  22  Prefactor     .71176        .21405        .28065E-03   -.68216E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5804.392     FROM SIMPLEX   STATUS=UNCHANGED   1101 CALLS     4221 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2545        .43222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5392        .21284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.8175        12.974        .99196E-06   -1.5081    
   4  Prefactor     4.4070        19.780        .10062E-05   -1.5288    
   5  Prefactor     9.0253        12.211        .99506E-06   -1.5107    
   6  norm          .10000E-03    1.3556        .89972E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.481        .63534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6529        14.285        .99623E-06   -1.5120    
   9  norm          .82906        11.387        .10235E-05   -1.5526    
  10  Prefactor     .10000E-03    6.9644        .45312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.997        15.865        .98079E-06   -1.4883    
  12  norm          2.8535        1.2289        .10117E-05   -1.5370    
  13  Prefactor     54.728        49.995        .93402E-06   -1.4227    
  14  Prefactor     2.6781        13.414        .10159E-05   -1.5381    
  15  Prefactor     .10000E-03    4.6871        .33672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0892        6.4265        .99609E-06   -1.5139    
  17  Prefactor     .10000E-03    241.30        .51291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4256        .13359E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.014        34.680        .98081E-06   -1.4907    
  20  Prefactor     .10000E-03    53.058        .67076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2835        .24069        .55298E-06   -.84061    
  22  Prefactor     .71176        .21405        .67837E-06   -1.0307    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5804.392     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     4556 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2551        .36285E-03** at limit **
   2  Prefactor     .10000E-03    5.5417        .34794E-03** at limit **
   3  norm          9.8175        12.974        .51158E-05    .88891E-07
   4  Prefactor     4.4070        19.774        .76734E-05    .11853E-06
   5  Prefactor     9.0253        12.210        .53350E-05    .17048E-06
   6  norm          .10000E-03    1.3556        .34159E-04** at limit **
   7  Prefactor     .10000E-03    29.483        .36285E-03** at limit **
   8  Prefactor     8.6529        14.282        .54495E-05    .83448E-07
   9  norm          .82906        10.950        .59352E-03    .45588E-05
  10  Prefactor     .10000E-03    6.9644        .36285E-03** at limit **
  11  Prefactor     16.997        15.761        .38862E-05    .58507E-06
  12  norm          2.8535        1.2273        .15427E-05     .0000    
  13  Prefactor     54.728        49.994        .10843E-04    .41939E-07
  14  Prefactor     2.6781        13.411        .99587E-05    .22832E-06
  15  Prefactor     .10000E-03    4.6873        .32170E-03** at limit **
  16  norm          8.0892        6.4261        .56383E-05    .24196E-06
  17  Prefactor     .10000E-03    252.06        .30806E-03** at limit **
  18  norm          .10000E-03    2.8597        .38494E-01** at limit **
  19  Prefactor     16.014        34.667        .40046E-05    .22711E-05
  20  Prefactor     .10000E-03    53.058        .36285E-03** at limit **
  21  Normalizat    1.2835        .24086        .45549E-04    .43429E-05
  22  Prefactor     .71176        .21401        .11226E-04    .32406E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.81754
  Prefactor  = 4.40701
  Prefactor  = 9.02532
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.65292
  norm       = 0.829061
  Prefactor  = 0.0001
  Prefactor  = 16.997
  norm       = 2.85354
  Prefactor  = 54.7281
  Prefactor  = 2.67807
  Prefactor  = 0.0001
  norm       = 8.08918
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.0136
  Prefactor  = 0.0001
  Normalizat = 1.28346
  Prefactor  = 0.711764
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.392     FROM HESSE     STATUS=OK           332 CALLS     4888 TOTAL
                     EDM=   .57E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2552        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5418        .69588E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.8175        12.974        .51158E-05   -1.5081    
   4  Prefactor     4.4070        19.774        .76734E-05   -1.5288    
   5  Prefactor     9.0253        12.210        .53350E-05   -1.5107    
   6  norm          .10000E-03    1.3556        .34159E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.483        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.6529        14.282        .54495E-05   -1.5120    
   9  norm          .82906        10.839        .23741E-04   -1.5526    
  10  Prefactor     .10000E-03    6.9644        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.997        15.713        .77725E-06   -1.4883    
  12  norm          2.8535        1.2260        .15427E-05   -1.5370    
  13  Prefactor     54.728        49.993        .10843E-04   -1.4227    
  14  Prefactor     2.6781        13.417        .19917E-05   -1.5381    
  15  Prefactor     .10000E-03    4.6873        .64340E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.0892        6.4261        .56383E-05   -1.5139    
  17  Prefactor     .10000E-03    252.07        .61611E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.9907        .37235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.014        34.569        .80093E-06   -1.4907    
  20  Prefactor     .10000E-03    53.058        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2835        .24076        .91098E-05   -.84061    
  22  Prefactor     .71176        .21392        .22452E-05   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.669e-14
Minuit parameter uncertainties:
  1  4.89772e-08
  2  8.2477e-08
  3  12.9774
  4  18.6804
  5  12.2138
  6  3.02779e-09
  7  9.45909e-08
  8  14.2876
  9  5.99633
  10  8.22682e-09
  11  15.7164
  12  1.22596
  13  50.0317
  14  11.9925
  15  1.36405e-09
  16  6.42664
  17  2.58241e-05
  18  2.77347e-05
  19  34.6123
  20  3.80269e-07
  21  0.240969
  22  0.214166
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.700e+01  1.572e+01  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.118e-01  2.142e-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.283e+00  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.72
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 1.07e-07
Energy Flux (Fixed Index): 2.30e-05 +/- 2.12e-05

TS (Fixed Index): 2.72
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 2.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595336/likelihoodResults_627609601_627868801_4FGL_J2256.0-2740_daily_bin1498.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) = 5804.25474916
delta logL = 0.136897818202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5804.23900533
delta logL = 0.152641646778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.228       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4880       1.0000          .0000       10.000    
     3 'Normalizat'    1.2668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72566       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=   5804.239     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.230        11.877        .10264E-03   -.16672E-02
   2  Index         3.4884        1.0118        .11169E-01   -.26479E-03
   3  Normalizat    1.2667        .22733        .22899E-03    .31649E-03
   4  Prefactor     .72577        .21036        .27834E-03    .18254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2297
  Index      = 3.48839
  Normalizat = 1.26667
  Prefactor  = 0.725775
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.239     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.230        11.479        .20527E-04   -1.4927    
   2  Index         3.4884        .97790        .44674E-03   -.30713    
   3  Normalizat    1.2667        .22770        .45798E-04   -.84567    
   4  Prefactor     .72577        .21063        .11133E-04   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89533e-09
Minuit parameter uncertainties:
  1  11.4803
  2  0.984897
  3  0.227875
  4  0.210858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595336': 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) = 5804.23900505
delta logL = 0.152641925607

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.523e+01  1.148e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.488e+00  9.849e-01  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.258e-01  2.109e-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.267e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.49 +/- 0.98
Photon Flux (Free Index): 1.27e-07 +/- 7.95e-08
Energy Flux (Free Index): 2.12e-05 +/- 1.41e-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/595336/cmap_HighResolution_627609601_627868801_4FGL_J2256.0-2740_daily_bin1498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='2.12e-05', photon_flux_error='1.07e-07', dlogl='1.53e-01', energy_flux='2.30e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-29 03:10:33.645001', photon_index_error2='0.98', photon_index2='3.49', ts='2.72', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='2.53e-07', energy_flux_error2='1.41e-05', EG='1.28', time_epoch_completed='1632910233.65', return_code='0', job_id='595336', GAL2='0.73', EG2='1.27', return_code2='0', energy_flux_error='2.12e-05', photon_flux_error2='7.95e-08', ts2='3.36', photon_index='3.02' WHERE bin_id='1498' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:10:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 595336: <4FGL_J2256.0-2740_daily_bin1498> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1498> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:55:13 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:55:15 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:55:15 2021
Terminated at Wed Sep 29 03:10:34 2021
Results reported at Wed Sep 29 03:10:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1498 344.025 -27.6739 627609601 627868801 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 :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

