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


Performing analysis on: 4FGL_J1048.4+7143_daily_bin974
RA = 162.107, Dec = 71.7297
tmin = 491788801, tmax = 492048001
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='214158', job_status='RUN', time_executed='2021-09-02 16:33:41.676260', time_epoch_executed='1630625621.68' WHERE source_name='4FGL J1048.4+7143' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214158

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214158/ft1_4FGL_J1048.4+7143_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214158/ft1_4FGL_J1048.4+7143_daily_bin974.fits outfile=/scratch/kocevski/214158/ft1_filteredMKT_4FGL_J1048.4+7143_daily_bin974.fits ra=162.107 dec=71.7297 rad=12.0 tmin=491788801.0 tmax=492048001.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.25
user 4.01
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.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/214158/ft1_filteredMKT_4FGL_J1048.4+7143_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/214158/ft1_filtered_4FGL_J1048.4+7143_daily_bin974.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/214158/ft1_filtered_4FGL_J1048.4+7143_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/214158/ltcube_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.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/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits
.....................!
real 14.65
user 13.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214158/ft1_filtered_4FGL_J1048.4+7143_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/214158/ltcube_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.fits outfile=/scratch/kocevski/214158/expmap_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.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/214158/ltcube_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.fits
.....................!
real 193.14
user 187.29
sys 5.29

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

Setting source of interest to:
4FGL J1048.4+7143 @ 162.107 71.7297

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/214158/ft1_filtered_4FGL_J1048.4+7143_daily_bin974.fits scfile=/scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits outfile=/scratch/kocevski/214158/cmap_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.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=162.107 yref=71.7297 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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214158/ft1_filtered_4FGL_J1048.4+7143_daily_bin974.fits scfile=/scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits outfile=/scratch/kocevski/214158/cmap_HighResolution_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.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=162.107 yref=71.7297 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214158/ft1_filtered_4FGL_J1048.4+7143_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214158/Model_4FGL_J1048.4+7143_daily_bin974.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/214158/ft1_filtered_4FGL_J1048.4+7143_daily_bin974.fits......................!
real 24.92
user 23.60
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/214158/ft1_filtered_4FGL_J1048.4+7143_daily_bin974.fits', '/scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits', expMap='/scratch/kocevski/214158/expmap_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.fits', expCube='/scratch/kocevski/214158/ltcube_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/214158/Model_4FGL_J1048.4+7143_daily_bin974.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1048.4+7143'

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  2.733e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/214158/ft1_filtered_4FGL_J1048.4+7143_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/214158/ft2_4FGL_J1048.4+7143_daily_bin974.fits
Exposure map: /scratch/kocevski/214158/expmap_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.fits
Exposure cube: /scratch/kocevski/214158/ltcube_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/214158/Model_4FGL_J1048.4+7143_daily_bin974.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) = 1151.86805066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    113.86       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9637       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14432E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9600       1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.3259       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    369.22       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.9500       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4016       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.870       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28999E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.263       1.0000         .10000E-03   10000.    
    26 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13129E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    85.621       1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.601       1.0000         .10000E-03   10000.    
    30 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    107.32       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .63050       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1151.650     FROM MIGRAD    STATUS=CONVERGED    989 CALLS     5581 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     113.79        213.76       -.23865E-04    .11037E-04
   2  Prefactor     .10000E-03    11.665        .21003E-06** at limit **
   3  norm          6.9692        7.7270       -.15226E-05    .11520E-03
   4  Prefactor     .10000E-03    204.07        .72289E-04** at limit **
   5  Prefactor     .10000E-03    76.929       -.99082E-05** at limit **
   6  Prefactor     .10000E-03    149.99       -.54330E-04** at limit **
   7  Prefactor     .10000E-03    28.594       -.43949E-05** at limit **
   8  Prefactor     .10000E-03    15.706        .43758E-06** at limit **
   9  norm          3.9629        3.3812       -.99849E-06    .56622E-03
  10  norm          .10000E-03    35.144       -.73090E-05** at limit **
  11  Prefactor     .10000E-03    42.707        .17615E-04** at limit **
  12  Prefactor     .10000E-03    16.535       -.16077E-05** at limit **
  13  Prefactor     .10000E-03    79.177        .13116E-04** at limit **
  14  Prefactor     .10000E-03    45.340       -.10921E-04** at limit **
  15  norm          9.3288        7.4165       -.26145E-06    .10480E-03
  16  Prefactor     .10000E-03    129.36        .89353E-05** at limit **
  17  norm          .10001E-03    11.131       -.16358E-05** at limit **
  18  Prefactor     369.84        595.00        .31749E-03    .15846E-04
  19  Prefactor     .10000E-03    11.248       -.76527E-07** at limit **
  20  norm          5.9514        2.7385       -.24100E-06    .62508E-03
  21  norm          3.4074        6.6037       -.26124E-05    .61021E-03
  22  Prefactor     10.722        24.824        .24801E-04    .45251E-03
  23  Prefactor     .10000E-03    31.443       -.36665E-05** at limit **
  24  Prefactor     .10000E-03    26.790        .11478E-04** at limit **
  25  Prefactor     12.273        15.005        .54453E-06    .10906E-03
  26  norm          .10000E-03    24.752       -.61973E-05** at limit **
  27  Prefactor     .46528        41.201       -.10763E-04   -.41769E-04
  28  Prefactor     85.576        171.00       -.47439E-04    .35556E-04
  29  Prefactor     22.652        47.059       -.38965E-04    .27833E-05
  30  norm          .10000E-03    17.429        .12440E-05** at limit **
  31  norm          .10000E-03    3.2873       -.12708E-07** at limit **
  32  Prefactor     107.22        120.21       -.47146E-04    .25161E-04
  33  Normalizat    .62945        .46531       -.48040E-05    .23141E-03
  34  Prefactor     1.1755        .42460        .51874E-05    .24730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 113.788
  Prefactor  = 0.0001
  norm       = 6.96919
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.96291
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.32885
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 369.84
  Prefactor  = 0.0001
  norm       = 5.95144
  norm       = 3.40736
  Prefactor  = 10.7217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2734
  norm       = 0.0001
  Prefactor  = 0.465278
  Prefactor  = 85.5757
  Prefactor  = 22.6517
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 107.221
  Normalizat = 0.629446
  Prefactor  = 1.17553
 **********
 **   18 **HESSE 
 **********

 FCN=   1151.650     FROM HESSE     STATUS=OK           718 CALLS     6299 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     113.79        214.02        .37702E-04   -1.3570    
   2  Prefactor     .10000E-03    11.667        .11322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9692        7.7303        .93623E-04   -1.5180    
   4  Prefactor     .10000E-03    204.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    77.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    152.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.594        .17734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.708        .13140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9629        3.3846        .52666E-04   -1.5310    
  10  norm          .10000E-03    35.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.538        .13483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    79.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.3288        7.4201        .80015E-04   -1.5097    
  16  Prefactor     .10000E-03    129.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    11.153        .11032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     369.84        593.75        .10606E-03   -1.1838    
  19  Prefactor     .10000E-03    11.284        .11105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9514        2.7326        .35310E-04   -1.5220    
  21  norm          3.4074        5.5588        .95543E-04   -1.5339    
  22  Prefactor     10.722        24.759        .12152E-03   -1.5053    
  23  Prefactor     .10000E-03    45.051        .30390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.790        .17164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.273        14.976        .11439E-03   -1.5007    
  26  norm          .10000E-03    24.754        .16498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .46528        337.68        .37693E-02   -1.5572    
  28  Prefactor     85.576        170.94        .21708E-03   -1.3855    
  29  Prefactor     22.652        47.224        .84254E-04   -1.4756    
  30  norm          .10000E-03    17.839        .13833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    3.2877        .60098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     107.22        120.09        .19411E-03   -1.3633    
  33  Normalizat    .62945        .53237        .33240E-03   -1.0675    
  34  Prefactor     1.1755        .49931        .23954E-03   -.87088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94434e-09
Minuit parameter uncertainties:
  1  215.497
  2  5.04029e-05
  3  7.73138
  4  8.43569e-05
  5  0.000439219
  6  0.000892439
  7  2.54768e-06
  8  3.37911e-06
  9  3.38477
  10  2.34244e-05
  11  2.54879e-05
  12  7.85238e-05
  13  2.28236e-05
  14  1.44702e-05
  15  7.42081
  16  1.44992e-05
  17  0.000509847
  18  604.005
  19  5.72238e-06
  20  2.73263
  21  5.55962
  22  24.7823
  23  0.000101743
  24  9.23462e-06
  25  14.9801
  26  2.1575e-05
  27  25.2101
  28  171.934
  29  47.3016
  30  6.51524e-05
  31  2.19185e-06
  32  120.368
  33  0.536795
  34  0.501334
Done.

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

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  5.951e+00  2.733e+00  1.000e-04  1.000e+04 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  1.176e+00  5.013e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  6.294e-01  5.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.21
Ra Dec: 162.107 71.730
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 3.05e-07 +/- 1.40e-07
Energy Flux (Fixed Index): 1.22e-04 +/- 5.61e-05

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) = 1151.61872472
delta logL = 0.0311282038206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1151.60722476
delta logL = 0.0426281652842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3409       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0586       1.0000          .0000       5.0000    
     3 'Normalizat'    .66124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1554       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1151.607     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      210 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3369        4.4919        .39850E-02   -.12820E-05
   2  alpha         2.0589        .69111        .13326        .55145E-05
   3  Normalizat    .66268        .44797        .73397E-01    .51571E-05
   4  Prefactor     1.1546        .42123        .54597E-01    .23783E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33687
  alpha      = 2.05888
  Normalizat = 0.662679
  Prefactor  = 1.15464
 **********
 **   18 **HESSE 
 **********

 FCN=   1151.607     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3369        3.0662        .37067E-04   -1.5204    
   2  alpha         2.0589        .48536        .57485E-02   -.17738    
   3  Normalizat    .66268        .51063        .32490E-03   -1.0539    
   4  Prefactor     1.1546        .48430        .24140E-03   -.87739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09235e-11
Minuit parameter uncertainties:
  1  3.06623
  2  0.488568
  3  0.514343
  4  0.486176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214158': 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) = 1151.60721845
delta logL = 0.0426344660073

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  6.337e+00  3.066e+00  1.000e-04  1.000e+04 ( 1.000e-11)
390        alpha:  2.059e+00  4.886e-01  0.000e+00  5.000e+00 ( 1.000e+00)
391         beta:  8.500e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  1.155e+00  4.862e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  6.627e-01  5.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.26
Ra Dec: 162.107 71.730
Photon Index (Free Index): 2.06 +/- 0.49
Photon Flux (Free Index): 2.80e-07 +/- 1.53e-07
Energy Flux (Free Index): 1.38e-04 +/- 8.95e-05

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/214158/cmap_HighResolution_491788801_492048001_4FGL_J1048.4+7143_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.05e-07', energy_flux2='1.38e-04', photon_flux_error='1.40e-07', dlogl='4.26e-02', energy_flux='1.22e-04', photon_flux2='2.80e-07', job_status='DONE', time_completed='2021-09-02 16:42:02.304577', photon_index_error2='0.49', photon_index2='2.06', ts='14.21', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='8.95e-05', EG='0.63', time_epoch_completed='1630626122.3', return_code='0', job_id='214158', GAL2='1.15', EG2='0.66', return_code2='0', energy_flux_error='5.61e-05', photon_flux_error2='1.53e-07', ts2='14.26', photon_index='2.20' WHERE bin_id='974' AND source_name='4FGL J1048.4+7143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 16:42:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 214158: <4FGL_J1048.4+7143_daily_bin974> in cluster <slac> Done

Job <4FGL_J1048.4+7143_daily_bin974> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  2 16:31:31 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 16:33:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 16:33:24 2021
Terminated at Thu Sep  2 16:42:03 2021
Results reported at Thu Sep  2 16:42:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1048.4+7143_daily_bin974 162.107 71.7297 491788801 492048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1048.4+7143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   492.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            632 sec.

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

