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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin1333
RA = 344.025, Dec = -27.6739
tmin = 584841601, tmax = 585100801
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='594103', job_status='RUN', time_executed='2021-09-29 02:52:08.260085', time_epoch_executed='1632909128.26' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/594103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/594103/ft1_4FGL_J2256.0-2740_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/594103/ft2_4FGL_J2256.0-2740_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/594103/ft1_4FGL_J2256.0-2740_daily_bin1333.fits outfile=/scratch/kocevski/594103/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin1333.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=584841601.0 tmax=585100801.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 2.91
user 2.69
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/594103/ft1_filtered_4FGL_J2256.0-2740_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/594103/ft2_4FGL_J2256.0-2740_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/594103/ltcube_584841601_585100801_4FGL_J2256.0-2740_daily_bin1333.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/594103/ft2_4FGL_J2256.0-2740_daily_bin1333.fits
.....................!
real 12.41
user 12.01
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/594103/ft1_filtered_4FGL_J2256.0-2740_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/594103/ft2_4FGL_J2256.0-2740_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/594103/ltcube_584841601_585100801_4FGL_J2256.0-2740_daily_bin1333.fits outfile=/scratch/kocevski/594103/expmap_584841601_585100801_4FGL_J2256.0-2740_daily_bin1333.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/594103/ltcube_584841601_585100801_4FGL_J2256.0-2740_daily_bin1333.fits
.....................!
real 191.51
user 186.76
sys 4.38

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/594103/ft1_filtered_4FGL_J2256.0-2740_daily_bin1333.fits scfile=/scratch/kocevski/594103/ft2_4FGL_J2256.0-2740_daily_bin1333.fits outfile=/scratch/kocevski/594103/cmap_584841601_585100801_4FGL_J2256.0-2740_daily_bin1333.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/594103/ft1_filtered_4FGL_J2256.0-2740_daily_bin1333.fits scfile=/scratch/kocevski/594103/ft2_4FGL_J2256.0-2740_daily_bin1333.fits outfile=/scratch/kocevski/594103/cmap_HighResolution_584841601_585100801_4FGL_J2256.0-2740_daily_bin1333.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/594103/ft1_filtered_4FGL_J2256.0-2740_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/594103/ft2_4FGL_J2256.0-2740_daily_bin1333.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/594103/Model_4FGL_J2256.0-2740_daily_bin1333.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/594103/ft1_filtered_4FGL_J2256.0-2740_daily_bin1333.fits.....................!
real 39.78
user 38.41
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3069       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12059       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.559       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7406       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.094       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3106       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2326       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10084E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3111       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5642       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.752       1.0000         .10000E-03   10000.    
    16 'norm      '    10.243       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.3592       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.521       1.0000         .10000E-03   10000.    
    20 'Prefactor '    106.71       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4137       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .53657       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=   4554.434     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     2825 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4348        73.840        .15983E-03    .45522E-05
   2  Prefactor     .10000E-03    9.3067        .18142E-02** at limit **
   3  norm          .10000E-03    21.854        .97705E-01** at limit **
   4  Prefactor     18.568        18.698        .92971E-04    .64809E-05
   5  Prefactor     .10000E-03    10.681        .18142E-02** at limit **
   6  norm          1.7407        2.0478        .96455E-04   -.35006E-04
   7  Prefactor     37.127        51.518        .65804E-04   -.23669E-04
   8  Prefactor     5.3153        15.830        .17440E-03   -.18969E-04
   9  norm          1.2375        4.8862        .26495E-03    .14846E-04
  10  Prefactor     .10000E-03    27.201        .18142E-02** at limit **
  11  Prefactor     .10000E-03    29.093        .38370E-02** at limit **
  12  norm          1.3114        .78319        .40169E-04    .18057E-03
  13  Prefactor     .10000E-03    15.403        .18142E-02** at limit **
  14  Prefactor     4.5638        10.896        .18842E-03   -.10016E-04
  15  Prefactor     18.763        13.816        .92491E-04   -.10448E-04
  16  norm          10.244        9.2562        .12520E-03   -.37230E-05
  17  Prefactor     .10000E-03    32.985        .18142E-02** at limit **
  18  norm          7.3594        3.6875        .84611E-04   -.23917E-04
  19  Prefactor     30.519        35.802        .72524E-04   -.68973E-05
  20  Prefactor     106.71        117.18        .38931E-04   -.30371E-05
  21  Normalizat    1.4138        .26307        .21868E-03   -.24320E-04
  22  Prefactor     .53653        .22614        .31684E-03   -.11052E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.43485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5684
  Prefactor  = 0.0001
  norm       = 1.74066
  Prefactor  = 37.1268
  Prefactor  = 5.31528
  norm       = 1.23747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31144
  Prefactor  = 0.0001
  Prefactor  = 4.56376
  Prefactor  = 18.763
  norm       = 10.2441
  Prefactor  = 0.0001
  norm       = 7.35939
  Prefactor  = 30.5186
  Prefactor  = 106.707
  Normalizat = 1.41381
  Prefactor  = 0.536527
 **********
 **   18 **HESSE 
 **********

 FCN=   4554.434     FROM HESSE     STATUS=OK           330 CALLS     3155 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4348        73.874        .63934E-05   -1.5201    
   2  Prefactor     .10000E-03    9.3088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    20.741        .10232       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.568        18.698        .37189E-05   -1.4846    
   5  Prefactor     .10000E-03    10.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7407        2.0480        .38582E-05   -1.5444    
   7  Prefactor     37.127        51.566        .26322E-05   -1.4489    
   8  Prefactor     5.3153        15.826        .69762E-05   -1.5247    
   9  norm          1.2375        4.8809        .10598E-04   -1.5485    
  10  Prefactor     .10000E-03    27.210        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.228        .76740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3114        .78251        .16068E-05   -1.5479    
  13  Prefactor     .10000E-03    15.403        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5638        10.896        .75369E-05   -1.5281    
  15  Prefactor     18.763        13.811        .36996E-05   -1.4841    
  16  norm          10.244        9.2558        .50079E-05   -1.5068    
  17  Prefactor     .10000E-03    32.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.3594        3.6876        .33845E-05   -1.5165    
  19  Prefactor     30.519        35.804        .29010E-05   -1.4603    
  20  Prefactor     106.71        117.19        .77861E-05   -1.3638    
  21  Normalizat    1.4138        .26316        .43736E-04   -.80230    
  22  Prefactor     .53653        .22627        .12674E-04   -1.1033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68426e-12
Minuit parameter uncertainties:
  1  43.6735
  2  9.01411e-07
  3  4.55028e-05
  4  18.7043
  5  1.96345e-05
  6  2.04808
  7  51.628
  8  15.8388
  9  4.88249
  10  2.52551e-05
  11  5.29605e-06
  12  0.782518
  13  3.77914e-07
  14  10.9006
  15  13.8135
  16  9.25707
  17  8.29811e-06
  18  3.68772
  19  35.8292
  20  117.444
  21  0.263409
  22  0.226653
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  5.296e-06  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.365e-01  2.267e-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.414e+00  2.634e-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: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/594103/likelihoodResults_584841601_585100801_4FGL_J2256.0-2740_daily_bin1333.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) = 4554.43407653
delta logL = -0.000163335142133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4554.43391321
delta logL = -1.17506715469e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0343       1.0000          .0000       10.000    
     3 'Normalizat'    1.4139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53651       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4554.434     FROM MIGRAD    STATUS=FAILED        97 CALLS      269 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    1328.6        .36417E-02** at limit **
   2  Index         3.1080        6.4081        .50000       -.22089E-05
   3  Normalizat    1.4138        .37042E-01    .21868E-03    .43912E-03
   4  Prefactor     .53653        .34723E-01    .31684E-03    .21185E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4554.434     FROM SIMPLEX   STATUS=UNCHANGED    149 CALLS      418 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    1328.6        .83897E-03** at limit **
   2  Index         3.1080        6.4081        .11164E-04   -.22089E-05
   3  Normalizat    1.4138        .37042E-01    .23065E-06    .43912E-03
   4  Prefactor     .53653        .34723E-01    .29034E-06    .21185E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4554.434     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      452 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    7211.3        .72834E-03** at limit **
   2  Index         3.0961        6.4538        .50000       -.24243E-05
   3  Normalizat    1.4138        .96049E-01    .43736E-04    .42859E-03
   4  Prefactor     .53653        .90063E-01    .12673E-04    .20506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100304
  Index      = 3.09608
  Normalizat = 1.41382
  Prefactor  = 0.536525
 **********
 **   18 **HESSE 
 **********

 FCN=   4554.434     FROM HESSE     STATUS=OK            29 CALLS      481 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    33.614        .14567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0961        6.1030        .50000       -.39064    
   3  Normalizat    1.4138        .23606        .87471E-05   -.80230    
   4  Prefactor     .53653        .22135        .25347E-05   -1.1033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53989e-08
Minuit parameter uncertainties:
  1  0.00639866
  2  201.259
  3  0.236238
  4  0.221712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/594103': 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) = 4554.43391315
delta logL = 4.43596945843e-08

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.003e-04  6.399e-03  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.096e+00  2.013e+02  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.365e-01  2.217e-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.414e+00  2.362e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/594103/cmap_HighResolution_584841601_585100801_4FGL_J2256.0-2740_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-09-29 03:03:13.670230', job_id='594103', GAL2='0.54', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632909793.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='4.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='1333' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:03:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 594103: <4FGL_J2256.0-2740_daily_bin1333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin1333 344.025 -27.6739 584841601 585100801 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 :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            761 sec.

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

