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


Performing analysis on: 4FGL_J0257.9-1215_daily_bin762
RA = 44.492, Dec = -12.2637
tmin = 436838401, tmax = 437097601
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='970499', job_status='RUN', time_executed='2021-08-17 05:07:59.629222', time_epoch_executed='1629202079.63' WHERE source_name='4FGL J0257.9-1215' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/970499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/970499/ft1_4FGL_J0257.9-1215_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/970499/ft2_4FGL_J0257.9-1215_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/970499/ft1_4FGL_J0257.9-1215_daily_bin762.fits outfile=/scratch/kocevski/970499/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin762.fits ra=44.492 dec=-12.2637 rad=12.0 tmin=436838401.0 tmax=437097601.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 7.86
user 4.71
sys 3.11

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/970499/ft1_filtered_4FGL_J0257.9-1215_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/970499/ft2_4FGL_J0257.9-1215_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/970499/ltcube_436838401_437097601_4FGL_J0257.9-1215_daily_bin762.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/970499/ft2_4FGL_J0257.9-1215_daily_bin762.fits
.....................!
real 15.85
user 12.16
sys 3.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/970499/ft1_filtered_4FGL_J0257.9-1215_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/970499/ft2_4FGL_J0257.9-1215_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/970499/ltcube_436838401_437097601_4FGL_J0257.9-1215_daily_bin762.fits outfile=/scratch/kocevski/970499/expmap_436838401_437097601_4FGL_J0257.9-1215_daily_bin762.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/970499/ltcube_436838401_437097601_4FGL_J0257.9-1215_daily_bin762.fits
.....................!
real 195.30
user 185.87
sys 8.61

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/970499/ft1_filtered_4FGL_J0257.9-1215_daily_bin762.fits scfile=/scratch/kocevski/970499/ft2_4FGL_J0257.9-1215_daily_bin762.fits outfile=/scratch/kocevski/970499/cmap_436838401_437097601_4FGL_J0257.9-1215_daily_bin762.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.36
user 0.39
sys 2.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/970499/ft1_filtered_4FGL_J0257.9-1215_daily_bin762.fits scfile=/scratch/kocevski/970499/ft2_4FGL_J0257.9-1215_daily_bin762.fits outfile=/scratch/kocevski/970499/cmap_HighResolution_436838401_437097601_4FGL_J0257.9-1215_daily_bin762.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 3.37
user 0.40
sys 2.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/970499/ft1_filtered_4FGL_J0257.9-1215_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/970499/ft2_4FGL_J0257.9-1215_daily_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/970499/Model_4FGL_J0257.9-1215_daily_bin762.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/970499/ft1_filtered_4FGL_J0257.9-1215_daily_bin762.fits.....................!
real 59.12
user 51.91
sys 4.91

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2681       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6435       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    94.601       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2922       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    60.852       1.0000         .10000E-03   10000.    
    12 'norm      '    .46725E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.894       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9796       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .61507       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1527       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=   4703.190     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2350 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2667        7.6540        .22179E-05   -.65654E-03
   2  Prefactor     3.6433        4.7260       -.14791E-05   -.42848E-03
   3  Prefactor     .10000E-03    6.4711       -.92328E-07** at limit **
   4  norm          .10000E-03    14.307       -.47910E-05** at limit **
   5  Prefactor     .10000E-03    27.228        .22673E-05** at limit **
   6  Prefactor     .10000E-03    3.0726       -.59729E-07** at limit **
   7  Prefactor     .10000E-03    6.1133       -.15803E-06** at limit **
   8  Prefactor     94.603        66.842        .13538E-05    .49896E-04
   9  norm          5.2910        2.7723       -.94112E-07   -.11147E-02
  10  Prefactor     .10000E-03    3.1250       -.14170E-07** at limit **
  11  Prefactor     60.848        67.281       -.27432E-05   -.61093E-04
  12  norm          .10124E-03    4.1086        .21506E-05** at limit **
  13  Prefactor     13.894        12.852        .14152E-06   -.19558E-03
  14  Prefactor     .10000E-03    20.835       -.42751E-05** at limit **
  15  Prefactor     .10000E-03    2.8675       -.25126E-07** at limit **
  16  Prefactor     .10001E-03    55.357       -.10721E-04** at limit **
  17  Prefactor     1.9795        2.5435        .50091E-07    .74656E-04
  18  Prefactor     .10000E-03    24.191       -.34025E-05** at limit **
  19  Prefactor     .10000E-03    15.056        .30019E-05** at limit **
  20  Prefactor     .10000E-03    15.809        .51334E-05** at limit **
  21  Normalizat    .61514        .17675       -.94435E-07   -.20940E-03
  22  Prefactor     1.1527        .15221       -.57984E-07   -.19754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26666
  Prefactor  = 3.64333
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.6028
  norm       = 5.29099
  Prefactor  = 0.0001
  Prefactor  = 60.848
  norm       = 0.000101243
  Prefactor  = 13.894
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 1.97951
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Normalizat = 0.615143
  Prefactor  = 1.15268
 **********
 **   18 **HESSE 
 **********

 FCN=   4703.190     FROM HESSE     STATUS=OK           336 CALLS     2686 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2667        25.038        .13636E-02   -1.5407    
   2  Prefactor     3.6433        4.7332        .16576E-03   -1.5326    
   3  Prefactor     .10000E-03    6.4721        .17039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0747        .11741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.1407        .16557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     94.603        66.853        .41322E-04   -1.3760    
   9  norm          5.2910        2.7400        .77045E-04   -1.5248    
  10  Prefactor     .10000E-03    3.1355        .11838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     60.848        67.263        .51436E-04   -1.4146    
  12  norm          .10124E-03    45.181        .24811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.894        12.952        .53728E-03   -1.4962    
  14  Prefactor     .10000E-03    21.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9032        .11334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    55.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9795        2.5315        .12054E-03   -1.5427    
  18  Prefactor     .10000E-03    24.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .61514        .19864        .28288E-03   -1.0734    
  22  Prefactor     1.1527        .17152        .18720E-03   -.87800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09511e-08
Minuit parameter uncertainties:
  1  15.0747
  2  4.73366
  3  3.42293e-06
  4  0.000308062
  5  0.000224403
  6  1.97594e-06
  7  1.00379e-05
  8  66.906
  9  2.74009
  10  6.04912e-07
  11  67.3474
  12  0.015001
  13  12.9549
  14  0.00025839
  15  1.09362e-06
  16  0.00138761
  17  2.53166
  18  0.000245215
  19  0.000183713
  20  0.000353011
  21  0.198866
  22  0.171599
Done.

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

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  6.049e-07  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.153e+00  1.716e-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.151e-01  1.989e-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: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/970499/likelihoodResults_436838401_437097601_4FGL_J0257.9-1215_daily_bin762.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) = 4703.19151506
delta logL = -0.00151253527656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4703.19000251
delta logL = 1.523312676e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6374       1.0000          .0000       10.000    
     3 'Normalizat'    .61512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1527       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=   4703.190     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.360        .11890E-01** at limit **
   2  Index         2.2070        7.1053        .50000       -.19827E-07
   3  Normalizat    .61514        .14294E-01    .28288E-03    .27771E-04
   4  Prefactor     1.1527        .12698E-01    .18720E-03    .51148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20703
  Normalizat = 0.615144
  Prefactor  = 1.15268
 **********
 **   18 **HESSE 
 **********

 FCN=   4703.190     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    310.07        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2070        8.4843        .50000       -.59269    
   3  Normalizat    .61514        .47907E-01    .11315E-04   -1.0734    
   4  Prefactor     1.1527        .42560E-01    .37439E-04   -.87800    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.24962e-11
Minuit parameter uncertainties:
  1  3.10623e-06
  2  1087.86
  3  0.04791
  4  0.0425613
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/970499': 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) = 4703.19000096
delta logL = 1.55877387442e-06

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  3.106e-06  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  2.207e+00  1.088e+03  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.153e+00  4.256e-02  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.151e-01  4.791e-02  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/970499/cmap_HighResolution_436838401_437097601_4FGL_J0257.9-1215_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-08-17 05:18:19.831993', job_id='970499', GAL2='1.15', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1629202699.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.56e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='762' AND source_name='4FGL J0257.9-1215' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 05:18:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 970499: <4FGL_J0257.9-1215_daily_bin762> in cluster <slac> Done

Job <4FGL_J0257.9-1215_daily_bin762> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Aug 17 05:01:52 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 05:04:21 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:04:21 2021
Terminated at Tue Aug 17 05:18:20 2021
Results reported at Tue Aug 17 05:18:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0257.9-1215_daily_bin762 44.492 -12.2637 436838401 437097601 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 :                                   655.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            988 sec.

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

