/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7502
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0257.9-1215_daily_bin732
RA = 44.492, Dec = -12.2637
tmin = 429062401, tmax = 429321601
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='970452', job_status='RUN', time_executed='2021-08-17 05:07:22.781280', time_epoch_executed='1629202042.78' WHERE source_name='4FGL J0257.9-1215' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/970452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/970452/ft1_4FGL_J0257.9-1215_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/970452/ft2_4FGL_J0257.9-1215_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/970452/ft1_4FGL_J0257.9-1215_daily_bin732.fits outfile=/scratch/kocevski/970452/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin732.fits ra=44.492 dec=-12.2637 rad=12.0 tmin=429062401.0 tmax=429321601.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 9.25
user 6.15
sys 2.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/970452/ft2_4FGL_J0257.9-1215_daily_bin732.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/970452/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin732.fits evtable="EVENTS" outfile="/scratch/kocevski/970452/ft1_filtered_4FGL_J0257.9-1215_daily_bin732.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.24
user 0.34
sys 2.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/970452/ft1_filtered_4FGL_J0257.9-1215_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/970452/ft2_4FGL_J0257.9-1215_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/970452/ltcube_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.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/970452/ft2_4FGL_J0257.9-1215_daily_bin732.fits
.....................!
real 14.96
user 11.99
sys 2.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/970452/ft1_filtered_4FGL_J0257.9-1215_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/970452/ft2_4FGL_J0257.9-1215_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/970452/ltcube_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.fits outfile=/scratch/kocevski/970452/expmap_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.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/970452/ltcube_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.fits
.....................!
real 197.70
user 185.21
sys 7.67

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/970452/ft1_filtered_4FGL_J0257.9-1215_daily_bin732.fits scfile=/scratch/kocevski/970452/ft2_4FGL_J0257.9-1215_daily_bin732.fits outfile=/scratch/kocevski/970452/cmap_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.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 3.15
user 0.40
sys 2.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/970452/ft1_filtered_4FGL_J0257.9-1215_daily_bin732.fits scfile=/scratch/kocevski/970452/ft2_4FGL_J0257.9-1215_daily_bin732.fits outfile=/scratch/kocevski/970452/cmap_HighResolution_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.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 2.73
user 0.38
sys 2.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/970452/ft1_filtered_4FGL_J0257.9-1215_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/970452/ft2_4FGL_J0257.9-1215_daily_bin732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/970452/Model_4FGL_J0257.9-1215_daily_bin732.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/970452/ft1_filtered_4FGL_J0257.9-1215_daily_bin732.fits.....................!
real 56.17
user 51.72
sys 4.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/970452/ft1_filtered_4FGL_J0257.9-1215_daily_bin732.fits', '/scratch/kocevski/970452/ft2_4FGL_J0257.9-1215_daily_bin732.fits', expMap='/scratch/kocevski/970452/expmap_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.fits', expCube='/scratch/kocevski/970452/ltcube_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/970452/Model_4FGL_J0257.9-1215_daily_bin732.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/970452/ft1_filtered_4FGL_J0257.9-1215_daily_bin732.fits
Spacecraft file(s): /scratch/kocevski/970452/ft2_4FGL_J0257.9-1215_daily_bin732.fits
Exposure map: /scratch/kocevski/970452/expmap_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.fits
Exposure cube: /scratch/kocevski/970452/ltcube_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/970452/Model_4FGL_J0257.9-1215_daily_bin732.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) = 4793.88513665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6806       1.0000         .10000E-03   10000.    
     4 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.196       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.033       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2306       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1597       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.0448       1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.846       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4318       1.0000         .10000E-03   10000.    
    18 'Prefactor '    66.135       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11048E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1202       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .55917       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=   4793.855     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2373 TOTAL
                     EDM=   .90E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.201        15.472       -.15896E-06   -.17056E-06
   2  Prefactor     .10000E-03    3.8332       -.55855E-08** at limit **
   3  Prefactor     4.6822        28.655        .32749E-05    .15207E-05
   4  norm          .10000E-03    18.141       -.19279E-07** at limit **
   5  Prefactor     20.197        34.321        .36384E-06    .15367E-05
   6  Prefactor     1.7014        6.0420        .52798E-06   -.19611E-06
   7  Prefactor     .10000E-03    8.9412       -.45910E-07** at limit **
   8  Prefactor     .10000E-03    30.437       -.24306E-07** at limit **
   9  norm          .10000E-03    .67709       -.43141E-07** at limit **
  10  Prefactor     .10000E-03    4.0760       -.19191E-07** at limit **
  11  Prefactor     .10000E-03    39.505       -.36659E-07** at limit **
  12  norm          16.033        6.1968        .10705E-06   -.11129E-04
  13  Prefactor     3.2308        12.538        .54052E-05    .65432E-05
  14  Prefactor     4.1596        15.514        .35877E-05    .49763E-05
  15  Prefactor     8.0457        5.4697        .34944E-06    .86846E-05
  16  Prefactor     47.887        131.61       -.46926E-05    .12746E-04
  17  Prefactor     3.4318        3.3408        .10106E-07    .11739E-04
  18  Prefactor     66.137        22.436        .15356E-06    .91053E-05
  19  Prefactor     .10000E-03    3.4508       -.24461E-07** at limit **
  20  Prefactor     .10000E-03    76.158       -.88020E-07** at limit **
  21  Normalizat    1.1201        .17651       -.37470E-06    .39820E-04
  22  Prefactor     .55925        .14187       -.96852E-06   -.76219E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2006
  Prefactor  = 0.0001
  Prefactor  = 4.6822
  norm       = 0.0001
  Prefactor  = 20.1967
  Prefactor  = 1.70144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0332
  Prefactor  = 3.23078
  Prefactor  = 4.15963
  Prefactor  = 8.04569
  Prefactor  = 47.8869
  Prefactor  = 3.43179
  Prefactor  = 66.1371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12009
  Prefactor  = 0.559247
 **********
 **   18 **HESSE 
 **********

 FCN=   4793.855     FROM HESSE     STATUS=OK           344 CALLS     2717 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.201        15.446        .79803E-04   -1.4704    
   2  Prefactor     .10000E-03    3.8554        .13235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6822        28.582        .93005E-03   -1.5275    
   4  norm          .10000E-03    18.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.197        34.408        .89125E-04   -1.4809    
   6  Prefactor     1.7014        6.0029        .31158E-03   -1.5447    
   7  Prefactor     .10000E-03    9.0430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .68885        .55603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0989        .13647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.033        6.2007        .10003E-03   -1.4907    
  13  Prefactor     3.2308        12.542        .11269E-02   -1.5348    
  14  Prefactor     4.1596        15.519        .98810E-03   -1.5300    
  15  Prefactor     8.0457        5.4669        .63247E-03   -1.5141    
  16  Prefactor     47.887        131.66        .57970E-04   -1.4323    
  17  Prefactor     3.4318        3.3408        .11923E-03   -1.5337    
  18  Prefactor     66.137        22.448        .49351E-04   -1.4080    
  19  Prefactor     .10000E-03    3.4591        .12561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    76.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1201        .20046        .21180E-03   -.89109    
  22  Prefactor     .55925        .15995        .23795E-03   -1.0933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98255e-11
Minuit parameter uncertainties:
  1  15.4483
  2  3.89859e-07
  3  23.1529
  4  4.31041e-08
  5  34.442
  6  6.005
  7  1.0324e-05
  8  1.18822e-05
  9  1.94925e-06
  10  4.12154e-06
  11  1.14873e-05
  12  6.20099
  13  12.5527
  14  15.5342
  15  5.46726
  16  132.47
  17  3.34094
  18  22.4507
  19  1.71406e-06
  20  2.2174e-07
  21  0.200595
  22  0.160076
Done.

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

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  4.122e-06  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:  5.592e-01  1.601e-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:  1.120e+00  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 44.492 -12.264
Photon Flux Upper Limit: 7.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/970452/likelihoodResults_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4793.85593551
delta logL = -0.00116121498195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4793.85477432
delta logL = -2.22744347411e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6526       1.0000          .0000       10.000    
     3 'Normalizat'    1.1201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55926       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4793.713     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      285 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15128E-03    .21696E-03    .38257E-03** at limit **
   2  Index        10.0000        7.4678        .50000    ** at limit **
   3  Normalizat    1.0891        .20088        .21180E-03   -.22652E-04
   4  Prefactor     .57601        .16155        .23795E-03   -.54802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000151277
  Index      = 10
  Normalizat = 1.08907
  Prefactor  = 0.576011
 **********
 **   18 **HESSE 
 **********

 FCN=   4793.713     FROM HESSE     STATUS=OK            33 CALLS      318 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15128E-03    .47029E-03    .19585E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        7.5505        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0891        .20461        .84719E-05   -.90104    
   4  Prefactor     .57601        .16299        .95178E-05   -1.0861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6548e-08
Minuit parameter uncertainties:
  1  0.00031058
  2  0.000154502
  3  0.20476
  4  0.163122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/970452': 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) = 4793.71313711
delta logL = 0.141637183919

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.513e-04  3.106e-04  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  1.000e+01  1.545e-04  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:  5.760e-01  1.631e-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:  1.089e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 44.492 -12.264

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/970452/cmap_HighResolution_429062401_429321601_4FGL_J0257.9-1215_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-08-17 05:18:00.180758', job_id='970452', GAL2='0.58', fit_tolerance='1e-08', EG2='1.09', EG='1.12', time_epoch_completed='1629202680.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='1.42e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='732' AND source_name='4FGL J0257.9-1215' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 05:18:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 970452: <4FGL_J0257.9-1215_daily_bin732> in cluster <slac> Done

Job <4FGL_J0257.9-1215_daily_bin732> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Aug 17 05:01:48 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 05:03:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 05:03:33 2021
Terminated at Tue Aug 17 05:18:13 2021
Results reported at Tue Aug 17 05:18:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0257.9-1215_daily_bin732 44.492 -12.2637 429062401 429321601 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 :                                   656.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             221.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            985 sec.

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

