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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin748
RA = 192.244, Dec = 48.67
tmin = 433209601, tmax = 433468801
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='920735', job_status='RUN', time_executed='2021-09-06 05:48:26.475885', time_epoch_executed='1630932506.48' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920735

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920735/ft1_4FGL_J1248.9+4840_daily_bin748.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920735/ft2_4FGL_J1248.9+4840_daily_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/920735/ft1_4FGL_J1248.9+4840_daily_bin748.fits outfile=/scratch/kocevski/920735/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin748.fits ra=192.244 dec=48.67 rad=12.0 tmin=433209601.0 tmax=433468801.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.97
user 5.73
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/920735/ft2_4FGL_J1248.9+4840_daily_bin748.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/920735/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/920735/ft1_filtered_4FGL_J1248.9+4840_daily_bin748.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.52
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920735/ft1_filtered_4FGL_J1248.9+4840_daily_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/920735/ft2_4FGL_J1248.9+4840_daily_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/920735/ltcube_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.fits outfile=/scratch/kocevski/920735/expmap_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.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/920735/ltcube_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.fits
.....................!
real 191.15
user 185.90
sys 3.89

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/920735/ft1_filtered_4FGL_J1248.9+4840_daily_bin748.fits scfile=/scratch/kocevski/920735/ft2_4FGL_J1248.9+4840_daily_bin748.fits outfile=/scratch/kocevski/920735/cmap_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920735/ft1_filtered_4FGL_J1248.9+4840_daily_bin748.fits scfile=/scratch/kocevski/920735/ft2_4FGL_J1248.9+4840_daily_bin748.fits outfile=/scratch/kocevski/920735/cmap_HighResolution_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/920735/ft1_filtered_4FGL_J1248.9+4840_daily_bin748.fits', '/scratch/kocevski/920735/ft2_4FGL_J1248.9+4840_daily_bin748.fits', expMap='/scratch/kocevski/920735/expmap_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.fits', expCube='/scratch/kocevski/920735/ltcube_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/920735/Model_4FGL_J1248.9+4840_daily_bin748.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/920735/ft1_filtered_4FGL_J1248.9+4840_daily_bin748.fits
Spacecraft file(s): /scratch/kocevski/920735/ft2_4FGL_J1248.9+4840_daily_bin748.fits
Exposure map: /scratch/kocevski/920735/expmap_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.fits
Exposure cube: /scratch/kocevski/920735/ltcube_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/920735/Model_4FGL_J1248.9+4840_daily_bin748.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) = 2921.92563151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4786       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1998       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5328       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.443       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.621       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9377       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.481       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6296       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11079E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.942       1.0000         .10000E-03   10000.    
    20 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    112.82       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6650       1.0000         .10000E-03   10000.    
    23 'norm      '    .11463E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97518       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76596       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=   2921.786     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2912 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4793        4.1577        .83176E-06   -.17678E-03
   2  Prefactor     .10000E-03    13.516        .19495E-06** at limit **
   3  norm          4.2003        2.4209        .41809E-06   -.17102E-03
   4  norm          4.5327        6.2647        .45795E-05   -.26921E-06
   5  Prefactor     38.455        38.552       -.81652E-05   -.43598E-04
   6  Prefactor     .10000E-03    3.3386        .12613E-06** at limit **
   7  norm          .10000E-03    .92788        .60361E-07** at limit **
   8  Prefactor     10.625        32.155       -.12957E-04   -.27040E-04
   9  Prefactor     .10000E-03    14.537        .32734E-06** at limit **
  10  norm          .10000E-03    1.1202        .13966E-07** at limit **
  11  Prefactor     .10000E-03    12.261        .99256E-07** at limit **
  12  Prefactor     45.051        90.832        .26549E-04   -.13498E-04
  13  Prefactor     1.9368        23.936       -.69594E-05   -.24725E-03
  14  Prefactor     .10000E-03    22.382       -.12706E-05** at limit **
  15  norm          17.476        21.043        .10355E-04   -.14595E-04
  16  norm          1.6308        6.2435       -.42531E-06   -.43514E-03
  17  Prefactor     .10000E-03    34.971       -.28685E-05** at limit **
  18  Prefactor     .10002E-03    28.243        .68302E-06** at limit **
  19  Prefactor     35.955        57.053       -.86836E-06   -.67855E-05
  20  norm          .10000E-03    7.6153       -.11587E-05** at limit **
  21  Prefactor     112.99        131.65        .12397E-03   -.39636E-05
  22  norm          2.6650        1.9897        .12967E-06   -.36943E-04
  23  norm          .10003E-03    713.73        .11637E-04** at limit **
  24  Normalizat    .97461        .22517       -.91327E-05    .25019E-03
  25  Prefactor     .76659        .25688        .32500E-06   -.17756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.47934
  Prefactor  = 0.0001
  norm       = 4.20033
  norm       = 4.53265
  Prefactor  = 38.4554
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.6251
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.0511
  Prefactor  = 1.93681
  Prefactor  = 0.0001
  norm       = 17.4759
  norm       = 1.63076
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 35.9552
  norm       = 0.000100004
  Prefactor  = 112.986
  norm       = 2.66501
  norm       = 0.00010003
  Normalizat = 0.974612
  Prefactor  = 0.766595
 **********
 **   18 **HESSE 
 **********

 FCN=   2921.786     FROM HESSE     STATUS=OK           423 CALLS     3335 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4793        4.1606        .90732E-04   -1.5240    
   2  Prefactor     .10000E-03    13.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2003        2.4243        .61054E-04   -1.5298    
   4  norm          4.5327        6.2526        .14964E-03   -1.5282    
   5  Prefactor     38.455        38.765        .64644E-04   -1.4467    
   6  Prefactor     .10000E-03    3.3653        .96395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .92999        .50811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.625        32.130        .12294E-03   -1.5056    
   9  Prefactor     .10000E-03    14.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1252        .55864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.051        91.071        .59752E-04   -1.4365    
  13  Prefactor     1.9368        23.958        .29828E-03   -1.5430    
  14  Prefactor     .10000E-03    22.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.476        21.034        .95794E-04   -1.4872    
  16  norm          1.6308        6.2078        .25030E-03   -1.5453    
  17  Prefactor     .10000E-03    34.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    28.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.955        56.967        .66848E-04   -1.4508    
  20  norm          .10000E-03    7.7383        .14561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     112.99        131.70        .18937E-03   -1.3578    
  22  norm          2.6650        1.9916        .63795E-04   -1.5381    
  23  norm          .10003E-03    713.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97461        .26844        .20972E-03   -.93886    
  25  Prefactor     .76659        .30310        .28648E-03   -1.0097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36555e-09
Minuit parameter uncertainties:
  1  4.16084
  2  7.41523e-05
  3  2.4244
  4  6.25354
  5  38.7907
  6  2.07037e-05
  7  6.44524e-06
  8  32.1823
  9  2.35343e-05
  10  2.98464e-06
  11  6.90325e-05
  12  91.3536
  13  13.6303
  14  6.57715e-05
  15  21.043
  16  6.21025
  17  4.10487e-05
  18  0.00139581
  19  57.053
  20  0.000344525
  21  132.047
  22  1.99164
  23  0.00931672
  24  0.268813
  25  0.303764
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.063e+01  3.218e+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:  7.666e-01  3.038e-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:  9.746e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/920735/likelihoodResults_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.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) = 2921.72123073
delta logL = 0.0645835699129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2921.66857563
delta logL = 0.117238671415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0052       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9127       1.0000          .0000       10.000    
     3 'Normalizat'    .94300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79436       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2921.669     FROM MIGRAD    STATUS=FAILED        82 CALLS      257 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0036        285.00        .12659E-03   -.48094E-02
   2  Index         3.9156        5.0518        .77286E-02   -.79174E-03
   3  Normalizat    .94286        .21047        .21273E-03   -.13571E-02
   4  Prefactor     .79468        .25338        .28186E-03   -.76982E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2921.669     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      343 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0036        285.00        .19593E-03   -.48094E-02
   2  Index         3.9156        5.0518        .17678E-02   -.79174E-03
   3  Normalizat    .94286        .21047        .30883E-03   -.13571E-02
   4  Prefactor     .79468        .25338        .38595E-03   -.76982E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2921.669     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      375 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0007        42.262        .50636E-05   -.16614E-04
   2  Index         3.9166        6.8432        .30914E-03   -.17100E-05
   3  Normalizat    .94286        .25912        .42547E-04    .97797E-04
   4  Prefactor     .79469        .31042        .56372E-04    .28617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.00067
  Index      = 3.91656
  Normalizat = 0.94286
  Prefactor  = 0.794694
 **********
 **   18 **HESSE 
 **********

 FCN=   2921.669     FROM HESSE     STATUS=OK            23 CALLS      398 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0007        34.368        .10127E-05   -1.5425    
   2  Index         3.9166        3.9550        .12366E-04   -.21842    
   3  Normalizat    .94286        .25867        .85094E-05   -.94970    
   4  Prefactor     .79469        .30972        .11274E-04   -.99924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78266e-11
Minuit parameter uncertainties:
  1  16.595
  2  4.61064
  3  0.259017
  4  0.310406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920735': 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) = 2921.66857073
delta logL = 0.117243575869

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.001e+00  1.659e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.917e+00  4.611e+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:  7.947e-01  3.104e-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:  9.429e-01  2.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/920735/cmap_HighResolution_433209601_433468801_4FGL_J1248.9+4840_daily_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-06 05:57:44.807228', job_id='920735', GAL2='0.79', fit_tolerance='1e-08', EG2='0.94', EG='0.97', time_epoch_completed='1630933064.81', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.17e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='748' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:57:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 920735: <4FGL_J1248.9+4840_daily_bin748> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin748> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:45:24 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:45:26 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:45:26 2021
Terminated at Mon Sep  6 05:57:45 2021
Results reported at Mon Sep  6 05:57:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin748 192.244 48.67 433209601 433468801 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 :                                   555.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

