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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1084
RA = 344.025, Dec = -27.6739
tmin = 520300801, tmax = 520560001
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='592773', job_status='RUN', time_executed='2021-09-29 02:46:52.852044', time_epoch_executed='1632908812.85' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592773

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592773/ft1_4FGL_J2256.0-2740_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592773/ft2_4FGL_J2256.0-2740_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592773/ft1_4FGL_J2256.0-2740_daily_bin1084.fits outfile=/scratch/kocevski/592773/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1084.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.06
user 5.79
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592773/ft1_filtered_4FGL_J2256.0-2740_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/592773/ft2_4FGL_J2256.0-2740_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/592773/ltcube_520300801_520560001_4FGL_J2256.0-2740_daily_bin1084.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/592773/ft2_4FGL_J2256.0-2740_daily_bin1084.fits
.....................!
real 11.76
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592773/ft1_filtered_4FGL_J2256.0-2740_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/592773/ft2_4FGL_J2256.0-2740_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/592773/ltcube_520300801_520560001_4FGL_J2256.0-2740_daily_bin1084.fits outfile=/scratch/kocevski/592773/expmap_520300801_520560001_4FGL_J2256.0-2740_daily_bin1084.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/592773/ltcube_520300801_520560001_4FGL_J2256.0-2740_daily_bin1084.fits
.....................!
real 190.65
user 185.40
sys 4.87

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/592773/ft1_filtered_4FGL_J2256.0-2740_daily_bin1084.fits scfile=/scratch/kocevski/592773/ft2_4FGL_J2256.0-2740_daily_bin1084.fits outfile=/scratch/kocevski/592773/cmap_520300801_520560001_4FGL_J2256.0-2740_daily_bin1084.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592773/ft1_filtered_4FGL_J2256.0-2740_daily_bin1084.fits scfile=/scratch/kocevski/592773/ft2_4FGL_J2256.0-2740_daily_bin1084.fits outfile=/scratch/kocevski/592773/cmap_HighResolution_520300801_520560001_4FGL_J2256.0-2740_daily_bin1084.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/592773/ft1_filtered_4FGL_J2256.0-2740_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/592773/ft2_4FGL_J2256.0-2740_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/592773/Model_4FGL_J2256.0-2740_daily_bin1084.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/592773/ft1_filtered_4FGL_J2256.0-2740_daily_bin1084.fits.....................!
real 54.70
user 53.26
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7981       1.0000         .10000E-03   10000.    
     3 'norm      '    4.3206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.225       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8770       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.841       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.737       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.256       1.0000         .10000E-03   10000.    
    12 'norm      '    .68576       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30635E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8868       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.308       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13842E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3717       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.583       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10808E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2224       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .53678       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=   6786.434     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     2699 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3870        .16835E-02** at limit **
   2  Prefactor     5.7943        5.5463        .16679E-03   -.40351E-04
   3  norm          4.3195        10.550        .19380E-03   -.11850E-03
   4  Prefactor     28.252        19.104        .75409E-04   -.60304E-04
   5  Prefactor     .10000E-03    9.3759        .18142E-02** at limit **
   6  norm          1.8776        1.4051        .81786E-04   -.62552E-04
   7  Prefactor     .10000E-03    24.732        .18142E-02** at limit **
   8  Prefactor     .10000E-03    6.8925        .18142E-02** at limit **
   9  norm          16.840        5.6065        .97595E-04   -.25651E-03
  10  Prefactor     18.737        17.027        .92527E-04   -.98786E-04
  11  Prefactor     13.251        10.676        .11002E-03   -.19593E-03
  12  norm          .68582        .60025        .52903E-03    .45913E-03
  13  Prefactor     .10000E-03    44.981        .15843    ** at limit **
  14  Prefactor     6.8860        7.6402        .15288E-03    .30191E-04
  15  Prefactor     .10000E-03    7.2289        .18142E-02** at limit **
  16  norm          14.316        9.1104        .10589E-03   -.49710E-04
  17  Prefactor     .10000E-03    134.86        .18142E-02** at limit **
  18  norm          3.3717        3.8259        .15541E-03   -.41595E-03
  19  Prefactor     26.578        37.805        .77699E-04   -.95107E-05
  20  Prefactor     .10000E-03    135.32        .18142E-02** at limit **
  21  Normalizat    1.2224        .20049        .21764E-03   -.13080E-03
  22  Prefactor     .53689        .17622        .28895E-03   -.13417E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.79425
  norm       = 4.31951
  Prefactor  = 28.2518
  Prefactor  = 0.0001
  norm       = 1.87758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.8403
  Prefactor  = 18.7371
  Prefactor  = 13.2506
  norm       = 0.68582
  Prefactor  = 0.0001
  Prefactor  = 6.88603
  Prefactor  = 0.0001
  norm       = 14.3158
  Prefactor  = 0.000100004
  norm       = 3.3717
  Prefactor  = 26.5775
  Prefactor  = 0.0001
  Normalizat = 1.22242
  Prefactor  = 0.536891
 **********
 **   18 **HESSE 
 **********

 FCN=   6786.434     FROM HESSE     STATUS=OK           332 CALLS     3031 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3873        .33671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7943        5.5461        .66717E-05   -1.5226    
   3  norm          4.3195        10.550        .77520E-05   -1.5292    
   4  Prefactor     28.252        19.103        .30164E-05   -1.4644    
   5  Prefactor     .10000E-03    9.3794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8776        1.4051        .32714E-05   -1.5434    
   7  Prefactor     .10000E-03    24.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.840        5.6059        .39038E-05   -1.4887    
  10  Prefactor     18.737        17.023        .37011E-05   -1.4842    
  11  Prefactor     13.251        10.673        .44007E-05   -1.4980    
  12  norm          .68582        .59953        .21161E-04   -1.5542    
  13  Prefactor     .10000E-03    45.567        .15698       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8860        7.6402        .61153E-05   -1.5183    
  15  Prefactor     .10000E-03    7.2326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.316        9.1101        .42355E-05   -1.4951    
  17  Prefactor     .10000E-03    134.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3717        3.8254        .62164E-05   -1.5341    
  19  Prefactor     26.578        37.804        .31079E-05   -1.4676    
  20  Prefactor     .10000E-03    135.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2224        .20068        .43529E-04   -.85913    
  22  Prefactor     .53689        .17639        .11558E-04   -1.1031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25009e-10
Minuit parameter uncertainties:
  1  8.65825e-06
  2  5.5466
  3  10.5543
  4  19.1073
  5  4.17647e-05
  6  1.40514
  7  3.86693e-05
  8  4.91464e-05
  9  5.60611
  10  17.0271
  11  10.6744
  12  0.599539
  13  0.000102772
  14  7.64123
  15  1.71927e-05
  16  9.11096
  17  0.00147085
  18  3.82563
  19  37.8379
  20  3.44931e-05
  21  0.200807
  22  0.176569
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.325e+01  1.067e+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:  5.369e-01  1.766e-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.222e+00  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.27
Ra Dec: 344.025 -27.674
Photon Index (Fixed Index): 3.02 +/- 0.00
Photon Flux (Fixed Index): 9.07e-08 +/- 7.29e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 1.44e-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) = 6784.05850234
delta logL = 2.37573906852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6783.82112365
delta logL = 2.61311775985

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2335       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8921       1.0000          .0000       10.000    
     3 'Normalizat'    1.2790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50073       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.

 FCN=   6783.821     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      219 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2335        4.9719        .37285E-02   -.39029E-02
   2  Index         1.8920        .26470        .12580       -.20585E-03
   3  Normalizat    1.2789        .16057        .48340E-01   -.43523E-03
   4  Prefactor     .50075        .14666        .67395E-01   -.11397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.23349
  Index      = 1.89205
  Normalizat = 1.27894
  Prefactor  = 0.50075
 **********
 **   18 **HESSE 
 **********

 FCN=   6783.821     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2335        7.2540        .13822E-03   -1.5170    
   2  Index         1.8920        .42303        .50913E-02   -.67077    
   3  Normalizat    1.2789        .19024        .21370E-03   -.84197    
   4  Prefactor     .50075        .17253        .29832E-03   -1.1194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32112e-08
Minuit parameter uncertainties:
  1  7.25484
  2  0.423856
  3  0.190343
  4  0.172714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592773': 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) = 6783.82112364
delta logL = 2.61311777035

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  7.233e+00  7.255e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.892e+00  4.239e-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:  5.008e-01  1.727e-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.279e+00  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.68
Ra Dec: 344.025 -27.674
Photon Index (Free Index): 1.89 +/- 0.42
Photon Flux (Free Index): 4.19e-08 +/- 3.88e-08
Energy Flux (Free Index): 3.84e-05 +/- 3.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/592773/cmap_HighResolution_520300801_520560001_4FGL_J2256.0-2740_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.07e-08', energy_flux2='3.84e-05', photon_flux_error='7.29e-08', dlogl='2.61e+00', energy_flux='1.79e-05', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-09-29 02:57:16.132242', photon_index_error2='0.42', photon_index2='1.89', ts='4.27', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='1.22', time_epoch_completed='1632909436.13', return_code='0', job_id='592773', GAL2='0.50', EG2='1.28', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='3.88e-08', ts2='9.68', photon_index='3.02' WHERE bin_id='1084' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:57:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 592773: <4FGL_J2256.0-2740_daily_bin1084> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1084> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:50 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:51 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:45:51 2021
Terminated at Wed Sep 29 02:57:16 2021
Results reported at Wed Sep 29 02:57:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1084 344.025 -27.6739 520300801 520560001 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 :                                   615.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            686 sec.

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

