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


Performing analysis on: 4FGL_J2256.0-2740_daily_bin620
RA = 344.025, Dec = -27.6739
tmin = 400032001, tmax = 400291201
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='591060', job_status='RUN', time_executed='2021-09-29 02:43:42.912318', time_epoch_executed='1632908622.91' WHERE source_name='4FGL J2256.0-2740' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/591060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/591060/ft1_4FGL_J2256.0-2740_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/591060/ft2_4FGL_J2256.0-2740_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/591060/ft1_4FGL_J2256.0-2740_daily_bin620.fits outfile=/scratch/kocevski/591060/ft1_filteredMKT_4FGL_J2256.0-2740_daily_bin620.fits ra=344.025 dec=-27.6739 rad=12.0 tmin=400032001.0 tmax=400291201.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 4.37
user 4.11
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/591060/ft1_filtered_4FGL_J2256.0-2740_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/591060/ft2_4FGL_J2256.0-2740_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/591060/ltcube_400032001_400291201_4FGL_J2256.0-2740_daily_bin620.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/591060/ft2_4FGL_J2256.0-2740_daily_bin620.fits
.....................!
real 11.74
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/591060/ft1_filtered_4FGL_J2256.0-2740_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/591060/ft2_4FGL_J2256.0-2740_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/591060/ltcube_400032001_400291201_4FGL_J2256.0-2740_daily_bin620.fits outfile=/scratch/kocevski/591060/expmap_400032001_400291201_4FGL_J2256.0-2740_daily_bin620.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/591060/ltcube_400032001_400291201_4FGL_J2256.0-2740_daily_bin620.fits
.....................!
real 191.13
user 185.37
sys 5.45

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/591060/ft1_filtered_4FGL_J2256.0-2740_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/591060/ft2_4FGL_J2256.0-2740_daily_bin620.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/591060/Model_4FGL_J2256.0-2740_daily_bin620.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/591060/ft1_filtered_4FGL_J2256.0-2740_daily_bin620.fits.....................!
real 35.05
user 33.74
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.399       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12485E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.044       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4912       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.150       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7251       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.894       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2706       1.0000         .10000E-03   10000.    
    12 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7159       1.0000         .10000E-03   10000.    
    16 'norm      '    9.5576       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.091       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0088       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73097       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.

 FCN=   3713.414     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2372 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.401        20.545        .11839E-06   -.13519E-05
   2  Prefactor     .10016E-03    7.8226        .59255E-06** at limit **
   3  norm          22.701        18.811        .47774E-07    .34023E-04
   4  Prefactor     22.035        18.947       -.94178E-07   -.16278E-04
   5  Prefactor     5.4921        16.674       -.27258E-06    .44881E-04
   6  norm          .10000E-03    1.8045       -.27853E-05** at limit **
   7  Prefactor     62.094        54.693        .15239E-05    .39716E-04
   8  Prefactor     1.7251        22.642        .17147E-05   -.16225E-04
   9  norm          .10000E-03    1.9153       -.71966E-07** at limit **
  10  Prefactor     13.891        13.383       -.79048E-07   -.83061E-04
  11  Prefactor     4.2750        10.914       -.61430E-06   -.16110E-03
  12  norm          .10000E-03    .43225        .18033E-06** at limit **
  13  Prefactor     .10000E-03    18.003        .21832E-07** at limit **
  14  Prefactor     .10000E-03    5.5535        .19026E-07** at limit **
  15  Prefactor     5.7145        11.821        .45080E-07   -.74338E-04
  16  norm          9.5568        9.5708        .86977E-08   -.61705E-05
  17  Prefactor     .10000E-03    29.044        .14996E-06** at limit **
  18  norm          .10000E-03    3.2436       -.41130E-06** at limit **
  19  Prefactor     19.074        34.790       -.13792E-06   -.30611E-04
  20  Prefactor     .10000E-03    34.665       -.12414E-06** at limit **
  21  Normalizat    1.0087        .22089        .76427E-06   -.80168E-04
  22  Prefactor     .73114        .19939       -.10897E-05    .56081E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4011
  Prefactor  = 0.00010016
  norm       = 22.7007
  Prefactor  = 22.0349
  Prefactor  = 5.49208
  norm       = 0.0001
  Prefactor  = 62.0943
  Prefactor  = 1.72512
  norm       = 0.0001
  Prefactor  = 13.8907
  Prefactor  = 4.27495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.7145
  norm       = 9.55678
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.0745
  Prefactor  = 0.0001
  Normalizat = 1.00867
  Prefactor  = 0.731139
 **********
 **   18 **HESSE 
 **********

 FCN=   3713.414     FROM HESSE     STATUS=OK           350 CALLS     2722 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.401        20.549        .11376E-03   -1.5004    
   2  Prefactor     .10016E-03    93.520        .32035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.701        18.809        .84055E-04   -1.4755    
   4  Prefactor     22.035        18.902        .85312E-04   -1.4769    
   5  Prefactor     5.4921        16.600        .17146E-03   -1.5239    
   6  norm          .10000E-03    1.8030        .15709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.094        54.923        .25449E-03   -1.4130    
   8  Prefactor     1.7251        22.726        .31974E-03   -1.5445    
   9  norm          .10000E-03    1.9257        .82250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.891        13.322        .10746E-03   -1.4962    
  11  Prefactor     4.2750        10.128        .19496E-03   -1.5294    
  12  norm          .10000E-03    .63460        .68553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5599        .14026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7145        11.632        .16801E-03   -1.5230    
  16  norm          9.5568        9.5798        .12963E-03   -1.5090    
  17  Prefactor     .10000E-03    29.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3309        .21336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.074        34.733        .91667E-04   -1.4834    
  20  Prefactor     .10000E-03    34.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0087        .26178        .22306E-03   -.92741    
  22  Prefactor     .73114        .23708        .24501E-03   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74482e-09
Minuit parameter uncertainties:
  1  20.5603
  2  0.00775742
  3  18.8135
  4  18.9073
  5  16.6135
  6  2.87851e-06
  7  54.9674
  8  12.5281
  9  1.00383e-06
  10  13.3244
  11  10.1319
  12  1.69058e-06
  13  2.2759e-06
  14  5.33041e-07
  15  11.6368
  16  9.58138
  17  2.68835e-05
  18  3.68296e-06
  19  34.7694
  20  5.05833e-05
  21  0.262111
  22  0.237407
Done.

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

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  4.275e+00  1.013e+01  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  3.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  2.384e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  7.311e-01  2.374e-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.009e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/591060/likelihoodResults_400032001_400291201_4FGL_J2256.0-2740_daily_bin620.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) = 3713.28644459
delta logL = 0.127303847925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3713.26568389
delta logL = 0.148064551304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8112       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7629       1.0000          .0000       10.000    
     3 'Normalizat'    .98562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74888       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3713.266     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      218 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8085        120.15        .60651E-02    .17582E-03
   2  Index         4.7643        6.0145        .49089        .12397E-04
   3  Normalizat    .98568        .52551E-01    .45986E-01    .54253E-04
   4  Prefactor     .74885        .50308E-01    .43048E-01    .22487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80847
  Index      = 4.76434
  Normalizat = 0.985677
  Prefactor  = 0.748848
 **********
 **   18 **HESSE 
 **********

 FCN=   3713.266     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8085        9.7885        .14062E-03   -1.5373    
   2  Index         4.7643        4.0693        .16802E-01   -.47150E-01
   3  Normalizat    .98568        .25350        .22525E-03   -.93512    
   4  Prefactor     .74885        .23699        .24245E-03   -1.0164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02888e-11
Minuit parameter uncertainties:
  1  9.79411
  2  4.75627
  3  0.253808
  4  0.237311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/591060': 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) = 3713.26568377
delta logL = 0.148064669029

Extracting fit parameters...

4FGL J2256.0-2740
   Spectrum: PowerLaw
340    Prefactor:  2.808e+00  9.794e+00  1.000e-04  1.000e+04 ( 1.000e-11)
341        Index:  4.764e+00  4.756e+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:  7.488e-01  2.373e-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:  9.857e-01  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/591060/cmap_HighResolution_400032001_400291201_4FGL_J2256.0-2740_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-09-29 02:52:03.945582', job_id='591060', GAL2='0.75', fit_tolerance='1e-08', EG2='0.99', EG='1.01', time_epoch_completed='1632909123.95', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.48e-01', ts2='0.63', photon_index_error='0.00', photon_index='3.02' WHERE bin_id='620' AND source_name='4FGL J2256.0-2740' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 02:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 591060: <4FGL_J2256.0-2740_daily_bin620> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2256.0-2740_daily_bin620 344.025 -27.6739 400032001 400291201 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 :                                   499.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

