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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin252
RA = 344.025, Dec = -27.6739
tmin = 304646401, tmax = 304905601
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='589469', job_status='RUN', time_executed='2021-09-29 02:37:37.150759', time_epoch_executed='1632908257.15' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/589469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/589469/ft1_4FGL_J2256.0-2740_daily_bin252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/589469/ft2_4FGL_J2256.0-2740_daily_bin252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/589469/ft1_4FGL_J2256.0-2740_daily_bin252.fits outfile=/scratch/kocevski/589469/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin252.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=304646401.0 tmax=304905601.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.44
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/589469/ft1_filtered_4FGL_J2256.0-2740_daily_bin252.fits" evtable="EVENTS" scfile=/scratch/kocevski/589469/ft2_4FGL_J2256.0-2740_daily_bin252.fits sctable="SC_DATA" outfile=/scratch/kocevski/589469/ltcube_304646401_304905601_4FGL_J2256.0-2740_daily_bin252.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/589469/ft2_4FGL_J2256.0-2740_daily_bin252.fits
.....................!
real 11.61
user 11.27
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/589469/ft1_filtered_4FGL_J2256.0-2740_daily_bin252.fits evtable="EVENTS" scfile=/scratch/kocevski/589469/ft2_4FGL_J2256.0-2740_daily_bin252.fits sctable="SC_DATA" expcube=/scratch/kocevski/589469/ltcube_304646401_304905601_4FGL_J2256.0-2740_daily_bin252.fits outfile=/scratch/kocevski/589469/expmap_304646401_304905601_4FGL_J2256.0-2740_daily_bin252.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/589469/ltcube_304646401_304905601_4FGL_J2256.0-2740_daily_bin252.fits
.....................!
real 192.36
user 187.92
sys 4.14

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/589469/ft1_filtered_4FGL_J2256.0-2740_daily_bin252.fits scfile=/scratch/kocevski/589469/ft2_4FGL_J2256.0-2740_daily_bin252.fits outfile=/scratch/kocevski/589469/cmap_304646401_304905601_4FGL_J2256.0-2740_daily_bin252.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/589469/ft1_filtered_4FGL_J2256.0-2740_daily_bin252.fits scfile=/scratch/kocevski/589469/ft2_4FGL_J2256.0-2740_daily_bin252.fits outfile=/scratch/kocevski/589469/cmap_HighResolution_304646401_304905601_4FGL_J2256.0-2740_daily_bin252.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/589469/ft1_filtered_4FGL_J2256.0-2740_daily_bin252.fits evtable="EVENTS" scfile=/scratch/kocevski/589469/ft2_4FGL_J2256.0-2740_daily_bin252.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/589469/Model_4FGL_J2256.0-2740_daily_bin252.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/589469/ft1_filtered_4FGL_J2256.0-2740_daily_bin252.fits.....................!
real 51.95
user 50.66
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.195       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.086       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.519       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0661       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12105E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.3731       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72780E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .88026       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2608       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7821       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3898       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.123       1.0000         .10000E-03   10000.    
    18 'norm      '    7.5129       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.781       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70405       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91325       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=   6788.689     FROM MIGRAD    STATUS=CONVERGED    868 CALLS     2815 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.193        14.548        .12549E-03   -.27993E-04
   2  Prefactor     .10000E-03    1.6846        .10418E-02** at limit **
   3  norm          6.8050        10.414        .15377E-03   -.35783E-04
   4  Prefactor     15.090        14.986        .10312E-03   -.33405E-04
   5  Prefactor     20.514        11.072        .88423E-04    .16972E-04
   6  norm          3.0640        1.8469        .83428E-04   -.19623E-04
   7  Prefactor     .10000E-03    225.03        .82984E-02** at limit **
   8  Prefactor     .10000E-03    2.4377        .12537E-02** at limit **
   9  norm          7.3727        3.4571        .98612E-04    .45331E-03
  10  Prefactor     .10000E-03    4.2996        .16651E-02** at limit **
  11  Prefactor     .10002E-03    81.717        .22790E-02** at limit **
  12  norm          .88016        .42897        .35285E-04    .14451E-02
  13  Prefactor     8.2605        16.676        .69743E-03   -.29099E-03
  14  Prefactor     .10000E-03    7.9069        .18142E-02** at limit **
  15  Prefactor     2.7821        3.4760        .16608E-03    .10487E-03
  16  norm          2.3898        3.1027        .16145E-03   -.38800E-04
  17  Prefactor     11.129        21.668        .12013E-03   -.17035E-04
  18  norm          7.5129        2.8659        .82840E-04   -.18609E-03
  19  Prefactor     .10000E-03    11.842        .18142E-02** at limit **
  20  Prefactor     14.910        78.862        .10418E-03   -.14732E-04
  21  Normalizat    .70392        .17196        .23632E-03   -.59412E-04
  22  Prefactor     .91336        .16970        .21365E-03    .23349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1926
  Prefactor  = 0.0001
  norm       = 6.80502
  Prefactor  = 15.0902
  Prefactor  = 20.5141
  norm       = 3.06404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.37272
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  norm       = 0.880157
  Prefactor  = 8.26049
  Prefactor  = 0.0001
  Prefactor  = 2.78215
  norm       = 2.38979
  Prefactor  = 11.1295
  norm       = 7.51289
  Prefactor  = 0.000100001
  Prefactor  = 14.9097
  Normalizat = 0.703917
  Prefactor  = 0.913356
 **********
 **   18 **HESSE 
 **********

 FCN=   6788.689     FROM HESSE     STATUS=OK           320 CALLS     3135 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.193        14.548        .50196E-05   -1.5069    
   2  Prefactor     .10000E-03    1.6847        .20836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8050        10.414        .61508E-05   -1.5186    
   4  Prefactor     15.090        14.986        .41248E-05   -1.4931    
   5  Prefactor     20.514        11.062        .35369E-05   -1.4802    
   6  norm          3.0640        1.8365        .33371E-05   -1.5358    
   7  Prefactor     .10000E-03    229.80        .33194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4378        .25073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.3727        3.4514        .39445E-05   -1.5165    
  10  Prefactor     .10000E-03    4.2999        .33302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    83.984        .91161E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .88016        .42695        .14114E-05   -1.5520    
  13  Prefactor     8.2605        16.676        .27897E-04   -1.5133    
  14  Prefactor     .10000E-03    7.9095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.7821        3.4749        .66433E-05   -1.5374    
  16  norm          2.3898        3.1026        .64579E-05   -1.5399    
  17  Prefactor     11.129        21.668        .48050E-05   -1.5041    
  18  norm          7.5129        2.8659        .33136E-05   -1.5160    
  19  Prefactor     .10000E-03    11.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.910        79.057        .41672E-05   -1.4936    
  21  Normalizat    .70392        .17204        .94528E-05   -1.0374    
  22  Prefactor     .91336        .16983        .42730E-04   -.95676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03226e-09
Minuit parameter uncertainties:
  1  14.5535
  2  3.48151e-06
  3  10.4171
  4  14.9895
  5  11.0627
  6  1.83654
  7  0.000608422
  8  6.64671e-06
  9  3.45149
  10  4.04811e-06
  11  0.00283495
  12  0.426953
  13  16.6851
  14  3.38422e-05
  15  3.47513
  16  3.10283
  17  21.6834
  18  2.86594
  19  0.00019711
  20  68.807
  21  0.172167
  22  0.169933
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.835e-03  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:  9.134e-01  1.699e-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.039e-01  1.722e-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: 7.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/589469/likelihoodResults_304646401_304905601_4FGL_J2256.0-2740_daily_bin252.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) = 6788.68881004
delta logL = -5.85619436606e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6788.63577118
delta logL = 0.0529803026147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74935       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5997       1.0000          .0000       10.000    
     3 'Normalizat'    .69154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92107       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=   6788.636     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      326 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74460        8.4813        .20818E-03   -.82352E-03
   2  Index         4.5976        7.2987        .36605E-01   -.43937E-04
   3  Normalizat    .69160        .16884        .23813E-03   -.16982E-03
   4  Prefactor     .92102        .17027        .21279E-03   -.93281E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.744602
  Index      = 4.59762
  Normalizat = 0.691595
  Prefactor  = 0.921023
 **********
 **   18 **HESSE 
 **********

 FCN=   6788.636     FROM HESSE     STATUS=OK            25 CALLS      351 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74460        3.5708        .83272E-05   -1.5535    
   2  Index         4.5976        4.1229        .14642E-02   -.80564E-01
   3  Normalizat    .69160        .16871        .95252E-05   -1.0423    
   4  Prefactor     .92102        .17045        .85118E-05   -.95410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16468e-09
Minuit parameter uncertainties:
  1  3.26128
  2  4.85531
  3  0.168834
  4  0.17055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/589469': 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) = 6788.63576815
delta logL = 0.0529833260653

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.446e-01  3.261e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.598e+00  4.855e+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:  9.210e-01  1.706e-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:  6.916e-01  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.025 -27.674

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/589469/cmap_HighResolution_304646401_304905601_4FGL_J2256.0-2740_daily_bin252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2021-09-29 02:49:11.357250', job_id='589469', GAL2='0.92', fit_tolerance='1e-08', EG2='0.69', EG='0.70', time_epoch_completed='1632908951.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.30e-02', ts2='0.11', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='252' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:49:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 589469: <4FGL_J2256.0-2740_daily_bin252> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin252> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:35:34 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 02:35:35 2021
Terminated at Wed Sep 29 02:49:12 2021
Results reported at Wed Sep 29 02:49:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin252 344.025 -27.6739 304646401 304905601 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 :                                   687.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

