/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 108 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0257.9-1215_daily_bin26
RA = 44.492, Dec = -12.2637
tmin = 246067201, tmax = 246326401
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='967260', job_status='RUN', time_executed='2021-08-17 04:56:53.667122', time_epoch_executed='1629201413.67' WHERE source_name='4FGL J0257.9-1215' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/967260

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/967260/ft1_4FGL_J0257.9-1215_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/967260/ft1_4FGL_J0257.9-1215_daily_bin26.fits outfile=/scratch/kocevski/967260/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin26.fits ra=44.492 dec=-12.2637 rad=12.0 tmin=246067201.0 tmax=246326401.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.50
user 1.29
sys 0.82

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.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/967260/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin26.fits evtable="EVENTS" outfile="/scratch/kocevski/967260/ft1_filtered_4FGL_J0257.9-1215_daily_bin26.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 3.14
user 0.33
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/967260/ft1_filtered_4FGL_J0257.9-1215_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/967260/ltcube_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.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/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits
.....................!
real 16.40
user 13.71
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/967260/ft1_filtered_4FGL_J0257.9-1215_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/967260/ltcube_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.fits outfile=/scratch/kocevski/967260/expmap_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.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/967260/ltcube_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.fits
.....................!
real 199.85
user 186.29
sys 5.26

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J0257.9-1215 @ 44.492 -12.2637

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/967260/ft1_filtered_4FGL_J0257.9-1215_daily_bin26.fits scfile=/scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits outfile=/scratch/kocevski/967260/cmap_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.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=44.492 yref=-12.2637 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 2.27
user 0.39
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/967260/ft1_filtered_4FGL_J0257.9-1215_daily_bin26.fits scfile=/scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits outfile=/scratch/kocevski/967260/cmap_HighResolution_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.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=44.492 yref=-12.2637 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 1.98
user 0.39
sys 0.77

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/967260/ft1_filtered_4FGL_J0257.9-1215_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/967260/Model_4FGL_J0257.9-1215_daily_bin26.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/967260/ft1_filtered_4FGL_J0257.9-1215_daily_bin26.fits.....................!
real 72.41
user 62.03
sys 2.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/967260/ft1_filtered_4FGL_J0257.9-1215_daily_bin26.fits', '/scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits', expMap='/scratch/kocevski/967260/expmap_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.fits', expCube='/scratch/kocevski/967260/ltcube_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/967260/Model_4FGL_J0257.9-1215_daily_bin26.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0257.9-1215'

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  2.140e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  5.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/967260/ft1_filtered_4FGL_J0257.9-1215_daily_bin26.fits
Spacecraft file(s): /scratch/kocevski/967260/ft2_4FGL_J0257.9-1215_daily_bin26.fits
Exposure map: /scratch/kocevski/967260/expmap_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.fits
Exposure cube: /scratch/kocevski/967260/ltcube_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/967260/Model_4FGL_J0257.9-1215_daily_bin26.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) = 5681.15329807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53187       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.269       1.0000         .10000E-03   10000.    
     4 'norm      '    29.769       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7186       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25572       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.707       1.0000         .10000E-03   10000.    
     9 'norm      '    5.8584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.590       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .36784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6932       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0891       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63072       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2608       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5681.145     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2390 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43730        16.218        .28376E-05   -.43999E-03
   2  Prefactor     .10001E-03    14.370       -.29736E-05** at limit **
   3  Prefactor     17.299        23.377        .35773E-06   -.97674E-04
   4  norm          29.696        62.260        .62273E-05    .11761E-03
   5  Prefactor     3.6609        151.62        .55973E-05    .29679E-04
   6  Prefactor     .17523        10.646        .22979E-05   -.47071E-03
   7  Prefactor     .10000E-03    3.9863        .21504E-07** at limit **
   8  Prefactor     19.719        30.673        .13210E-06   -.12279E-04
   9  norm          5.8574        2.4050        .27877E-07   -.66283E-05
  10  Prefactor     10.584        10.097        .12501E-06   -.26520E-04
  11  Prefactor     .10000E-03    22.057       -.33870E-06** at limit **
  12  norm          .36743        3.7096        .43403E-06    .74984E-04
  13  Prefactor     4.9976        10.808        .33106E-06   -.31183E-05
  14  Prefactor     2.6876        16.419        .30512E-05    .12096E-03
  15  Prefactor     9.0869        6.4025        .36977E-06    .86877E-04
  16  Prefactor     .10000E-03    60.865        .14807E-05** at limit **
  17  Prefactor     .10000E-03    1.3704        .14531E-07** at limit **
  18  Prefactor     .10000E-03    9.4386        .10956E-06** at limit **
  19  Prefactor     .10000E-03    7.4683        .16520E-08** at limit **
  20  Prefactor     .10000E-03    18.954        .47706E-06** at limit **
  21  Normalizat    .63106        .19236       -.13471E-06   -.19050E-03
  22  Prefactor     1.2608        .16136       -.93361E-06   -.28706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.437301
  Prefactor  = 0.000100005
  Prefactor  = 17.2991
  norm       = 29.6959
  Prefactor  = 3.66087
  Prefactor  = 0.175234
  Prefactor  = 0.0001
  Prefactor  = 19.7188
  norm       = 5.85738
  Prefactor  = 10.5841
  Prefactor  = 0.0001
  norm       = 0.367433
  Prefactor  = 4.99755
  Prefactor  = 2.68759
  Prefactor  = 9.08687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.631056
  Prefactor  = 1.26084
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.145     FROM HESSE     STATUS=OK           354 CALLS     2744 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43730        157.59        .46817E-02   -1.5576    
   2  Prefactor     .10001E-03    15.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.299        23.886        .96380E-04   -1.4876    
   4  norm          29.696        62.242        .73432E-04   -1.4618    
   5  Prefactor     3.6609        145.48        .20941E-03   -1.5325    
   6  Prefactor     .17523        15.384        .65728E-01   -1.5624    
   7  Prefactor     .10000E-03    3.9964        .14694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.719        30.673        .90224E-04   -1.4820    
   9  norm          5.8574        2.4051        .71786E-04   -1.5224    
  10  Prefactor     10.584        10.115        .12312E-03   -1.5057    
  11  Prefactor     .10000E-03    22.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .36743        3.7139        .28223E-03   -1.5587    
  13  Prefactor     4.9976        10.799        .17977E-03   -1.5261    
  14  Prefactor     2.6876        16.668        .12413E-02   -1.5380    
  15  Prefactor     9.0869        6.3884        .13294E-03   -1.5105    
  16  Prefactor     .10000E-03    60.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3754        .86163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.5112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .63106        .21591        .30924E-03   -1.0668    
  22  Prefactor     1.2608        .18022        .19773E-03   -.84479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09044e-08
Minuit parameter uncertainties:
  1  16.6454
  2  0.000570867
  3  23.8989
  4  62.3785
  5  46.2764
  6  3.28373
  7  3.09852e-07
  8  30.6971
  9  2.40515
  10  10.1165
  11  2.35685e-05
  12  2.33621
  13  10.8037
  14  13.3914
  15  6.38886
  16  0.000217569
  17  1.33159e-06
  18  1.55454e-05
  19  3.83423e-06
  20  4.30365e-05
  21  0.216197
  22  0.180313
Done.

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

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.058e+01  1.012e+01  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  5.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  1.261e+00  1.803e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  6.311e-01  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 44.492 -12.264
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 5.07e-08 +/- 4.84e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.22e-05

TS (Fixed Index): 1.57
Ra Dec: 44.492 -12.264
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/967260/likelihoodResults_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.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) = 5681.08902413
delta logL = 0.0559745457704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5681.04493102
delta logL = 0.100067654756

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5681.045     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2995        103.89        .39929E-02    .30317E-03
   2  Index         3.4034        6.6786        .21326        .75472E-04
   3  Normalizat    .59455        .59560E-01    .71849E-01   -.13122E-04
   4  Prefactor     1.2851        .47282E-01    .32877E-01   -.26383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.29952
  Index      = 3.40338
  Normalizat = 0.594546
  Prefactor  = 1.28508
 **********
 **   18 **HESSE 
 **********

 FCN=   5681.045     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2995        184.93        .14865E-03   -1.5206    
   2  Index         3.4034        5.6437        .80557E-02   -.32502    
   3  Normalizat    .59455        .37457        .31805E-03   -1.0822    
   4  Prefactor     1.2851        .29617        .19615E-03   -.83752    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.32276e-10
Minuit parameter uncertainties:
  1  68.4967
  2  10.4324
  3  0.376178
  4  0.296561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/967260': 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) = 5681.04493029
delta logL = 0.10006838216

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  6.300e+00  6.850e+01  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  3.403e+00  1.043e+01  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  5.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  1.285e+00  2.966e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  5.945e-01  3.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 44.492 -12.264
Photon Index (Free Index): 3.40 +/- 10.43
Photon Flux (Free Index): 7.21e-08 +/- 1.58e-07
Energy Flux (Free Index): 1.23e-05 +/- 1.67e-05

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/967260/cmap_HighResolution_246067201_246326401_4FGL_J0257.9-1215_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.07e-08', energy_flux2='1.23e-05', photon_flux_error='4.84e-08', dlogl='1.00e-01', energy_flux='1.27e-05', photon_flux2='7.21e-08', job_status='DONE', time_completed='2021-08-17 05:07:42.616858', photon_index_error2='10.43', photon_index2='3.40', ts='1.57', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.67e-05', EG='0.63', time_epoch_completed='1629202062.62', return_code='0', job_id='967260', GAL2='1.29', EG2='0.59', return_code2='102', energy_flux_error='1.22e-05', photon_flux_error2='1.58e-07', ts2='1.84', photon_index='2.65' WHERE bin_id='26' AND source_name='4FGL J0257.9-1215' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 05:07:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 967260: <4FGL_J0257.9-1215_daily_bin26> in cluster <slac> Done

Job <4FGL_J0257.9-1215_daily_bin26> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 04:53:13 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:53:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 04:53:51 2021
Terminated at Tue Aug 17 05:07:43 2021
Results reported at Tue Aug 17 05:07:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0257.9-1215_daily_bin26 44.492 -12.2637 246067201 246326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0257.9-1215 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   622.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            870 sec.

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

