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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1221
RA = 344.025, Dec = -27.6739
tmin = 555811201, tmax = 556070401
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='593935', job_status='RUN', time_executed='2021-09-29 02:51:24.768885', time_epoch_executed='1632909084.77' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/593935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/593935/ft1_4FGL_J2256.0-2740_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/593935/ft2_4FGL_J2256.0-2740_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/593935/ft1_4FGL_J2256.0-2740_daily_bin1221.fits outfile=/scratch/kocevski/593935/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1221.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=555811201.0 tmax=556070401.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.60
user 3.34
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/593935/ft1_filtered_4FGL_J2256.0-2740_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/593935/ft2_4FGL_J2256.0-2740_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/593935/ltcube_555811201_556070401_4FGL_J2256.0-2740_daily_bin1221.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/593935/ft2_4FGL_J2256.0-2740_daily_bin1221.fits
.....................!
real 11.66
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/593935/ft1_filtered_4FGL_J2256.0-2740_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/593935/ft2_4FGL_J2256.0-2740_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/593935/ltcube_555811201_556070401_4FGL_J2256.0-2740_daily_bin1221.fits outfile=/scratch/kocevski/593935/expmap_555811201_556070401_4FGL_J2256.0-2740_daily_bin1221.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/593935/ltcube_555811201_556070401_4FGL_J2256.0-2740_daily_bin1221.fits
.....................!
real 190.74
user 185.56
sys 4.81

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/593935/ft1_filtered_4FGL_J2256.0-2740_daily_bin1221.fits scfile=/scratch/kocevski/593935/ft2_4FGL_J2256.0-2740_daily_bin1221.fits outfile=/scratch/kocevski/593935/cmap_555811201_556070401_4FGL_J2256.0-2740_daily_bin1221.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.57
user 0.36
sys 0.19

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.100       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.0206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.944       1.0000         .10000E-03   10000.    
     6 'norm      '    5.2222       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0214       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3311       1.0000         .10000E-03   10000.    
    13 'Prefactor '    182.17       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    23.705       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    108.68       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87562       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92882       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=   2242.133     FROM MIGRAD    STATUS=CONVERGED     70 CALLS     2325 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.098        1.1894       -.49800E-06    .19478E-02
   2  Prefactor     .10000E-03    9.2874        .53092E-05** at limit **
   3  norm          9.0203        1.0057       -.97765E-07    .49935E-04
   4  Prefactor     .10000E-03    16.574        .23701E-04** at limit **
   5  Prefactor     34.940        1.3086       -.87173E-06    .12454E-02
   6  norm          5.2224        4.2813        .32943E-05    .18898E-04
   7  Prefactor     36.059        1.0352       -.21932E-06    .51680E-03
   8  Prefactor     .10000E-03    11.901        .17554E-04** at limit **
   9  norm          .10000E-03    4.0820        .47355E-05** at limit **
  10  Prefactor     .10003E-03    9.9698       -.20736E-04** at limit **
  11  Prefactor     5.0184        1.1607       -.16254E-05    .38796E-03
  12  norm          2.3313        1.4046       -.44020E-07   -.12638E-03
  13  Prefactor     182.17        1.0096       -.67921E-07    .80680E-03
  14  Prefactor     .10010E-03    12.718        .20847E-04** at limit **
  15  Prefactor     .10002E-03    11.034       -.18996E-04** at limit **
  16  norm          23.703        1.0817       -.53107E-06    .48467E-03
  17  Prefactor     .10001E-03    50.339       -.70302E-04** at limit **
  18  norm          .10000E-03    2.8391       -.71715E-06** at limit **
  19  Prefactor     .10016E-03    11.282        .89895E-05** at limit **
  20  Prefactor     108.68        1.0000       -.13234E-09    .21647E-04
  21  Normalizat    .87565        .35058        .33107E-05    .42341E-04
  22  Prefactor     .92883        .32154       -.65087E-05    .30139E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.098
  Prefactor  = 0.0001
  norm       = 9.02029
  Prefactor  = 0.000100001
  Prefactor  = 34.94
  norm       = 5.22242
  Prefactor  = 36.0589
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 5.01836
  norm       = 2.33135
  Prefactor  = 182.174
  Prefactor  = 0.000100099
  Prefactor  = 0.000100017
  norm       = 23.7029
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.000100159
  Prefactor  = 108.681
  Normalizat = 0.875648
  Prefactor  = 0.928827
 **********
 **   18 **HESSE 
 **********

 FCN=   2242.133     FROM HESSE     STATUS=OK           382 CALLS     2707 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.098        38.820        .11986E-02   -1.4032    
   2  Prefactor     .10000E-03    9.2743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.0203        29.520        .33362E-02   -1.5107    
   4  Prefactor     .10000E-03    16.756        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.940        23.896        .16948E-02   -1.4525    
   6  norm          5.2224        4.6305        .43976E-02   -1.5251    
   7  Prefactor     36.059        56.518        .16685E-02   -1.4506    
   8  Prefactor     .10000E-03    33.911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.0747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    19.858        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0184        34.581        .44863E-02   -1.5260    
  12  norm          2.3313        2.1850        .67149E-02   -1.5403    
  13  Prefactor     182.17        185.38        .74774E-03   -1.3000    
  14  Prefactor     .10010E-03    31.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    21.109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          23.703        21.860        .20568E-02   -1.4734    
  17  Prefactor     .10001E-03    52.771        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8136        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10016E-03    36.796        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     108.68        244.78        .96450E-03   -1.3619    
  21  Normalizat    .87565        .32865        .44589E-01   -.97321    
  22  Prefactor     .92883        .28399        .45371E-01   -.95141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98279e-08
Minuit parameter uncertainties:
  1  38.8344
  2  1.904e-05
  3  29.5679
  4  0.000291058
  5  23.9029
  6  4.63084
  7  56.6022
  8  0.000150297
  9  6.31054e-06
  10  0.00161806
  11  26.3685
  12  2.18505
  13  185.975
  14  0.00353552
  15  0.00118895
  16  21.8673
  17  0.00176382
  18  6.68857e-06
  19  0.00484427
  20  247.115
  21  0.329405
  22  0.284443
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.018e+00  2.637e+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:  9.288e-01  2.844e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  8.756e-01  3.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/593935/likelihoodResults_555811201_556070401_4FGL_J2256.0-2740_daily_bin1221.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) = 2242.1315557
delta logL = 0.00108535099571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2242.13154658
delta logL = 0.0010944726464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9922       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1296       1.0000          .0000       10.000    
     3 'Normalizat'    .87393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93001       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=   2242.132     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      277 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0012        17.018        .17998E-03    .70618E-04
   2  Index         3.1327        2.3328        .13292E-01    .43249E-05
   3  Normalizat    .87414        .35899        .27613E-03    .86726E-04
   4  Prefactor     .92994        .32323        .24532E-03   -.22592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.00118
  Index      = 3.13267
  Normalizat = 0.874136
  Prefactor  = 0.929944
 **********
 **   18 **HESSE 
 **********

 FCN=   2242.132     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0012        16.876        .71994E-05   -1.5261    
   2  Index         3.1327        2.3161        .53167E-03   -.38274    
   3  Normalizat    .87414        .35955        .11045E-04   -.97375    
   4  Prefactor     .92994        .32363        .98128E-05   -.95102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78029e-10
Minuit parameter uncertainties:
  1  16.8918
  2  2.42508
  3  0.36054
  4  0.3243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/593935': 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) = 2242.13154491
delta logL = 0.00109614405574

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  5.001e+00  1.689e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.133e+00  2.425e+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.299e-01  3.243e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  8.741e-01  3.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/593935/cmap_HighResolution_555811201_556070401_4FGL_J2256.0-2740_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-02', job_status='DONE', photon_flux_upper_limit='3.02e-07', time_completed='2021-09-29 02:58:33.885176', job_id='593935', GAL2='0.93', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1632909513.89', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.10e-03', ts2='0.10', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1221' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:58:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 593935: <4FGL_J2256.0-2740_daily_bin1221> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin1221> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:50:19 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:50:21 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:50:21 2021
Terminated at Wed Sep 29 02:58:34 2021
Results reported at Wed Sep 29 02:58:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1221 344.025 -27.6739 555811201 556070401 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 :                                   424.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   493 sec.
    Turnaround time :                            495 sec.

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

