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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin782
RA = 344.025, Dec = -27.6739
tmin = 442022401, tmax = 442281601
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='592320', job_status='RUN', time_executed='2021-09-29 02:49:21.794238', time_epoch_executed='1632908961.79' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/592320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/592320/ft1_4FGL_J2256.0-2740_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/592320/ft2_4FGL_J2256.0-2740_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/592320/ft1_4FGL_J2256.0-2740_daily_bin782.fits outfile=/scratch/kocevski/592320/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin782.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=442022401.0 tmax=442281601.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.74
user 3.54
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/592320/ft2_4FGL_J2256.0-2740_daily_bin782.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/592320/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin782.fits evtable="EVENTS" outfile="/scratch/kocevski/592320/ft1_filtered_4FGL_J2256.0-2740_daily_bin782.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.58
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/592320/ft1_filtered_4FGL_J2256.0-2740_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/592320/ft2_4FGL_J2256.0-2740_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/592320/ltcube_442022401_442281601_4FGL_J2256.0-2740_daily_bin782.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/592320/ft2_4FGL_J2256.0-2740_daily_bin782.fits
.....................!
real 11.79
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/592320/ft1_filtered_4FGL_J2256.0-2740_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/592320/ft2_4FGL_J2256.0-2740_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/592320/ltcube_442022401_442281601_4FGL_J2256.0-2740_daily_bin782.fits outfile=/scratch/kocevski/592320/expmap_442022401_442281601_4FGL_J2256.0-2740_daily_bin782.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/592320/ltcube_442022401_442281601_4FGL_J2256.0-2740_daily_bin782.fits
.....................!
real 190.77
user 185.88
sys 4.54

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/592320/ft1_filtered_4FGL_J2256.0-2740_daily_bin782.fits scfile=/scratch/kocevski/592320/ft2_4FGL_J2256.0-2740_daily_bin782.fits outfile=/scratch/kocevski/592320/cmap_442022401_442281601_4FGL_J2256.0-2740_daily_bin782.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.025 yref=-27.6739 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/592320/ft1_filtered_4FGL_J2256.0-2740_daily_bin782.fits scfile=/scratch/kocevski/592320/ft2_4FGL_J2256.0-2740_daily_bin782.fits outfile=/scratch/kocevski/592320/cmap_HighResolution_442022401_442281601_4FGL_J2256.0-2740_daily_bin782.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9549       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25247E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0220       1.0000         .10000E-03   10000.    
     6 'norm      '    .41219       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .61660E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5721       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5253       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4168       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.431       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.152       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1235       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71120       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=   5354.877     FROM MIGRAD    STATUS=FAILED       876 CALLS     3207 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9433        14.166        .16455E-03   -.42421E-04
   2  Prefactor     .10000E-03    8.1722        .54051E-01** at limit **
   3  norm          1.0020        79.422        .53468E-02    .84896E-03
   4  Prefactor     23.622        18.464        .82397E-04   -.13798E-06
   5  Prefactor     3.9957        12.006        .20108E-03   -.16950E-03
   6  norm          .41481        2.1180        .19947E-03   -.26252E-03
   7  Prefactor     .10019E-03    227.85        .42099E-03** at limit **
   8  Prefactor     .10000E-03    5.4261        .16592E-02** at limit **
   9  norm          1.5706        3.2427        .18139E-03   -.22802E-03
  10  Prefactor     .10000E-03    9.3991        .18142E-02** at limit **
  11  Prefactor     .10000E-03    7.1559        .36285E-03** at limit **
  12  norm          .10000E-03    .25175        .64542E-03** at limit **
  13  Prefactor     .10089E-03    44.655        .13935    ** at limit **
  14  Prefactor     4.8544        7.5207        .91286E-03    .11410E-03
  15  Prefactor     5.5195        8.6138        .17092E-03   -.33024E-03
  16  norm          1.4171        5.0031        .29741E-03   -.88646E-04
  17  Prefactor     18.419        43.021        .93292E-04    .87984E-04
  18  norm          .10000E-03    .90993        .67741E-03** at limit **
  19  Prefactor     49.140        33.577        .57198E-04   -.43727E-05
  20  Prefactor     .10000E-03    18.489        .18142E-02** at limit **
  21  Normalizat    1.1237        .21033        .20523E-03   -.51210E-03
  22  Prefactor     .71113        .19329        .24683E-03   -.22702E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5354.877     FROM SIMPLEX   STATUS=PROGRESS     962 CALLS     4169 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9433        14.166        .20143E-06   -1.5220    
   2  Prefactor     .10000E-03    8.1722        .56565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0020        79.422        .40156E-06   -1.5508    
   4  Prefactor     23.622        18.464        .20601E-06   -1.4736    
   5  Prefactor     3.9957        12.006        .22379E-06   -1.5308    
   6  norm          .41481        2.1180        .23221E-06   -1.5579    
   7  Prefactor     .10019E-03    227.85        .19274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4261        .46836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5706        3.2427        .19958E-06   -1.5457    
  10  Prefactor     .10000E-03    9.3991        .24175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1559        .96612E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .25175        .86129E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10089E-03    44.655        .42273E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8544        7.5207        .19918E-06   -1.5267    
  15  Prefactor     5.5195        8.6138        .19894E-06   -1.5238    
  16  norm          1.4171        5.0031        .20875E-06   -1.5470    
  17  Prefactor     18.419        43.021        .20020E-06   -1.4849    
  18  norm          .10000E-03    .90993        .10022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     49.140        33.577        .18491E-06   -1.4305    
  20  Prefactor     .10000E-03    18.489        .54797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1237        .21033        .11496E-06   -.88994    
  22  Prefactor     .71113        .19329        .13311E-06   -1.0309    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5354.877     FROM MIGRAD    STATUS=CONVERGED    347 CALLS     4516 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9433        14.165        .65820E-05   -.13818E-06
   2  Prefactor     .10000E-03    7.8520        .55548E-01** at limit **
   3  norm          1.0021        79.592        .10694E-02    .34131E-04
   4  Prefactor     23.622        18.463        .32959E-05    .89684E-05
   5  Prefactor     3.9957        12.001        .80431E-05    .28269E-06
   6  norm          .41482        2.1098        .79787E-05    .11399E-05
   7  Prefactor     .10000E-03    227.82        .84198E-04** at limit **
   8  Prefactor     .10000E-03    5.4272        .33183E-03** at limit **
   9  norm          1.5706        3.2420        .72555E-05   -.62677E-05
  10  Prefactor     .10000E-03    9.4003        .36285E-03** at limit **
  11  Prefactor     .10000E-03    7.1559        .72569E-04** at limit **
  12  norm          .10000E-03    .25180        .12908E-03** at limit **
  13  Prefactor     .10085E-03    44.946        .13871    ** at limit **
  14  Prefactor     4.8543        7.5203        .36514E-04   -.31135E-06
  15  Prefactor     5.5196        8.6111        .68370E-05   -.73164E-05
  16  norm          1.4171        5.0025        .11896E-04    .13379E-05
  17  Prefactor     18.418        43.019        .37317E-05    .60931E-06
  18  norm          .10000E-03    .90999        .13548E-03** at limit **
  19  Prefactor     49.140        33.579        .22879E-05   -.99380E-06
  20  Prefactor     .10000E-03    18.489        .36285E-03** at limit **
  21  Normalizat    1.1237        .21052        .41046E-04    .20607E-04
  22  Prefactor     .71112        .19338        .98733E-05    .11975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.94329
  Prefactor  = 0.000100004
  norm       = 1.00213
  Prefactor  = 23.6219
  Prefactor  = 3.99573
  norm       = 0.414821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.57059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100845
  Prefactor  = 4.85434
  Prefactor  = 5.51959
  norm       = 1.41709
  Prefactor  = 18.4179
  norm       = 0.0001
  Prefactor  = 49.1401
  Prefactor  = 0.0001
  Normalizat = 1.12372
  Prefactor  = 0.711125
 **********
 **   18 **HESSE 
 **********

 FCN=   5354.877     FROM HESSE     STATUS=OK           342 CALLS     4858 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9433        14.166        .65820E-05   -1.5220    
   2  Prefactor     .10000E-03    7.9451        .55105E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0021        79.469        .21387E-03   -1.5508    
   4  Prefactor     23.622        18.444        .65917E-06   -1.4736    
   5  Prefactor     3.9957        12.021        .16086E-05   -1.5308    
   6  norm          .41482        2.1086        .15957E-05   -1.5579    
   7  Prefactor     .10000E-03    227.78        .16840E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4272        .66367E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5706        3.2420        .14511E-05   -1.5457    
  10  Prefactor     .10000E-03    9.4004        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1558        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .25180        .25817E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10085E-03    44.869        .13889       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8543        7.5186        .14606E-05   -1.5267    
  15  Prefactor     5.5196        8.6140        .13674E-05   -1.5238    
  16  norm          1.4171        5.0010        .23793E-05   -1.5470    
  17  Prefactor     18.418        42.949        .74634E-06   -1.4849    
  18  norm          .10000E-03    .90999        .27097E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     49.140        33.276        .45759E-06   -1.4305    
  20  Prefactor     .10000E-03    18.489        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1237        .21097        .82092E-05   -.88994    
  22  Prefactor     .71112        .19348        .19747E-05   -1.0309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35513e-12
Minuit parameter uncertainties:
  1  14.1741
  2  0.00036943
  3  17.8719
  4  18.4482
  5  12.028
  6  1.87039
  7  4.57073e-05
  8  1.14836e-06
  9  3.24232
  10  2.89199e-06
  11  1.2169e-06
  12  1.15415e-07
  13  0.0123258
  14  7.52002
  15  8.61592
  16  5.00246
  17  43.0211
  18  2.6062e-08
  19  33.2881
  20  2.66549e-07
  21  0.211124
  22  0.193666
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.217e-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:  7.111e-01  1.937e-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.124e+00  2.111e-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: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/592320/likelihoodResults_442022401_442281601_4FGL_J2256.0-2740_daily_bin782.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) = 5354.87755505
delta logL = -0.000666747268042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5354.87688836
delta logL = -5.89488990954e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0361       1.0000          .0000       10.000    
     3 'Normalizat'    1.1238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71111       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=   5354.877     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      259 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    313.39        .36285E-02** at limit **
   2  Index         3.7889        6.8083        .50000       -.56389E-08
   3  Normalizat    1.1237        .25339E-01    .20523E-03    .40438E-05
   4  Prefactor     .71112        .24881E-01    .24683E-03    .35925E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.78886
  Normalizat = 1.12372
  Prefactor  = 0.711125
 **********
 **   18 **HESSE 
 **********

 FCN=   5354.877     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1234.9        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7889        7.4757        .50000       -.24466    
   3  Normalizat    1.1237        .62362E-01    .82092E-05   -.88994    
   4  Prefactor     .71112        .61267E-01    .98734E-05   -1.0309    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11804e-10
Minuit parameter uncertainties:
  1  0.000280842
  2  3743.8
  3  0.0623664
  4  0.0612726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/592320': 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): 102
logL (Free Index) = 5354.87688699
delta logL = 1.30702483148e-06

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  2.808e-04  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.789e+00  3.744e+03  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:  7.111e-01  6.127e-02  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.124e+00  6.237e-02  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/592320/cmap_HighResolution_442022401_442281601_4FGL_J2256.0-2740_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-29 03:01:19.075395', job_id='592320', GAL2='0.71', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632909679.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='782' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 03:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 592320: <4FGL_J2256.0-2740_daily_bin782> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin782> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 02:45:17 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:45:18 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:18 2021
Terminated at Wed Sep 29 03:01:19 2021
Results reported at Wed Sep 29 03:01:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin782 344.025 -27.6739 442022401 442281601 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            962 sec.

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

