/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 25 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0257.9-1215_daily_bin401
RA = 44.492, Dec = -12.2637
tmin = 343267201, tmax = 343526401
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='967799', job_status='RUN', time_executed='2021-08-17 05:00:12.288543', time_epoch_executed='1629201612.29' WHERE source_name='4FGL J0257.9-1215' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/967799

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/967799/ft1_4FGL_J0257.9-1215_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/967799/ft2_4FGL_J0257.9-1215_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/967799/ft1_4FGL_J0257.9-1215_daily_bin401.fits outfile=/scratch/kocevski/967799/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin401.fits ra=44.492 dec=-12.2637 rad=12.0 tmin=343267201.0 tmax=343526401.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.02
user 3.27
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/967799/ft2_4FGL_J0257.9-1215_daily_bin401.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/967799/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin401.fits evtable="EVENTS" outfile="/scratch/kocevski/967799/ft1_filtered_4FGL_J0257.9-1215_daily_bin401.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.91
user 0.34
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/967799/ft1_filtered_4FGL_J0257.9-1215_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/967799/ft2_4FGL_J0257.9-1215_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/967799/ltcube_343267201_343526401_4FGL_J0257.9-1215_daily_bin401.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/967799/ft2_4FGL_J0257.9-1215_daily_bin401.fits
.....................!
real 14.22
user 13.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/967799/ft1_filtered_4FGL_J0257.9-1215_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/967799/ft2_4FGL_J0257.9-1215_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/967799/ltcube_343267201_343526401_4FGL_J0257.9-1215_daily_bin401.fits outfile=/scratch/kocevski/967799/expmap_343267201_343526401_4FGL_J0257.9-1215_daily_bin401.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/967799/ltcube_343267201_343526401_4FGL_J0257.9-1215_daily_bin401.fits
.....................!
real 193.53
user 185.94
sys 4.97

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/967799/ft1_filtered_4FGL_J0257.9-1215_daily_bin401.fits scfile=/scratch/kocevski/967799/ft2_4FGL_J0257.9-1215_daily_bin401.fits outfile=/scratch/kocevski/967799/cmap_343267201_343526401_4FGL_J0257.9-1215_daily_bin401.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 0.61
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/967799/ft1_filtered_4FGL_J0257.9-1215_daily_bin401.fits scfile=/scratch/kocevski/967799/ft2_4FGL_J0257.9-1215_daily_bin401.fits outfile=/scratch/kocevski/967799/cmap_HighResolution_343267201_343526401_4FGL_J0257.9-1215_daily_bin401.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 0.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/967799/ft1_filtered_4FGL_J0257.9-1215_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/967799/ft2_4FGL_J0257.9-1215_daily_bin401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/967799/Model_4FGL_J0257.9-1215_daily_bin401.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/967799/ft1_filtered_4FGL_J0257.9-1215_daily_bin401.fits.....................!
real 48.90
user 45.47
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   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 '    104.07       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1169       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    280.92       1.0000         .10000E-03   10000.    
    12 'norm      '    9.2684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    177.36       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.3475       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.280       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.707       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2835       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58334       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=   3927.366     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2379 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9493        .20023E-06** at limit **
   2  Prefactor     .10000E-03    4.3112        .14380E-07** at limit **
   3  Prefactor     .10000E-03    9.4894        .42178E-06** at limit **
   4  norm          .10000E-03    23.320        .10286E-05** at limit **
   5  Prefactor     104.06        69.633       -.21184E-05    .20624E-04
   6  Prefactor     7.1161        12.019        .51953E-06   -.23674E-04
   7  Prefactor     .10000E-03    31.012       -.34378E-05** at limit **
   8  Prefactor     .10000E-03    95.124        .22529E-04** at limit **
   9  norm          .10000E-03    1.6023        .14626E-07** at limit **
  10  Prefactor     .10000E-03    13.856       -.63348E-05** at limit **
  11  Prefactor     280.93        127.96        .79034E-05    .55801E-04
  12  norm          9.2680        6.2401       -.35245E-06    .50361E-04
  13  Prefactor     .10000E-03    14.531        .69714E-05** at limit **
  14  Prefactor     .10000E-03    8.6259       -.32744E-06** at limit **
  15  Prefactor     .10000E-03    4.5547        .37767E-06** at limit **
  16  Prefactor     178.07        250.51        .52606E-03    .38751E-04
  17  Prefactor     5.6896        6.8811        .97217E-05    .29391E-03
  18  Prefactor     7.2701        32.100       -.10939E-03   -.17698E-03
  19  Prefactor     17.274        20.446        .56269E-05    .55002E-04
  20  Prefactor     11.711        71.962        .23338E-04    .41638E-04
  21  Normalizat    1.2835        .21460        .41686E-05   -.15483E-03
  22  Prefactor     .58330        .16202       -.12054E-04    .29194E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 104.065
  Prefactor  = 7.11611
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 280.929
  norm       = 9.26804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 178.069
  Prefactor  = 5.68957
  Prefactor  = 7.27006
  Prefactor  = 17.2741
  Prefactor  = 11.7112
  Normalizat = 1.28353
  Prefactor  = 0.583295
 **********
 **   18 **HESSE 
 **********

 FCN=   3927.366     FROM HESSE     STATUS=OK           332 CALLS     2711 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9548        .13617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3183        .12706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     104.06        69.983        .39417E-04   -1.3664    
   6  Prefactor     7.1161        12.046        .15037E-03   -1.5174    
   7  Prefactor     .10000E-03    32.264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    96.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6304        .77379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     280.93        128.23        .12104E-03   -1.2340    
  12  norm          9.2680        6.2403        .12505E-03   -1.5099    
  13  Prefactor     .10000E-03    14.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6284        .17975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6283        .13051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     178.07        250.40        .15153E-03   -1.3031    
  17  Prefactor     5.6896        6.8445        .15477E-03   -1.5231    
  18  Prefactor     7.2701        32.186        .14797E-03   -1.5169    
  19  Prefactor     17.274        20.471        .96348E-04   -1.4876    
  20  Prefactor     11.711        71.876        .11708E-03   -1.5023    
  21  Normalizat    1.2835        .24700        .22472E-03   -.84059    
  22  Prefactor     .58330        .18473        .25043E-03   -1.0829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78321e-09
Minuit parameter uncertainties:
  1  5.89292e-06
  2  1.00473e-05
  3  9.81597e-06
  4  2.9088e-05
  5  70.039
  6  12.05
  7  0.000396215
  8  0.000129599
  9  1.66244e-06
  10  0.000195649
  11  128.358
  12  6.24073
  13  9.16444e-05
  14  3.34433e-06
  15  5.4064e-05
  16  251.92
  17  6.84544
  18  30.6211
  19  20.4791
  20  58.1298
  21  0.247228
  22  0.184918
Done.

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

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  1.956e-04  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.833e-01  1.849e-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.284e+00  2.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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/967799/likelihoodResults_343267201_343526401_4FGL_J0257.9-1215_daily_bin401.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) = 3927.36586635
delta logL = -0.000336592590429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3927.36553071
delta logL = -9.4666484074e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6749       1.0000          .0000       10.000    
     3 'Normalizat'    1.2832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58354       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=   3927.366     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      262 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    88.350        .36285E-02** at limit **
   2  Index         3.1168        5.1247        .50000        .10116E-06
   3  Normalizat    1.2835        .11756E-01    .22471E-03   -.96157E-03
   4  Prefactor     .58329        .92139E-02    .25043E-03   -.87809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.11683
  Normalizat = 1.28354
  Prefactor  = 0.583288
 **********
 **   18 **HESSE 
 **********

 FCN=   3927.366     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    439.28        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1168        6.9449        .50000       -.38616    
   3  Normalizat    1.2835        .26724E-01    .44943E-04   -.84059    
   4  Prefactor     .58329        .20945E-01    .50087E-04   -1.0829    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.4368e-10
Minuit parameter uncertainties:
  1  9.99319e-05
  2  713.136
  3  0.026724
  4  0.0209452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/967799': 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) = 3927.36552879
delta logL = 9.69472694123e-07

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  9.993e-05  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  3.117e+00  7.131e+02  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.833e-01  2.095e-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:  1.284e+00  2.672e-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/967799/cmap_HighResolution_343267201_343526401_4FGL_J0257.9-1215_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-08-17 05:09:12.536344', job_id='967799', GAL2='0.58', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1629202152.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='9.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='401' AND source_name='4FGL J0257.9-1215' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 05:09:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 967799: <4FGL_J0257.9-1215_daily_bin401> in cluster <slac> Done

Job <4FGL_J0257.9-1215_daily_bin401> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 04:53:52 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:58:47 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:58:47 2021
Terminated at Tue Aug 17 05:09:13 2021
Results reported at Tue Aug 17 05:09:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0257.9-1215_daily_bin401 44.492 -12.2637 343267201 343526401 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 :                                   523.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   626 sec.
    Turnaround time :                            921 sec.

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

