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


Performing analysis on: 4FGL_J0257.9-1215_daily_bin1373
RA = 44.492, Dec = -12.2637
tmin = 595209601, tmax = 595468801
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='975672', job_status='RUN', time_executed='2021-08-17 05:21:39.093502', time_epoch_executed='1629202899.09' WHERE source_name='4FGL J0257.9-1215' and cadence='daily' and bin_id='1373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/975672

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/975672/ft1_4FGL_J0257.9-1215_daily_bin1373.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/975672/ft2_4FGL_J0257.9-1215_daily_bin1373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/975672/ft1_4FGL_J0257.9-1215_daily_bin1373.fits outfile=/scratch/kocevski/975672/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin1373.fits ra=44.492 dec=-12.2637 rad=12.0 tmin=595209601.0 tmax=595468801.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 5.33
user 2.71
sys 0.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/975672/ft2_4FGL_J0257.9-1215_daily_bin1373.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/975672/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin1373.fits evtable="EVENTS" outfile="/scratch/kocevski/975672/ft1_filtered_4FGL_J0257.9-1215_daily_bin1373.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.32
sys 0.96

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/975672/ft1_filtered_4FGL_J0257.9-1215_daily_bin1373.fits" evtable="EVENTS" scfile=/scratch/kocevski/975672/ft2_4FGL_J0257.9-1215_daily_bin1373.fits sctable="SC_DATA" outfile=/scratch/kocevski/975672/ltcube_595209601_595468801_4FGL_J0257.9-1215_daily_bin1373.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/975672/ft2_4FGL_J0257.9-1215_daily_bin1373.fits
.....................!
real 15.74
user 13.29
sys 1.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/975672/ft1_filtered_4FGL_J0257.9-1215_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/975672/ft2_4FGL_J0257.9-1215_daily_bin1373.fits sctable="SC_DATA" expcube=/scratch/kocevski/975672/ltcube_595209601_595468801_4FGL_J0257.9-1215_daily_bin1373.fits outfile=/scratch/kocevski/975672/expmap_595209601_595468801_4FGL_J0257.9-1215_daily_bin1373.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/975672/ltcube_595209601_595468801_4FGL_J0257.9-1215_daily_bin1373.fits
.....................!
real 200.30
user 186.50
sys 6.26

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 173 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/975672/ft1_filtered_4FGL_J0257.9-1215_daily_bin1373.fits scfile=/scratch/kocevski/975672/ft2_4FGL_J0257.9-1215_daily_bin1373.fits outfile=/scratch/kocevski/975672/cmap_595209601_595468801_4FGL_J0257.9-1215_daily_bin1373.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 1.43
user 0.37
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/975672/ft1_filtered_4FGL_J0257.9-1215_daily_bin1373.fits scfile=/scratch/kocevski/975672/ft2_4FGL_J0257.9-1215_daily_bin1373.fits outfile=/scratch/kocevski/975672/cmap_HighResolution_595209601_595468801_4FGL_J0257.9-1215_daily_bin1373.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=44.492 yref=-12.2637 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.55
user 0.39
sys 0.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/975672/ft1_filtered_4FGL_J0257.9-1215_daily_bin1373.fits evtable="EVENTS" scfile=/scratch/kocevski/975672/ft2_4FGL_J0257.9-1215_daily_bin1373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/975672/Model_4FGL_J0257.9-1215_daily_bin1373.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/975672/ft1_filtered_4FGL_J0257.9-1215_daily_bin1373.fits.......................!
real 35.74
user 27.36
sys 2.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    94.176       1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.309       1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.259       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.9548       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.344       1.0000         .10000E-03   10000.    
    12 'norm      '    9.9142       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    174.49       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    80.570       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11066E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21040E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95682       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .70715       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=   1671.239     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2332 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.631        .13282E-05** at limit **
   2  Prefactor     .10000E-03    8.5365       -.98603E-07** at limit **
   3  Prefactor     .10000E-03    50.129       -.28000E-04** at limit **
   4  norm          .10000E-03    54.721        .24386E-04** at limit **
   5  Prefactor     94.152        86.074       -.21801E-04    .80068E-05
   6  Prefactor     69.331        89.776        .21598E-04    .16057E-04
   7  Prefactor     61.235        96.407       -.29242E-04    .13677E-04
   8  Prefactor     .10000E-03    175.81       -.83277E-04** at limit **
   9  norm          5.9550        4.1031       -.32528E-06    .25436E-03
  10  Prefactor     .10000E-03    8.3506        .21666E-06** at limit **
  11  Prefactor     14.220        369.05       -.30626E-03    .19971E-04
  12  norm          9.9124        9.4749       -.15490E-05    .35660E-04
  13  Prefactor     .10000E-03    26.231        .27851E-05** at limit **
  14  Prefactor     .10001E-03    15.579        .42281E-06** at limit **
  15  Prefactor     19.614        18.095        .21758E-06   -.13430E-03
  16  Prefactor     174.60        318.22        .85804E-04    .26322E-05
  17  Prefactor     .10000E-03    2.9541        .12798E-06** at limit **
  18  Prefactor     80.533        46.205       -.21791E-04   -.69111E-04
  19  Prefactor     .10011E-03    134.39        .62095E-04** at limit **
  20  Prefactor     .10000E-03    147.85        .50121E-04** at limit **
  21  Normalizat    .95785        .40766        .15744E-04   -.15434E-03
  22  Prefactor     .70606        .30741        .15364E-04   -.24941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 94.1524
  Prefactor  = 69.3308
  Prefactor  = 61.2348
  Prefactor  = 0.0001
  norm       = 5.95495
  Prefactor  = 0.0001
  Prefactor  = 14.2199
  norm       = 9.91243
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 19.6137
  Prefactor  = 174.6
  Prefactor  = 0.0001
  Prefactor  = 80.5328
  Prefactor  = 0.00010011
  Prefactor  = 0.0001
  Normalizat = 0.957847
  Prefactor  = 0.706059
 **********
 **   18 **HESSE 
 **********

 FCN=   1671.239     FROM HESSE     STATUS=OK           328 CALLS     2660 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.635        .15276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.5451        .11664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    54.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     94.152        86.630        .41414E-04   -1.3764    
   6  Prefactor     69.331        89.826        .48215E-04   -1.4041    
   7  Prefactor     61.235        96.672        .51265E-04   -1.4141    
   8  Prefactor     .10000E-03    175.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9550        4.1167        .62086E-04   -1.5220    
  10  Prefactor     .10000E-03    8.3581        .11539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.220        374.18        .10576E-03   -1.4954    
  12  norm          9.9124        9.5072        .11280E-03   -1.5078    
  13  Prefactor     .10000E-03    26.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    15.593        .15757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.614        18.117        .90406E-04   -1.4822    
  16  Prefactor     174.60        318.84        .15275E-03   -1.3057    
  17  Prefactor     .10000E-03    2.9550        .68608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     80.533        46.547        .44744E-04   -1.3911    
  19  Prefactor     .10011E-03    139.12        .41389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    148.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95785        .47144        .28112E-03   -.94456    
  22  Prefactor     .70606        .35261        .25863E-03   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08732e-09
Minuit parameter uncertainties:
  1  4.488e-05
  2  2.39392e-06
  3  0.000289065
  4  8.64615e-05
  5  86.7462
  6  90.0025
  7  96.9214
  8  3.32052e-06
  9  4.11693
  10  1.60647e-05
  11  146.919
  12  9.50862
  13  2.24408e-05
  14  0.000756619
  15  18.1219
  16  322.072
  17  4.59837e-05
  18  46.5679
  19  0.00785524
  20  6.72227e-05
  21  0.473506
  22  0.35373
Done.

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

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.000e-04  1.606e-05  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:  7.061e-01  3.537e-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.578e-01  4.735e-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.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/975672/likelihoodResults_595209601_595468801_4FGL_J0257.9-1215_daily_bin1373.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) = 1671.24000966
delta logL = -0.000547996120531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1671.23946166
delta logL = 5.27256815985e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6429       1.0000          .0000       10.000    
     3 'Normalizat'    .95784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70606       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=   1671.239     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10040E-03    421.71        .11551E-02** at limit **
   2  Index         2.5869        5.1823        .50000        .40978E-05
   3  Normalizat    .95784        .69367E-01    .28111E-03   -.50552E-07
   4  Prefactor     .70606        .55841E-01    .25862E-03    .76928E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100401
  Index      = 2.58686
  Normalizat = 0.957844
  Prefactor  = 0.706064
 **********
 **   18 **HESSE 
 **********

 FCN=   1671.239     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10040E-03    1376.0        .23101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5869        5.8249        .50000       -.50365    
   3  Normalizat    .95784        .16581        .11244E-04   -.94456    
   4  Prefactor     .70606        .13349        .10345E-04   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.45761e-08
Minuit parameter uncertainties:
  1  0.0481475
  2  3034.03
  3  0.165902
  4  0.13355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/975672': 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) = 1671.23946162
delta logL = 4.32391971117e-08

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.004e-04  4.815e-02  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  2.587e+00  3.034e+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:  7.061e-01  1.335e-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.578e-01  1.659e-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/975672/cmap_HighResolution_595209601_595468801_4FGL_J0257.9-1215_daily_bin1373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', job_status='DONE', photon_flux_upper_limit='1.94e-07', time_completed='2021-08-17 05:29:01.936259', job_id='975672', GAL2='0.71', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629203341.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.32e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1373' AND source_name='4FGL J0257.9-1215' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 05:29:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 975672: <4FGL_J0257.9-1215_daily_bin1373> in cluster <slac> Done

Job <4FGL_J0257.9-1215_daily_bin1373> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 17 05:15:22 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 05:18:38 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:18:38 2021
Terminated at Tue Aug 17 05:29:02 2021
Results reported at Tue Aug 17 05:29:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0257.9-1215_daily_bin1373 44.492 -12.2637 595209601 595468801 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 :                                   423.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   624 sec.
    Turnaround time :                            820 sec.

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

