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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin270
RA = 192.244, Dec = 48.67
tmin = 309312001, tmax = 309571201
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='917737', job_status='RUN', time_executed='2021-09-06 05:37:46.473363', time_epoch_executed='1630931866.47' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917737/ft1_4FGL_J1248.9+4840_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917737/ft1_4FGL_J1248.9+4840_daily_bin270.fits outfile=/scratch/kocevski/917737/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin270.fits ra=192.244 dec=48.67 rad=12.0 tmin=309312001.0 tmax=309571201.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.11
user 3.79
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.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/917737/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/917737/ft1_filtered_4FGL_J1248.9+4840_daily_bin270.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917737/ft1_filtered_4FGL_J1248.9+4840_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/917737/ltcube_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.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/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917737/ft1_filtered_4FGL_J1248.9+4840_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/917737/ltcube_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.fits outfile=/scratch/kocevski/917737/expmap_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.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/917737/ltcube_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.fits
.....................!
real 191.14
user 185.09
sys 5.59

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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/917737/ft1_filtered_4FGL_J1248.9+4840_daily_bin270.fits scfile=/scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits outfile=/scratch/kocevski/917737/cmap_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.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=192.244 yref=48.67 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.75
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917737/ft1_filtered_4FGL_J1248.9+4840_daily_bin270.fits scfile=/scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits outfile=/scratch/kocevski/917737/cmap_HighResolution_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.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=192.244 yref=48.67 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.85
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917737/ft1_filtered_4FGL_J1248.9+4840_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917737/Model_4FGL_J1248.9+4840_daily_bin270.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/917737/ft1_filtered_4FGL_J1248.9+4840_daily_bin270.fits.....................!
real 48.47
user 45.27
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/917737/ft1_filtered_4FGL_J1248.9+4840_daily_bin270.fits', '/scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits', expMap='/scratch/kocevski/917737/expmap_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.fits', expCube='/scratch/kocevski/917737/ltcube_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/917737/Model_4FGL_J1248.9+4840_daily_bin270.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/917737/ft1_filtered_4FGL_J1248.9+4840_daily_bin270.fits
Spacecraft file(s): /scratch/kocevski/917737/ft2_4FGL_J1248.9+4840_daily_bin270.fits
Exposure map: /scratch/kocevski/917737/expmap_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.fits
Exposure cube: /scratch/kocevski/917737/ltcube_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/917737/Model_4FGL_J1248.9+4840_daily_bin270.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) = 5293.42081149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96970       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5914       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3356       1.0000         .10000E-03   10000.    
     4 'norm      '    .27018       1.0000         .10000E-03   10000.    
     5 'Prefactor '    68.624       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.6610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0115       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1500       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5756       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.546       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .50140E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.747       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10689E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.6866       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.6010       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .47007       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.6115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5293.362     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2969 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97062        3.7124        .11392E-05   -.97003E-04
   2  Prefactor     5.5867        17.933       -.10308E-05   -.14813E-03
   3  norm          2.3356        2.4173        .72508E-07   -.33008E-03
   4  norm          .14001        15.121        .38651E-05   -.64988E-03
   5  Prefactor     68.782        33.355       -.22739E-05   -.92644E-03
   6  Prefactor     .10000E-03    1.2269        .55000E-08** at limit **
   7  norm          4.6609        2.2648        .10945E-07   -.26928E-04
   8  Prefactor     6.9844        22.026        .43616E-06   -.14860E-03
   9  Prefactor     7.1495        12.202        .10762E-06   -.69399E-06
  10  norm          3.5755        1.9423       -.82277E-08   -.13205E-03
  11  Prefactor     .10000E-03    2.3384        .90018E-08** at limit **
  12  Prefactor     25.544        32.244        .14630E-06    .33689E-05
  13  Prefactor     .10000E-03    3.1839        .21201E-07** at limit **
  14  Prefactor     .10000E-03    6.1506        .17791E-07** at limit **
  15  norm          .10000E-03    9.4111        .81288E-07** at limit **
  16  norm          .49083E-01    2.0904        .33256E-07    .64107E-04
  17  Prefactor     19.740        30.113       -.18237E-06    .18899E-04
  18  Prefactor     .10000E-03    6.0957        .51589E-07** at limit **
  19  Prefactor     .10000E-03    26.471        .57600E-06** at limit **
  20  norm          3.6866        3.1886        .36165E-07   -.17886E-04
  21  Prefactor     .10000E-03    29.129        .38127E-06** at limit **
  22  norm          1.6012        1.8116        .21867E-06    .44430E-04
  23  norm          .10000E-03    38.688       -.42406E-06** at limit **
  24  Normalizat    .46982        .18007       -.11478E-05   -.35186E-03
  25  Prefactor     1.6118        .22242       -.50236E-07   -.42418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.970622
  Prefactor  = 5.58675
  norm       = 2.33559
  norm       = 0.140013
  Prefactor  = 68.7822
  Prefactor  = 0.0001
  norm       = 4.66095
  Prefactor  = 6.98437
  Prefactor  = 7.14949
  norm       = 3.57546
  Prefactor  = 0.0001
  Prefactor  = 25.5444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0490834
  Prefactor  = 19.7396
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.6866
  Prefactor  = 0.0001
  norm       = 1.6012
  norm       = 0.0001
  Normalizat = 0.469815
  Prefactor  = 1.61178
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.362     FROM HESSE     STATUS=OK           439 CALLS     3408 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97062        3.5807        .23338E-03   -1.5511    
   2  Prefactor     5.5867        17.441        .16990E-03   -1.5235    
   3  norm          2.3356        2.4012        .10835E-03   -1.5402    
   4  norm          .14001        12.334        .55764E-01   -1.5633    
   5  Prefactor     68.782        35.571        .48454E-04   -1.4047    
   6  Prefactor     .10000E-03    1.2274        .78701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6609        2.2647        .74309E-04   -1.5276    
   8  Prefactor     6.9844        21.934        .15150E-03   -1.5179    
   9  Prefactor     7.1495        12.199        .15001E-03   -1.5173    
  10  norm          3.5755        1.9424        .72726E-04   -1.5330    
  11  Prefactor     .10000E-03    2.3390        .10866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.544        32.238        .79256E-04   -1.4697    
  13  Prefactor     .10000E-03    3.1894        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1548        .17623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.4390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .49083E-01    38.816        .19973E-02   -1.5664    
  17  Prefactor     19.740        30.188        .90131E-04   -1.4819    
  18  Prefactor     .10000E-03    6.1056        .17542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6866        3.1890        .11682E-03   -1.5324    
  21  Prefactor     .10000E-03    29.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6012        1.7902        .97150E-04   -1.5455    
  23  norm          .10000E-03    38.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .46982        .20569        .30335E-03   -1.1384    
  25  Prefactor     1.6118        .25947        .22928E-03   -.74455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34662e-09
Minuit parameter uncertainties:
  1  3.58146
  2  17.4571
  3  2.40135
  4  2.62785
  5  35.5819
  6  3.81024e-07
  7  2.26475
  8  21.9593
  9  12.203
  10  1.94245
  11  7.03725e-07
  12  32.2599
  13  1.75343e-06
  14  2.01945e-06
  15  5.62328e-06
  16  2.75958
  17  30.2112
  18  3.54122e-06
  19  5.88192e-05
  20  3.18915
  21  0.000171619
  22  1.79027
  23  0.000264344
  24  0.206025
  25  0.259681
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  6.984e+00  2.196e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.612e+00  2.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  4.698e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 8.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917737/likelihoodResults_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.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) = 5293.22311471
delta logL = 0.138964239074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5293.19281339
delta logL = 0.169265560514

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8948       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3260       1.0000          .0000       10.000    
     3 'Normalizat'    .45164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6258       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5293.193     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      219 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8948        162.86        .51112E-02    .42189E-03
   2  Index         3.3263        3.5924        .21453        .64948E-04
   3  Normalizat    .45167        .36597E-01    .69797E-01    .36079E-04
   4  Prefactor     1.6258        .48083E-01    .51666E-01   -.28910E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8948
  Index      = 3.32626
  Normalizat = 0.451666
  Prefactor  = 1.62577
 **********
 **   18 **HESSE 
 **********

 FCN=   5293.193     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8948        26.550        .20445E-03   -1.5313    
   2  Index         3.3263        2.5672        .74096E-02   -.34134    
   3  Normalizat    .45167        .19718        .30898E-03   -1.1471    
   4  Prefactor     1.6258        .25881        .22840E-03   -.74076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1483e-08
Minuit parameter uncertainties:
  1  20.3504
  2  2.71503
  3  0.197483
  4  0.259021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917737': 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) = 5293.19281329
delta logL = 0.169265659909

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.895e+00  2.035e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.326e+00  2.715e+00  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.626e+00  2.590e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  4.517e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 192.244 48.670

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/917737/cmap_HighResolution_309312001_309571201_4FGL_J1248.9+4840_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.91e-08', time_completed='2021-09-06 05:49:54.177164', job_id='917737', GAL2='1.63', fit_tolerance='1e-08', EG2='0.45', EG='0.47', time_epoch_completed='1630932594.18', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.61', dlogl='1.69e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='270' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 917737: <4FGL_J1248.9+4840_daily_bin270> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin270> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 05:35:32 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 05:35:34 2021
Terminated at Mon Sep  6 05:49:54 2021
Results reported at Mon Sep  6 05:49:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin270 192.244 48.67 309312001 309571201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.9+4840 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

