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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1643
RA = 344.025, Dec = -27.6739
tmin = 665193601, tmax = 665452801
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='496632', job_status='RUN', time_executed='2022-02-02 00:36:10.996120', time_epoch_executed='1643790971.0' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496632

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496632/ft1_4FGL_J2256.0-2740_daily_bin1643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496632/ft2_4FGL_J2256.0-2740_daily_bin1643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496632/ft1_4FGL_J2256.0-2740_daily_bin1643.fits outfile=/scratch/kocevski/496632/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1643.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=665193601.0 tmax=665452801.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.65
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496632/ft1_filtered_4FGL_J2256.0-2740_daily_bin1643.fits" evtable="EVENTS" scfile=/scratch/kocevski/496632/ft2_4FGL_J2256.0-2740_daily_bin1643.fits sctable="SC_DATA" outfile=/scratch/kocevski/496632/ltcube_665193601_665452801_4FGL_J2256.0-2740_daily_bin1643.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/496632/ft2_4FGL_J2256.0-2740_daily_bin1643.fits
.....................!
real 12.07
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496632/ft1_filtered_4FGL_J2256.0-2740_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496632/ft2_4FGL_J2256.0-2740_daily_bin1643.fits sctable="SC_DATA" expcube=/scratch/kocevski/496632/ltcube_665193601_665452801_4FGL_J2256.0-2740_daily_bin1643.fits outfile=/scratch/kocevski/496632/expmap_665193601_665452801_4FGL_J2256.0-2740_daily_bin1643.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/496632/ltcube_665193601_665452801_4FGL_J2256.0-2740_daily_bin1643.fits
.....................!
real 193.59
user 187.85
sys 5.27

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/496632/ft1_filtered_4FGL_J2256.0-2740_daily_bin1643.fits scfile=/scratch/kocevski/496632/ft2_4FGL_J2256.0-2740_daily_bin1643.fits outfile=/scratch/kocevski/496632/cmap_665193601_665452801_4FGL_J2256.0-2740_daily_bin1643.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496632/ft1_filtered_4FGL_J2256.0-2740_daily_bin1643.fits scfile=/scratch/kocevski/496632/ft2_4FGL_J2256.0-2740_daily_bin1643.fits outfile=/scratch/kocevski/496632/cmap_HighResolution_665193601_665452801_4FGL_J2256.0-2740_daily_bin1643.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/496632/ft1_filtered_4FGL_J2256.0-2740_daily_bin1643.fits evtable="EVENTS" scfile=/scratch/kocevski/496632/ft2_4FGL_J2256.0-2740_daily_bin1643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496632/Model_4FGL_J2256.0-2740_daily_bin1643.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/496632/ft1_filtered_4FGL_J2256.0-2740_daily_bin1643.fits.....................!
real 42.09
user 40.78
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2209       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    28.913       1.0000         .10000E-03   10000.    
     4 'Prefactor '    61.478       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.933       1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.914       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.593       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2238       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.164       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6215       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.434       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4668       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.561       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0801       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5748       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .45546       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=   4730.540     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2386 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2199        20.778        .37348E-07    .31507E-04
   2  Prefactor     .10000E-03    3.6143       -.22257E-07** at limit **
   3  norm          28.910        27.704       -.14309E-06    .68506E-04
   4  Prefactor     61.482        34.203        .20873E-07    .61958E-04
   5  Prefactor     21.934        14.152       -.98731E-07    .12305E-03
   6  norm          .10000E-03    3.0363       -.24590E-05** at limit **
   7  Prefactor     42.890        53.896        .25680E-05   -.84074E-04
   8  Prefactor     13.597        14.317        .31974E-06   -.20143E-03
   9  norm          2.2236        5.5882        .60010E-05   -.65393E-03
  10  Prefactor     36.155        33.341       -.24955E-05   -.69312E-04
  11  Prefactor     5.6298        17.111       -.42703E-06   -.94671E-04
  12  norm          .10000E-03    .23100       -.26603E-06** at limit **
  13  Prefactor     58.442        91.155        .10307E-06    .39073E-04
  14  Prefactor     7.4667        12.659        .56703E-07    .57411E-05
  15  Prefactor     .10000E-03    7.3876       -.57070E-06** at limit **
  16  norm          15.563        10.723        .12626E-06   -.40675E-04
  17  Prefactor     .10000E-03    23.587        .16559E-07** at limit **
  18  norm          1.0793        2.9164        .18997E-05    .96402E-03
  19  Prefactor     21.639        43.274       -.44016E-05    .13436E-03
  20  Prefactor     .10000E-03    124.88        .66830E-06** at limit **
  21  Normalizat    1.5745        .24046       -.10672E-05    .34511E-05
  22  Prefactor     .45572        .20963        .71359E-06    .74789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.21995
  Prefactor  = 0.0001
  norm       = 28.9102
  Prefactor  = 61.4817
  Prefactor  = 21.9339
  norm       = 0.000100004
  Prefactor  = 42.8905
  Prefactor  = 13.5967
  norm       = 2.22359
  Prefactor  = 36.1555
  Prefactor  = 5.6298
  norm       = 0.0001
  Prefactor  = 58.4424
  Prefactor  = 7.46668
  Prefactor  = 0.0001
  norm       = 15.5634
  Prefactor  = 0.0001
  norm       = 1.07928
  Prefactor  = 21.6388
  Prefactor  = 0.000100001
  Normalizat = 1.57452
  Prefactor  = 0.455722
 **********
 **   18 **HESSE 
 **********

 FCN=   4730.540     FROM HESSE     STATUS=OK           342 CALLS     2728 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2199        20.765        .13198E-03   -1.5101    
   2  Prefactor     .10000E-03    3.6223        .12769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          28.910        27.687        .74509E-04   -1.4632    
   4  Prefactor     61.482        34.261        .51175E-04   -1.4138    
   5  Prefactor     21.934        14.153        .85526E-04   -1.4771    
   6  norm          .10000E-03    3.2898        .23779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.890        53.835        .61196E-04   -1.4397    
   8  Prefactor     13.597        14.308        .10864E-03   -1.4970    
   9  norm          2.2236        5.6773        .10908E-02   -1.5410    
  10  Prefactor     36.155        32.823        .66642E-04   -1.4505    
  11  Prefactor     5.6298        16.806        .16943E-03   -1.5233    
  12  norm          .10000E-03    .23418        .32128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     58.442        91.750        .52483E-04   -1.4178    
  14  Prefactor     7.4667        12.651        .14677E-03   -1.5161    
  15  Prefactor     .10000E-03    7.4158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.563        10.728        .10153E-03   -1.4919    
  17  Prefactor     .10000E-03    23.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0793        2.8510        .17820E-03   -1.5500    
  19  Prefactor     21.639        43.089        .86156E-04   -1.4777    
  20  Prefactor     .10000E-03    125.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5745        .28295        .22534E-03   -.75705    
  22  Prefactor     .45572        .23999        .35708E-03   -1.1405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76731e-09
Minuit parameter uncertainties:
  1  20.7812
  2  8.70349e-07
  3  27.6989
  4  34.2717
  5  14.155
  6  0.000221858
  7  53.8962
  8  14.312
  9  5.67866
  10  32.839
  11  16.8205
  12  6.93511e-06
  13  91.9732
  14  12.656
  15  7.41678e-05
  16  10.7298
  17  1.06595e-05
  18  2.85134
  19  43.151
  20  0.000667882
  21  0.283235
  22  0.240527
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.630e+00  1.682e+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:  4.557e-01  2.405e-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.575e+00  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/496632/likelihoodResults_665193601_665452801_4FGL_J2256.0-2740_daily_bin1643.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) = 4730.41711994
delta logL = 0.12283881311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4730.41188408
delta logL = 0.128074668189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9767       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2257       1.0000          .0000       10.000    
     3 'Normalizat'    1.5495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47301       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4730.412     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      275 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9635        17.382        .90135E-03   -.16759E-03
   2  Index         4.2312        6.9114        .17016E-01   -.18390E-04
   3  Normalizat    1.5495        .26714        .22673E-03   -.15745E-04
   4  Prefactor     .47300        .23559        .35102E-03   -.47610E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.96354
  Index      = 4.2312
  Normalizat = 1.54952
  Prefactor  = 0.473002
 **********
 **   18 **HESSE 
 **********

 FCN=   4730.412     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9635        12.117        .36054E-04   -1.5262    
   2  Index         4.2312        3.1943        .68065E-03   -.15437    
   3  Normalizat    1.5495        .26723        .90691E-05   -.76396    
   4  Prefactor     .47300        .23588        .14041E-04   -1.1323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.68156e-11
Minuit parameter uncertainties:
  1  12.1227
  2  3.47352
  3  0.267473
  4  0.236372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496632': 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) = 4730.41188266
delta logL = 0.128076090287

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.964e+00  1.212e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.231e+00  3.474e+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:  4.730e-01  2.364e-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.550e+00  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/496632/cmap_HighResolution_665193601_665452801_4FGL_J2256.0-2740_daily_bin1643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', job_status='DONE', photon_flux_upper_limit='2.03e-07', time_completed='2022-02-02 00:45:20.873492', job_id='496632', GAL2='0.47', fit_tolerance='1e-08', EG2='1.55', EG='1.57', time_epoch_completed='1643791520.87', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='1.28e-01', ts2='0.55', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1643' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb  2 00:45:20 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 496632: <4FGL_J2256.0-2740_daily_bin1643> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1643> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Feb  2 00:35:57 2022
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb  2 00:35:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb  2 00:35:58 2022
Terminated at Wed Feb  2 00:45:21 2022
Results reported at Wed Feb  2 00:45:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1643 344.025 -27.6739 665193601 665452801 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 :                                   552.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            564 sec.

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

