/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 188 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1770
RA = 344.025, Dec = -27.6739
tmin = 698112001, tmax = 698371201
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='504236', job_status='RUN', time_executed='2023-02-18 02:08:31.710156', time_epoch_executed='1676714911.71' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504236

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504236/ft1_4FGL_J2256.0-2740_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504236/ft2_4FGL_J2256.0-2740_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504236/ft1_4FGL_J2256.0-2740_daily_bin1770.fits outfile=/scratch/kocevski/504236/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1770.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.35
user 4.14
sys 0.19

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

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

Number of photons that the gtmktime cut: 392

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504236/ft1_filtered_4FGL_J2256.0-2740_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/504236/ft2_4FGL_J2256.0-2740_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/504236/ltcube_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.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/504236/ft2_4FGL_J2256.0-2740_daily_bin1770.fits
.....................!
real 12.18
user 11.85
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504236/ft1_filtered_4FGL_J2256.0-2740_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/504236/ft2_4FGL_J2256.0-2740_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/504236/ltcube_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.fits outfile=/scratch/kocevski/504236/expmap_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.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/504236/ltcube_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.fits
.....................!
real 192.45
user 185.83
sys 4.05

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/504236/ft1_filtered_4FGL_J2256.0-2740_daily_bin1770.fits scfile=/scratch/kocevski/504236/ft2_4FGL_J2256.0-2740_daily_bin1770.fits outfile=/scratch/kocevski/504236/cmap_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504236/ft1_filtered_4FGL_J2256.0-2740_daily_bin1770.fits scfile=/scratch/kocevski/504236/ft2_4FGL_J2256.0-2740_daily_bin1770.fits outfile=/scratch/kocevski/504236/cmap_HighResolution_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504236/ft1_filtered_4FGL_J2256.0-2740_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/504236/ft2_4FGL_J2256.0-2740_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504236/Model_4FGL_J2256.0-2740_daily_bin1770.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/504236/ft1_filtered_4FGL_J2256.0-2740_daily_bin1770.fits.....................!
real 38.48
user 35.99
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504236/ft1_filtered_4FGL_J2256.0-2740_daily_bin1770.fits', '/scratch/kocevski/504236/ft2_4FGL_J2256.0-2740_daily_bin1770.fits', expMap='/scratch/kocevski/504236/expmap_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.fits', expCube='/scratch/kocevski/504236/ltcube_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504236/Model_4FGL_J2256.0-2740_daily_bin1770.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  0.000e+00  1.000e+06 ( 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/504236/ft1_filtered_4FGL_J2256.0-2740_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/504236/ft2_4FGL_J2256.0-2740_daily_bin1770.fits
Exposure map: /scratch/kocevski/504236/expmap_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.fits
Exposure cube: /scratch/kocevski/504236/ltcube_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504236/Model_4FGL_J2256.0-2740_daily_bin1770.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) = 4283.4604974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22067E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16197E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .82092E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    18.613       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.581       1.0000          .0000       .10000E+07
     6 'norm      '    2.1968       1.0000          .0000       .10000E+07
     7 'Prefactor '    10.945       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.5463       1.0000          .0000       .10000E+07
     9 'norm      '    .51951E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .19601E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    25.164       1.0000          .0000       .10000E+07
    12 'norm      '    .92040       1.0000          .0000       .10000E+07
    13 'Prefactor '    .35602E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .22430E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .41300E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.2468       1.0000          .0000       .10000E+07
    17 'norm      '    3.1025       1.0000          .0000       .10000E+07
    18 'Normalizat'    .64735       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4283.436     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1360 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.9787        .15397E-06** at limit **
   2  Prefactor     .38303E-07    5.4454        .23788E-06** at limit **
   3  norm          .23648E-07    17.890       -.87093E-06** at limit **
   4  Prefactor     19.588        23.457        .42397E-06    .38627E-01
   5  Prefactor     12.619        1.7339       -.23267E-07   -.35967E-02
   6  norm          2.1988        2.3822       -.17143E-06   -.13115E-02
   7  Prefactor     10.864        8.2522       -.28349E-06    .99033E-01
   8  Prefactor     1.5117        1.8747        .75322E-07    .27755E-02
   9  norm          .45852E-07    7.9139       -.25732E-06** at limit **
  10  Prefactor     .68001E-07    7.2361       -.28587E-06** at limit **
  11  Prefactor     25.205        5.1798        .11805E-06   -.61210E-02
  12  norm          .92027        .69246       -.89364E-08    .16097E-02
  13  Prefactor     .39968E-08    3.2244        .23194E-06** at limit **
  14  Prefactor     .10902E-06    67.036        .10216E-05** at limit **
  15  norm          .24425E-08    3.8595        .74021E-06** at limit **
  16  Prefactor     .59822        22.008       -.90753E-06    .37958E-03
  17  norm          3.1314        3.1184       -.19040E-06   -.59600E-03
  18  Normalizat    .64657        .23044       -.10669E-04    .73284E-05
  19  Prefactor     1.2858        .23715        .10177E-04    .30624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.83027e-08
  norm       = 2.36478e-08
  Prefactor  = 19.5884
  Prefactor  = 12.6186
  norm       = 2.19883
  Prefactor  = 10.8636
  Prefactor  = 1.51174
  norm       = 4.58522e-08
  Prefactor  = 6.80012e-08
  Prefactor  = 25.2046
  norm       = 0.920275
  Prefactor  = 3.9968e-09
  Prefactor  = 1.09024e-07
  norm       = 2.44249e-09
  Prefactor  = 0.598223
  norm       = 3.13135
  Normalizat = 0.64657
  Prefactor  = 1.28575
 **********
 **   18 **HESSE 
 **********

 FCN=   4283.436     FROM HESSE     STATUS=OK           322 CALLS     1682 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.1640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38303E-07    5.5305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .23648E-07    17.967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.588        25.401        .23187E-03   -1.5619    
   5  Prefactor     12.619        13.968        .28215E-03   -1.5637    
   6  norm          2.1988        2.6598        .69397E-03   -1.5678    
   7  Prefactor     10.864        102.00        .30259E-03   -1.5642    
   8  Prefactor     1.5117        18.836        .85659E-03   -1.5683    
   9  norm          .45852E-07    7.7273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .68001E-07    8.1476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.205        15.177        .19939E-03   -1.5608    
  12  norm          .92027        .80144        .44360E-03   -1.5689    
  13  Prefactor     .39968E-08    6.2525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10902E-06    9.8296        .11910E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .24425E-08    3.8637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .59822        18.699        .15329E-01   -1.5692    
  17  norm          3.1314        3.1340        .57547E-03   -1.5673    
  18  Normalizat    .64657        .20860        .64129E-01   -1.0604    
  19  Prefactor     1.2858        .20226        .48645E-01   -.83732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14043e-06
Minuit parameter uncertainties:
  1  7.51127e-07
  2  0.00092054
  3  0.00130363
  4  25.4007
  5  13.968
  6  2.6598
  7  66.5765
  8  10.6724
  9  0.00119047
  10  0.00148843
  11  15.1772
  12  0.80144
  13  0.000316037
  14  0.00207039
  15  0.000193652
  16  6.6892
  17  3.13395
  18  0.208859
  19  0.202384
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.286e+00  2.024e-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.466e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.23
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 1.72e-07 +/- 1.04e-07
Energy Flux (Fixed Index): 3.40e-05 +/- 2.05e-05

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) = 4282.7608079
delta logL = 0.675607485578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4282.76010815
delta logL = 0.676307233112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.912       1.0000          .0000       .10000E+07
     2 'Index     '    3.9484       1.0000          .0000       10.000    
     3 'Normalizat'    .59077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3304       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=   4282.760     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      304 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.917        12.195        .89670E-05   -.19613E-02
   2  Index         3.9480        .91016        .74939E-02   -.35220E-04
   3  Normalizat    .59102        .24002        .29563E-03   -.36853E-03
   4  Prefactor     1.3302        .24219        .21203E-03   -.72489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9173
  Index      = 3.94804
  Normalizat = 0.591015
  Prefactor  = 1.33022
 **********
 **   18 **HESSE 
 **********

 FCN=   4282.760     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.917        11.763        .35868E-06   -1.5619    
   2  Index         3.9480        .87772        .29976E-03   -.21198    
   3  Normalizat    .59102        .24031        .11825E-04   -1.0837    
   4  Prefactor     1.3302        .24240        .42405E-04   -.82413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84086e-10
Minuit parameter uncertainties:
  1  11.7633
  2  0.882503
  3  0.240739
  4  0.242605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504236': 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) = 4282.76010737
delta logL = 0.67630802001

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.992e+01  1.176e+01  0.000e+00  1.000e+06 ( 1.000e-11)
341        Index:  3.948e+00  8.825e-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:  1.330e+00  2.426e-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:  5.910e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.24
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 3.95 +/- 0.88
Photon Flux (Free Index): 2.09e-07 +/- 8.90e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.37e-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/504236/cmap_HighResolution_698112001_698371201_4FGL_J2256.0-2740_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.72e-07', energy_flux2='3.16e-05', photon_flux_error='1.04e-07', dlogl='6.76e-01', energy_flux='3.40e-05', photon_flux2='2.09e-07', job_status='DONE', time_completed='2023-02-18 02:15:56.067146', photon_index_error2='0.88', photon_index2='3.95', ts='7.23', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.65', time_epoch_completed='1676715356.07', return_code='0', job_id='504236', GAL2='1.33', EG2='0.59', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='8.90e-08', ts2='9.24', photon_index='3.02' WHERE bin_id='1770' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 02:15:56 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 504236: <4FGL_J2256.0-2740_daily_bin1770> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1770> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Feb 18 02:05:14 2023
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 02:05:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 02:05:15 2023
Terminated at Sat Feb 18 02:15:56 2023
Results reported at Sat Feb 18 02:15:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1770 344.025 -27.6739 698112001 698371201 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 :                                   443.00 sec.
    Max Memory :                                 1153 MB
    Average Memory :                             257.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            642 sec.

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

