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


Performing analysis on: 4FGL_J0257.9-1215_daily_bin615
RA = 44.492, Dec = -12.2637
tmin = 398736001, tmax = 398995201
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='970267', job_status='RUN', time_executed='2021-08-17 05:04:28.824617', time_epoch_executed='1629201868.82' WHERE source_name='4FGL J0257.9-1215' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/970267

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/970267/ft1_4FGL_J0257.9-1215_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/970267/ft2_4FGL_J0257.9-1215_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/970267/ft1_4FGL_J0257.9-1215_daily_bin615.fits outfile=/scratch/kocevski/970267/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin615.fits ra=44.492 dec=-12.2637 rad=12.0 tmin=398736001.0 tmax=398995201.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 10.53
user 5.85
sys 1.77

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/970267/ft2_4FGL_J0257.9-1215_daily_bin615.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/970267/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin615.fits evtable="EVENTS" outfile="/scratch/kocevski/970267/ft1_filtered_4FGL_J0257.9-1215_daily_bin615.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.37
user 0.35
sys 1.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/970267/ft1_filtered_4FGL_J0257.9-1215_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/970267/ft2_4FGL_J0257.9-1215_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/970267/ltcube_398736001_398995201_4FGL_J0257.9-1215_daily_bin615.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/970267/ft2_4FGL_J0257.9-1215_daily_bin615.fits
.....................!
real 16.76
user 12.56
sys 2.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/970267/ft1_filtered_4FGL_J0257.9-1215_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/970267/ft2_4FGL_J0257.9-1215_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/970267/ltcube_398736001_398995201_4FGL_J0257.9-1215_daily_bin615.fits outfile=/scratch/kocevski/970267/expmap_398736001_398995201_4FGL_J0257.9-1215_daily_bin615.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/970267/ltcube_398736001_398995201_4FGL_J0257.9-1215_daily_bin615.fits
.....................!
real 200.11
user 185.81
sys 7.50

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/970267/ft1_filtered_4FGL_J0257.9-1215_daily_bin615.fits scfile=/scratch/kocevski/970267/ft2_4FGL_J0257.9-1215_daily_bin615.fits outfile=/scratch/kocevski/970267/cmap_398736001_398995201_4FGL_J0257.9-1215_daily_bin615.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.17
user 0.38
sys 1.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/970267/ft1_filtered_4FGL_J0257.9-1215_daily_bin615.fits scfile=/scratch/kocevski/970267/ft2_4FGL_J0257.9-1215_daily_bin615.fits outfile=/scratch/kocevski/970267/cmap_HighResolution_398736001_398995201_4FGL_J0257.9-1215_daily_bin615.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.15
user 0.40
sys 1.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/970267/ft1_filtered_4FGL_J0257.9-1215_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/970267/ft2_4FGL_J0257.9-1215_daily_bin615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/970267/Model_4FGL_J0257.9-1215_daily_bin615.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/970267/ft1_filtered_4FGL_J0257.9-1215_daily_bin615.fits.....................!
real 32.82
user 28.72
sys 3.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .97709E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .53216       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.561       1.0000         .10000E-03   10000.    
    12 'norm      '    13.438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.587       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9716       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.760       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92109       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90821       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=   1878.041     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     3005 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.157        .16473E-02** at limit **
   2  Prefactor     .10000E-03    9.1232        .12775E-02** at limit **
   3  Prefactor     .10000E-03    39.773        .18142E-02** at limit **
   4  norm          .10000E-03    40.200        .18142E-02** at limit **
   5  Prefactor     .10000E-03    1212.9        .96300E-02** at limit **
   6  Prefactor     9.5345        15.101        .12979E-03   -.39198E-05
   7  Prefactor     .10000E-03    5.0981        .95565E-03** at limit **
   8  Prefactor     .10000E-03    23.155        .18142E-02** at limit **
   9  norm          .53247        10.325        .19179E-02    .22998E-03
  10  Prefactor     .10000E-03    7.1990        .11350E-02** at limit **
  11  Prefactor     82.496        153.19        .22103E-03    .36262E-05
  12  norm          13.435        12.431        .10927E-03    .18980E-03
  13  Prefactor     15.589        24.957        .10145E-03   -.17734E-04
  14  Prefactor     .10000E-03    17.170        .17535E-02** at limit **
  15  Prefactor     1.9758        19.403        .14765E-02    .10247E-04
  16  Prefactor     .10000E-03    131.89        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.0000        .84540E-03** at limit **
  18  Prefactor     .10000E-03    35.540        .18142E-02** at limit **
  19  Prefactor     .10000E-03    29.098        .18142E-02** at limit **
  20  Prefactor     58.750        83.539        .52338E-04   -.14021E-04
  21  Normalizat    .92092        .34710        .25271E-03   -.47798E-04
  22  Prefactor     .90821        .27308        .20642E-03    .40566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 9.53452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.53247
  Prefactor  = 0.0001
  Prefactor  = 82.4964
  norm       = 13.4346
  Prefactor  = 15.5885
  Prefactor  = 0.0001
  Prefactor  = 1.97576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.7496
  Normalizat = 0.920923
  Prefactor  = 0.90821
 **********
 **   18 **HESSE 
 **********

 FCN=   1878.041     FROM HESSE     STATUS=OK           326 CALLS     3331 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.157        .32946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.1235        .25550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    40.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1260.1        .38520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.5345        15.099        .51916E-05   -1.5090    
   7  Prefactor     .10000E-03    5.0981        .19113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .53247        10.179        .76716E-04   -1.5562    
  10  Prefactor     .10000E-03    7.1991        .22699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     82.496        153.17        .88412E-05   -1.3889    
  12  norm          13.435        12.375        .43707E-05   -1.4975    
  13  Prefactor     15.589        24.948        .40580E-05   -1.4918    
  14  Prefactor     .10000E-03    17.170        .35069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9758        19.236        .59058E-04   -1.5427    
  16  Prefactor     .10000E-03    131.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.0001        .16908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     58.750        83.536        .10468E-04   -1.4173    
  21  Normalizat    .92092        .34633        .10109E-04   -.95729    
  22  Prefactor     .90821        .27325        .41284E-04   -.95855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65518e-10
Minuit parameter uncertainties:
  1  2.40594e-05
  2  8.43075e-06
  3  8.88797e-05
  4  3.1753e-05
  5  0.00392432
  6  15.1053
  7  2.83252e-06
  8  2.5933e-05
  9  4.65671
  10  5.043e-06
  11  153.916
  12  12.3769
  13  24.9642
  14  0.000143123
  15  12.3345
  16  3.30004e-07
  17  2.30109e-06
  18  4.42791e-05
  19  6.91506e-05
  20  83.7037
  21  0.347177
  22  0.273668
Done.

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

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  5.043e-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:  9.082e-01  2.737e-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:  9.209e-01  3.472e-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: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/970267/likelihoodResults_398736001_398995201_4FGL_J0257.9-1215_daily_bin615.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) = 1878.04135067
delta logL = -0.000658498446228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1878.04069247
delta logL = -3.04276454699e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6340       1.0000          .0000       10.000    
     3 'Normalizat'    .92120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90800       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=   1878.041     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4254        .11439E-02** at limit **
   2  Index         2.6202        6.3047        .50000        .17203E-04
   3  Normalizat    .92093        .32576        .25271E-03    .11438E-04
   4  Prefactor     .90821        .26625        .20642E-03    .10822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.62021
  Normalizat = 0.920926
  Prefactor  = 0.908207
 **********
 **   18 **HESSE 
 **********

 FCN=   1878.041     FROM HESSE     STATUS=OK            29 CALLS      263 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2970        .22878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6202        6.3032        .50000       -.49605    
   3  Normalizat    .92093        .32602        .10109E-04   -.95729    
   4  Prefactor     .90821        .26647        .82568E-05   -.95855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.78635e-10
Minuit parameter uncertainties:
  1  0.000252569
  2  4.39894
  3  0.326724
  4  0.26685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/970267': 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) = 1878.04069206
delta logL = 1.08072299554e-07

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  2.526e-04  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  2.620e+00  4.399e+00  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:  9.082e-01  2.668e-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:  9.209e-01  3.267e-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/970267/cmap_HighResolution_398736001_398995201_4FGL_J0257.9-1215_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-08-17 05:12:33.485310', job_id='970267', GAL2='0.91', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1629202353.49', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='615' AND source_name='4FGL J0257.9-1215' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 05:12:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 970267: <4FGL_J0257.9-1215_daily_bin615> in cluster <slac> Done

Job <4FGL_J0257.9-1215_daily_bin615> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Aug 17 05:01:34 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 05:02:00 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:02:00 2021
Terminated at Tue Aug 17 05:12:34 2021
Results reported at Tue Aug 17 05:12:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0257.9-1215_daily_bin615 44.492 -12.2637 398736001 398995201 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 :                                   488.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            660 sec.

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

