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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin507
RA = 344.025, Dec = -27.6739
tmin = 370742401, tmax = 371001601
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='590882', job_status='RUN', time_executed='2021-09-29 02:43:44.782897', time_epoch_executed='1632908624.78' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590882

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590882/ft1_4FGL_J2256.0-2740_daily_bin507.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590882/ft2_4FGL_J2256.0-2740_daily_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590882/ft1_4FGL_J2256.0-2740_daily_bin507.fits outfile=/scratch/kocevski/590882/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin507.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=370742401.0 tmax=371001601.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 5.42
user 5.17
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590882/ft2_4FGL_J2256.0-2740_daily_bin507.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/590882/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin507.fits evtable="EVENTS" outfile="/scratch/kocevski/590882/ft1_filtered_4FGL_J2256.0-2740_daily_bin507.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590882/ft1_filtered_4FGL_J2256.0-2740_daily_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/590882/ft2_4FGL_J2256.0-2740_daily_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/590882/ltcube_370742401_371001601_4FGL_J2256.0-2740_daily_bin507.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/590882/ft2_4FGL_J2256.0-2740_daily_bin507.fits
.....................!
real 12.03
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590882/ft1_filtered_4FGL_J2256.0-2740_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/590882/ft2_4FGL_J2256.0-2740_daily_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/590882/ltcube_370742401_371001601_4FGL_J2256.0-2740_daily_bin507.fits outfile=/scratch/kocevski/590882/expmap_370742401_371001601_4FGL_J2256.0-2740_daily_bin507.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/590882/ltcube_370742401_371001601_4FGL_J2256.0-2740_daily_bin507.fits
.....................!
real 190.36
user 185.04
sys 4.88

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/590882/ft1_filtered_4FGL_J2256.0-2740_daily_bin507.fits scfile=/scratch/kocevski/590882/ft2_4FGL_J2256.0-2740_daily_bin507.fits outfile=/scratch/kocevski/590882/cmap_370742401_371001601_4FGL_J2256.0-2740_daily_bin507.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590882/ft1_filtered_4FGL_J2256.0-2740_daily_bin507.fits scfile=/scratch/kocevski/590882/ft2_4FGL_J2256.0-2740_daily_bin507.fits outfile=/scratch/kocevski/590882/cmap_HighResolution_370742401_371001601_4FGL_J2256.0-2740_daily_bin507.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590882/ft1_filtered_4FGL_J2256.0-2740_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/590882/ft2_4FGL_J2256.0-2740_daily_bin507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590882/Model_4FGL_J2256.0-2740_daily_bin507.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/590882/ft1_filtered_4FGL_J2256.0-2740_daily_bin507.fits.....................!
real 41.27
user 39.75
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7836       1.0000         .10000E-03   10000.    
     3 'norm      '    .89582       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019       1.0000         .10000E-03   10000.    
     6 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.028       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9287       1.0000         .10000E-03   10000.    
     9 'norm      '    7.1000       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25112E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8912       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11262E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.373       1.0000         .10000E-03   10000.    
    18 'norm      '    .82018       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1674       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.282       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6539       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .41182       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=   4614.689     FROM MIGRAD    STATUS=FAILED       892 CALLS     2821 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9992        .16245E-02** at limit **
   2  Prefactor     4.7823        7.0410        .91976E-03    .16975E-03
   3  norm          .90573        40.690        .51170E-02    .15073E-02
   4  Prefactor     .10000E-03    14.382        .18142E-02** at limit **
   5  Prefactor     .56720E-01    26.876        .63996E-01    .12119E-03
   6  norm          .10000E-03    1.8932        .17923E-03** at limit **
   7  Prefactor     44.026        52.082        .60420E-04    .91634E-04
   8  Prefactor     5.9251        12.469        .16492E-03    .21370E-04
   9  norm          7.0989        4.8360        .11592E-03   -.31482E-04
  10  Prefactor     .10000E-03    8.1505        .18142E-02** at limit **
  11  Prefactor     .10000E-03    31.166        .39189E-02** at limit **
  12  norm          1.8907        .82707        .38127E-04   -.40553E-04
  13  Prefactor     .10000E-03    29.644        .18142E-02** at limit **
  14  Prefactor     .10000E-03    17.228        .18142E-02** at limit **
  15  Prefactor     .10000E-03    87.776        .41045E-02** at limit **
  16  norm          .10000E-03    10.487        .18142E-02** at limit **
  17  Prefactor     14.358        32.664        .10565E-03    .74249E-05
  18  norm          .81998        3.7998        .24616E-03   -.13795E-03
  19  Prefactor     6.1657        42.604        .16165E-03    .25529E-04
  20  Prefactor     24.261        75.747        .81291E-04    .71325E-05
  21  Normalizat    1.6541        .25891        .20661E-03    .10904E-03
  22  Prefactor     .41173        .22444        .35258E-03    .16154E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4614.689     FROM SIMPLEX   STATUS=UNCHANGED   1105 CALLS     3926 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9992        .32828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7823        7.0410        .10722E-05   -1.5271    
   3  norm          .90573        40.690        .10915E-05   -1.5518    
   4  Prefactor     .10000E-03    14.382        .35011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56720E-01    26.876        .11002E-05   -1.5660    
   6  norm          .10000E-03    1.8932        .17471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.026        52.082        .10092E-05   -1.4380    
   8  Prefactor     5.9251        12.469        .10719E-05   -1.5221    
   9  norm          7.0989        4.8360        .10665E-05   -1.5175    
  10  Prefactor     .10000E-03    8.1505        .32840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.166        .37830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8907        .82707        .10832E-05   -1.5433    
  13  Prefactor     .10000E-03    29.644        .49564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.228        .10876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    87.776        .84499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.487        .81673E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.358        32.664        .10489E-05   -1.4950    
  18  norm          .81998        3.7998        .10894E-05   -1.5527    
  19  Prefactor     6.1657        42.604        .10674E-05   -1.5211    
  20  Prefactor     24.261        75.747        .10341E-05   -1.4722    
  21  Normalizat    1.6541        .25891        .51605E-06   -.73536    
  22  Prefactor     .41173        .22444        .81539E-06   -1.1621    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4614.689     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     4263 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9993        .32490E-03** at limit **
   2  Prefactor     4.7823        7.0394        .18395E-03   -.37082E-06
   3  norm          .90581        40.880        .10234E-02    .28328E-05
   4  Prefactor     .10000E-03    14.383        .36285E-03** at limit **
   5  Prefactor     .56725E-01    19.904        .75671E-01    .88693E-04
   6  norm          .10000E-03    1.8932        .35846E-04** at limit **
   7  Prefactor     44.026        51.806        .12084E-04   -.97844E-05
   8  Prefactor     5.9251        12.467        .65968E-05   -.68934E-06
   9  norm          7.0989        4.8348        .46367E-05   -.14711E-05
  10  Prefactor     .10000E-03    8.1508        .36285E-03** at limit **
  11  Prefactor     .10000E-03    31.327        .78379E-03** at limit **
  12  norm          1.8907        .82411        .15251E-05    .86513E-05
  13  Prefactor     .10000E-03    29.645        .36285E-03** at limit **
  14  Prefactor     .10000E-03    17.236        .36285E-03** at limit **
  15  Prefactor     .10000E-03    90.239        .16418E-03** at limit **
  16  norm          .10000E-03    10.491        .36285E-03** at limit **
  17  Prefactor     14.358        32.663        .42260E-05     .0000    
  18  norm          .82000        3.7951        .98466E-05    .15702E-05
  19  Prefactor     6.1656        42.567        .64662E-05   -.14065E-06
  20  Prefactor     24.261        75.759        .32516E-05     .0000    
  21  Normalizat    1.6541        .25868        .41322E-04   -.19424E-04
  22  Prefactor     .41173        .22435        .14103E-04   -.99957E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.78235
  norm       = 0.905814
  Prefactor  = 0.0001
  Prefactor  = 0.0567249
  norm       = 0.0001
  Prefactor  = 44.0261
  Prefactor  = 5.92507
  norm       = 7.09893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3583
  norm       = 0.820002
  Prefactor  = 6.1656
  Prefactor  = 24.2609
  Normalizat = 1.6541
  Prefactor  = 0.411726
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.689     FROM HESSE     STATUS=OK           332 CALLS     4595 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9993        .64981E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.7823        7.0395        .73580E-05   -1.5271    
   3  norm          .90581        40.860        .40936E-04   -1.5518    
   4  Prefactor     .10000E-03    14.383        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56725E-01    22.775        .70141E-01   -1.5660    
   6  norm          .10000E-03    1.8932        .71692E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.026        51.936        .24168E-05   -1.4380    
   8  Prefactor     5.9251        12.470        .13194E-05   -1.5221    
   9  norm          7.0989        4.8361        .92735E-06   -1.5175    
  10  Prefactor     .10000E-03    8.1508        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.334        .15676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8907        .82418        .36795E-06   -1.5433    
  13  Prefactor     .10000E-03    29.645        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.237        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    90.241        .32836E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.491        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.358        32.662        .42260E-05   -1.4950    
  18  norm          .82000        3.7953        .98466E-05   -1.5527    
  19  Prefactor     6.1656        42.569        .64662E-05   -1.5211    
  20  Prefactor     24.261        75.757        .32516E-05   -1.4722    
  21  Normalizat    1.6541        .25877        .82645E-05   -.73536    
  22  Prefactor     .41173        .22430        .28206E-05   -1.1621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00896e-10
Minuit parameter uncertainties:
  1  5.29084e-08
  2  7.04068
  3  12.1756
  4  4.1016e-08
  5  2.27213
  6  9.30733e-08
  7  51.9892
  8  12.4751
  9  4.83637
  10  5.78496e-08
  11  1.47624e-06
  12  0.824183
  13  1.46565e-07
  14  2.99906e-07
  15  2.79297e-05
  16  1.45792e-07
  17  32.7029
  18  3.52842
  19  32.4341
  20  76.0597
  21  0.258976
  22  0.224778
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.476e-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:  4.117e-01  2.248e-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.654e+00  2.590e-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.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590882/likelihoodResults_370742401_371001601_4FGL_J2256.0-2740_daily_bin507.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) = 4614.68872396
delta logL = -0.000152416587298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4614.68857157
delta logL = -2.44654074777e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9974       1.0000          .0000       10.000    
     3 'Normalizat'    1.6541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41171       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=   4614.688     FROM MIGRAD    STATUS=FAILED       149 CALLS      321 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16503        36.642        .30992E-02    .15542E-02
   2  Index         1.9805        1.5715        .36286       -.12960E-04
   3  Normalizat    1.6537        .24329        .20661E-03   -.10067E-03
   4  Prefactor     .41172        .22141        .35258E-03   -.47528E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4614.688     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      393 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16503        36.642        .30083E-03   -1.5627    
   2  Index         1.9805        1.5715        .33022E-02   -.64839    
   3  Normalizat    1.6537        .24329        .28112E-03   -.73546    
   4  Prefactor     .41172        .22141        .42520E-03   -1.1621    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4614.688     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      425 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16504        36.628        .61984E-03    .44570E-05
   2  Index         1.9805        5.7682        .26524E-01   -.60125E-04
   3  Normalizat    1.6537        .24334        .41322E-04   -.19809E-05
   4  Prefactor     .41172        .22153        .14103E-04   -.96733E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.165042
  Index      = 1.98048
  Normalizat = 1.6537
  Prefactor  = 0.411717
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.688     FROM HESSE     STATUS=OK            27 CALLS      452 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16504        38.596        .24794E-04   -1.5627    
   2  Index         1.9805        5.7104        .53049E-02   -.64839    
   3  Normalizat    1.6537        .24341        .82645E-05   -.73546    
   4  Prefactor     .41172        .22159        .28206E-05   -1.1621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5846e-12
Minuit parameter uncertainties:
  1  5.04955
  2  5.5797
  3  0.243589
  4  0.222048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590882': 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) = 4614.68799712
delta logL = 0.000574424311708

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  1.650e-01  5.050e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  1.980e+00  5.580e+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:  4.117e-01  2.220e-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.654e+00  2.436e-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/590882/cmap_HighResolution_370742401_371001601_4FGL_J2256.0-2740_daily_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-29 02:54:49.504104', job_id='590882', GAL2='0.41', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1632909289.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.41', dlogl='5.74e-04', ts2='0.00', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='507' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:54:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 590882: <4FGL_J2256.0-2740_daily_bin507> in cluster <slac> Done

Job <4FGL_J2256.0-2740_daily_bin507> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 02:40:32 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 02:40:33 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:40:33 2021
Terminated at Wed Sep 29 02:54:52 2021
Results reported at Wed Sep 29 02:54:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin507 344.025 -27.6739 370742401 371001601 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 :                                   661.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             232.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            860 sec.

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

