/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 5 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.3+5820_daily_bin117
RA = 192.084, Dec = 58.3432
tmin = 269654401, tmax = 269913601
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='907110', job_status='RUN', time_executed='2021-09-06 05:01:19.713329', time_epoch_executed='1630929679.71' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907110/ft1_4FGL_J1248.3+5820_daily_bin117.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907110/ft1_4FGL_J1248.3+5820_daily_bin117.fits outfile=/scratch/kocevski/907110/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin117.fits ra=192.084 dec=58.3432 rad=12.0 tmin=269654401.0 tmax=269913601.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 3.48
user 3.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.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/907110/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin117.fits evtable="EVENTS" outfile="/scratch/kocevski/907110/ft1_filtered_4FGL_J1248.3+5820_daily_bin117.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907110/ft1_filtered_4FGL_J1248.3+5820_daily_bin117.fits" evtable="EVENTS" scfile=/scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits sctable="SC_DATA" outfile=/scratch/kocevski/907110/ltcube_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.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/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits
.....................!
real 12.62
user 12.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907110/ft1_filtered_4FGL_J1248.3+5820_daily_bin117.fits evtable="EVENTS" scfile=/scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits sctable="SC_DATA" expcube=/scratch/kocevski/907110/ltcube_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.fits outfile=/scratch/kocevski/907110/expmap_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.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/907110/ltcube_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.fits
.....................!
real 189.50
user 185.17
sys 4.01

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

Setting source of interest to:
4FGL J1248.3+5820 @ 192.084 58.3432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/907110/ft1_filtered_4FGL_J1248.3+5820_daily_bin117.fits scfile=/scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits outfile=/scratch/kocevski/907110/cmap_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.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.084 yref=58.3432 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907110/ft1_filtered_4FGL_J1248.3+5820_daily_bin117.fits scfile=/scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits outfile=/scratch/kocevski/907110/cmap_HighResolution_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.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.084 yref=58.3432 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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907110/ft1_filtered_4FGL_J1248.3+5820_daily_bin117.fits evtable="EVENTS" scfile=/scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907110/Model_4FGL_J1248.3+5820_daily_bin117.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/907110/ft1_filtered_4FGL_J1248.3+5820_daily_bin117.fits.....................!
real 55.07
user 53.82
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907110/ft1_filtered_4FGL_J1248.3+5820_daily_bin117.fits', '/scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits', expMap='/scratch/kocevski/907110/expmap_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.fits', expCube='/scratch/kocevski/907110/ltcube_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907110/Model_4FGL_J1248.3+5820_daily_bin117.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.3+5820'

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.611e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/907110/ft1_filtered_4FGL_J1248.3+5820_daily_bin117.fits
Spacecraft file(s): /scratch/kocevski/907110/ft2_4FGL_J1248.3+5820_daily_bin117.fits
Exposure map: /scratch/kocevski/907110/expmap_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.fits
Exposure cube: /scratch/kocevski/907110/ltcube_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907110/Model_4FGL_J1248.3+5820_daily_bin117.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) = 6150.91878989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.123       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6539       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5871       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3864       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.451       1.0000         .10000E-03   10000.    
    11 'norm      '    8.4009       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9676       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5194       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4215       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0075       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0838       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.072       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.520       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.255       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .21966E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.845       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .60667       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6150.914     FROM MIGRAD    STATUS=CONVERGED    908 CALLS     4617 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7605        .19098E-07** at limit **
   2  Prefactor     32.125        24.353        .20105E-06   -.28858E-04
   3  norm          .10000E-03    5.2265        .83486E-08** at limit **
   4  Prefactor     2.6543        4.0576        .72744E-06    .29095E-03
   5  norm          3.5876        4.1263        .34650E-06    .73670E-04
   6  Prefactor     .10000E-03    3.0505       -.25169E-06** at limit **
   7  Prefactor     .10000E-03    9.2623       -.46494E-06** at limit **
   8  norm          6.3866        2.5504        .81382E-07   -.21298E-03
   9  Prefactor     31.730        21.979       -.84433E-07   -.16754E-03
  10  Prefactor     39.431        61.357       -.70181E-06   -.94458E-04
  11  norm          8.4008        6.5477        .12747E-06   -.53241E-05
  12  Prefactor     8.9688        17.106        .36791E-06   -.49838E-05
  13  Prefactor     2.5196        3.6881        .40834E-06   -.45646E-04
  14  norm          2.4215        1.6686       -.44041E-07   -.84652E-03
  15  Prefactor     .10000E-03    18.424        .23576E-06** at limit **
  16  norm          2.0076        1.7693        .10756E-06   -.95166E-04
  17  Prefactor     .10003E-03    215.90       -.73540E-05** at limit **
  18  Prefactor     .10010E-03    12.355        .43925E-05** at limit **
  19  norm          2.0834        2.5564        .24102E-06    .16661E-03
  20  Prefactor     10.074        28.343        .30134E-05    .12043E-03
  21  Prefactor     21.523        29.495        .21280E-06   -.15782E-04
  22  Prefactor     21.257        14.974        .18623E-06   -.11331E-03
  23  norm          .10000E-03    1.1979        .42187E-07** at limit **
  24  Prefactor     .10000E-03    16.913       -.41983E-07** at limit **
  25  Prefactor     .10000E-03    2.8975       -.87909E-07** at limit **
  26  Prefactor     .10000E-03    12.618        .10888E-06** at limit **
  27  Prefactor     15.873        12.124        .75774E-06    .26822E-03
  28  norm          .10000E-03    29.825       -.16010E-06** at limit **
  29  norm          .10000E-03    2.0302        .50521E-06** at limit **
  30  Prefactor     .10000E-03    21.841        .12800E-06** at limit **
  31  Prefactor     .10000E-03    135.49        .10239E-05** at limit **
  32  Normalizat    .60657        .15596       -.12062E-05   -.79076E-03
  33  Prefactor     1.2437        .18998       -.10501E-05   -.81870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.125
  norm       = 0.0001
  Prefactor  = 2.65428
  norm       = 3.58757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.3866
  Prefactor  = 31.7299
  Prefactor  = 39.4313
  norm       = 8.4008
  Prefactor  = 8.96876
  Prefactor  = 2.51961
  norm       = 2.4215
  Prefactor  = 0.0001
  norm       = 2.00761
  Prefactor  = 0.00010003
  Prefactor  = 0.000100099
  norm       = 2.08344
  Prefactor  = 10.0738
  Prefactor  = 21.5229
  Prefactor  = 21.2566
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.8725
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.606574
  Prefactor  = 1.24371
 **********
 **   18 **HESSE 
 **********

 FCN=   6150.914     FROM HESSE     STATUS=OK           695 CALLS     5312 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7757        .12720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.125        24.370        .70697E-04   -1.4574    
   3  norm          .10000E-03    5.2305        .17511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6543        4.0819        .18980E-03   -1.5382    
   5  norm          3.5876        4.1250        .16236E-03   -1.5329    
   6  Prefactor     .10000E-03    3.0576        .13365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3866        2.5515        .75076E-04   -1.5202    
   9  Prefactor     31.730        21.976        .71130E-04   -1.4581    
  10  Prefactor     39.431        61.269        .63816E-04   -1.4451    
  11  norm          8.4008        6.5360        .13831E-03   -1.5128    
  12  Prefactor     8.9688        17.077        .13384E-03   -1.5109    
  13  Prefactor     2.5196        3.6603        .17514E-03   -1.5390    
  14  norm          2.4215        1.6681        .81045E-04   -1.5397    
  15  Prefactor     .10000E-03    18.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0076        1.7689        .94668E-04   -1.5425    
  17  Prefactor     .10003E-03    219.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10010E-03    22.418        .35379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0834        2.5427        .13460E-03   -1.5419    
  20  Prefactor     10.074        28.610        .63129E-03   -1.5073    
  21  Prefactor     21.523        29.480        .86342E-04   -1.4780    
  22  Prefactor     21.257        14.976        .86879E-04   -1.4786    
  23  norm          .10000E-03    1.2018        .83780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.671        .21679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     15.873        10.529        .10062E-03   -1.4911    
  28  norm          .10000E-03    29.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    6.3703        .21405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    21.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    136.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .60657        .18535        .26307E-03   -1.0771    
  33  Prefactor     1.2437        .22771        .24161E-03   -.84997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8824e-09
Minuit parameter uncertainties:
  1  3.06949e-06
  2  24.3777
  3  2.16673e-06
  4  4.08237
  5  4.12535
  6  1.46789e-05
  7  4.72068e-05
  8  2.55156
  9  21.9812
  10  61.3674
  11  6.53652
  12  17.0867
  13  3.66063
  14  1.66817
  15  5.60924e-05
  16  1.7689
  17  0.00513438
  18  0.00298492
  19  2.54279
  20  28.6484
  21  29.4998
  22  14.9787
  23  2.44157e-06
  24  3.42619e-05
  25  0.00018797
  26  2.25713e-05
  27  10.5299
  28  9.01559e-05
  29  1.04906e-05
  30  5.30372e-05
  31  0.00117912
  32  0.185545
  33  0.227887
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  2.422e+00  1.668e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.244e+00  2.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  6.066e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.70
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 2.14e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.47e-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) = 6149.64905308
delta logL = 1.264919052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6149.56522618
delta logL = 1.34874595583

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6149.565     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6961        1.2122        .80703E-02   -.11933E-03
   2  alpha         1.0850        .31738        .26654       -.46088E-04
   3  Normalizat    .61469        .14780        .59085E-01    .22192E-04
   4  Prefactor     1.2418        .18930        .54671E-01   -.40597E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69608
  alpha      = 1.08498
  Normalizat = 0.614692
  Prefactor  = 1.24179
 **********
 **   18 **HESSE 
 **********

 FCN=   6149.565     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6961        1.5396        .67843E-04   -1.5447    
   2  alpha         1.0850        .41752        .11277E-01   -.60166    
   3  Normalizat    .61469        .17661        .26137E-03   -1.0736    
   4  Prefactor     1.2418        .22651        .24173E-03   -.85055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80955e-12
Minuit parameter uncertainties:
  1  1.53964
  2  0.420428
  3  0.176776
  4  0.226692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907110': 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) = 6149.56522469
delta logL = 1.34874743904

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.696e+00  1.540e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.085e+00  4.204e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.242e+00  2.267e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  6.147e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.40
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.08 +/- 0.42
Photon Flux (Free Index): 1.04e-08 +/- 8.31e-09
Energy Flux (Free Index): 8.31e-05 +/- 8.25e-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/907110/cmap_HighResolution_269654401_269913601_4FGL_J1248.3+5820_daily_bin117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-08', energy_flux2='8.31e-05', photon_flux_error='1.47e-08', dlogl='1.35e+00', energy_flux='2.14e-05', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-09-06 05:16:39.079166', photon_index_error2='0.42', photon_index2='1.08', ts='11.70', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='8.25e-05', EG='0.61', time_epoch_completed='1630930599.08', return_code='0', job_id='907110', GAL2='1.24', EG2='0.61', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='8.31e-09', ts2='14.40', photon_index='1.81' WHERE bin_id='117' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:16:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 907110: <4FGL_J1248.3+5820_daily_bin117> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin117> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:01:02 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:01:04 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:01:04 2021
Terminated at Mon Sep  6 05:16:39 2021
Results reported at Mon Sep  6 05:16:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin117 192.084 58.3432 269654401 269913601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.3+5820 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   916.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             303.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

