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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin628
RA = 344.025, Dec = -27.6739
tmin = 402105601, tmax = 402364801
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='591072', job_status='RUN', time_executed='2021-09-29 02:42:22.887268', time_epoch_executed='1632908542.89' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591072

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591072/ft1_4FGL_J2256.0-2740_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591072/ft2_4FGL_J2256.0-2740_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591072/ft1_4FGL_J2256.0-2740_daily_bin628.fits outfile=/scratch/kocevski/591072/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin628.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=402105601.0 tmax=402364801.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.51
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/591072/ft2_4FGL_J2256.0-2740_daily_bin628.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/591072/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin628.fits evtable="EVENTS" outfile="/scratch/kocevski/591072/ft1_filtered_4FGL_J2256.0-2740_daily_bin628.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591072/ft1_filtered_4FGL_J2256.0-2740_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/591072/ft2_4FGL_J2256.0-2740_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/591072/ltcube_402105601_402364801_4FGL_J2256.0-2740_daily_bin628.fits outfile=/scratch/kocevski/591072/expmap_402105601_402364801_4FGL_J2256.0-2740_daily_bin628.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/591072/ltcube_402105601_402364801_4FGL_J2256.0-2740_daily_bin628.fits
.....................!
real 191.06
user 185.52
sys 5.16

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/591072/ft1_filtered_4FGL_J2256.0-2740_daily_bin628.fits scfile=/scratch/kocevski/591072/ft2_4FGL_J2256.0-2740_daily_bin628.fits outfile=/scratch/kocevski/591072/cmap_402105601_402364801_4FGL_J2256.0-2740_daily_bin628.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/591072/ft1_filtered_4FGL_J2256.0-2740_daily_bin628.fits scfile=/scratch/kocevski/591072/ft2_4FGL_J2256.0-2740_daily_bin628.fits outfile=/scratch/kocevski/591072/cmap_HighResolution_402105601_402364801_4FGL_J2256.0-2740_daily_bin628.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6673       1.0000         .10000E-03   10000.    
     3 'norm      '    17.504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.6357       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8551       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5962       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2147       1.0000         .10000E-03   10000.    
    12 'norm      '    .29693       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10406E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4264       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89615       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82201       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=   6149.915     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2382 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.823       -.29353E-06** at limit **
   2  Prefactor     5.6675        5.6698        .49992E-07    .16537E-05
   3  norm          17.505        13.078        .16452E-07    .33209E-04
   4  Prefactor     .10000E-03    7.1875        .18671E-07** at limit **
   5  Prefactor     .10000E-03    2.8139       -.61191E-08** at limit **
   6  norm          4.6354        2.1350        .34567E-07    .80634E-03
   7  Prefactor     .10000E-03    44.504       -.32759E-05** at limit **
   8  Prefactor     2.8542        7.7644        .20539E-05    .85096E-04
   9  norm          1.5959        2.0059       -.84991E-07    .26798E-04
  10  Prefactor     8.7104        13.960       -.20615E-05   -.11173E-05
  11  Prefactor     1.2149        14.169        .45026E-05    .40290E-04
  12  norm          .29724        .41829       -.25205E-06    .52597E-04
  13  Prefactor     .10000E-03    24.670        .15915E-05** at limit **
  14  Prefactor     .10005E-03    7.8677        .15761E-05** at limit **
  15  Prefactor     .10000E-03    7.4795       -.85323E-07** at limit **
  16  norm          .10000E-03    5.8883        .83622E-08** at limit **
  17  Prefactor     .10000E-03    62.699        .30743E-05** at limit **
  18  norm          3.4264        2.9049        .58367E-07    .10680E-04
  19  Prefactor     .10000E-03    7.0730       -.13979E-06** at limit **
  20  Prefactor     .10000E-03    19.135       -.33521E-06** at limit **
  21  Normalizat    .89617        .15381       -.11890E-05   -.37793E-04
  22  Prefactor     .82196        .14796        .62610E-06   -.80987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.66748
  norm       = 17.5047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.63543
  Prefactor  = 0.0001
  Prefactor  = 2.85422
  norm       = 1.59587
  Prefactor  = 8.71043
  Prefactor  = 1.21487
  norm       = 0.297237
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.42638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.896173
  Prefactor  = 0.821963
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.915     FROM HESSE     STATUS=OK           346 CALLS     2728 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6675        5.6704        .16874E-03   -1.5232    
   3  norm          17.505        13.077        .95730E-04   -1.4871    
   4  Prefactor     .10000E-03    7.2038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8256        .12846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.6354        2.1358        .75079E-04   -1.5277    
   7  Prefactor     .10000E-03    44.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8542        7.8501        .12030E-02   -1.5370    
   9  norm          1.5959        1.9821        .11831E-03   -1.5455    
  10  Prefactor     8.7104        13.507        .13578E-03   -1.5118    
  11  Prefactor     1.2149        14.478        .34558E-03   -1.5488    
  12  norm          .29724        .39536        .53669E-03   -1.5599    
  13  Prefactor     .10000E-03    24.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    44.810        .38504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.0308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    63.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4264        2.8987        .11804E-03   -1.5338    
  19  Prefactor     .10000E-03    7.0792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89617        .18249        .21385E-03   -.96595    
  22  Prefactor     .82196        .17750        .22313E-03   -.98924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26599e-09
Minuit parameter uncertainties:
  1  1.05197e-07
  2  5.67095
  3  13.0796
  4  5.19745e-07
  5  5.64142e-07
  6  2.13586
  7  8.00284e-05
  8  7.85294
  9  1.98214
  10  13.5119
  11  8.38989
  12  0.395364
  13  5.77112e-05
  14  0.00309812
  15  4.04032e-06
  16  6.57408e-06
  17  7.96534e-05
  18  2.89884
  19  3.01175e-06
  20  1.21352e-05
  21  0.182613
  22  0.17762
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.215e+00  8.390e+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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.220e-01  1.776e-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:  8.962e-01  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 344.025 -27.674
Photon Flux Upper Limit: 9.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/591072/likelihoodResults_402105601_402364801_4FGL_J2256.0-2740_daily_bin628.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) = 6149.91492601
delta logL = 0.000371721430383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6149.91488167
delta logL = 0.000416059314375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1999       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1109       1.0000          .0000       10.000    
     3 'Normalizat'    .89555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82239       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=   6149.915     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      265 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2030        5.8710        .34048E-03    .45150E-04
   2  Index         3.1219        3.2546        .20736E-01   -.29022E-04
   3  Normalizat    .89569        .17662        .21390E-03   -.56869E-05
   4  Prefactor     .82235        .17514        .22309E-03    .45355E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.20299
  Index      = 3.12185
  Normalizat = 0.895686
  Prefactor  = 0.822345
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.915     FROM HESSE     STATUS=OK            27 CALLS      292 TOTAL
                     EDM=   .43E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2030        5.6709        .68096E-04   -1.5489    
   2  Index         3.1219        3.2152        .41472E-02   -.38508    
   3  Normalizat    .89569        .17696        .85562E-05   -.96612    
   4  Prefactor     .82235        .17541        .89235E-05   -.98910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33751e-13
Minuit parameter uncertainties:
  1  5.22437
  2  3.55328
  3  0.177071
  4  0.175531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591072': 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) = 6149.91487468
delta logL = 0.000423045128628

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.223e-01  1.755e-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:  8.957e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/591072/cmap_HighResolution_402105601_402364801_4FGL_J2256.0-2740_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.00e-08', time_completed='2021-09-29 02:52:52.757370', job_id='591072', GAL2='0.82', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632909172.76', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.23e-04', ts2='0.06', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='628' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 591072: <4FGL_J2256.0-2740_daily_bin628> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin628> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:44 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:40:46 2021
Terminated at Wed Sep 29 02:52:53 2021
Results reported at Wed Sep 29 02:52:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin628 344.025 -27.6739 402105601 402364801 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 :                                   623.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

