/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 6 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 = 7392
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0749.9+1823_daily_bin44
RA = 117.485, Dec = 18.387
tmin = 250732801, tmax = 250992001
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='929538', job_status='RUN', time_executed='2021-08-28 15:30:55.529457', time_epoch_executed='1630189855.53' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='44'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929538/ft1_4FGL_J0749.9+1823_daily_bin44.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929538/ft1_4FGL_J0749.9+1823_daily_bin44.fits outfile=/scratch/kocevski/929538/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin44.fits ra=117.485 dec=18.387 rad=12.0 tmin=250732801.0 tmax=250992001.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 2.37
user 1.26
sys 1.06

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.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/929538/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin44.fits evtable="EVENTS" outfile="/scratch/kocevski/929538/ft1_filtered_4FGL_J0749.9+1823_daily_bin44.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 1.37
user 0.33
sys 1.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929538/ft1_filtered_4FGL_J0749.9+1823_daily_bin44.fits" evtable="EVENTS" scfile=/scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits sctable="SC_DATA" outfile=/scratch/kocevski/929538/ltcube_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.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/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits
.....................!
real 13.89
user 12.51
sys 1.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929538/ft1_filtered_4FGL_J0749.9+1823_daily_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits sctable="SC_DATA" expcube=/scratch/kocevski/929538/ltcube_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.fits outfile=/scratch/kocevski/929538/expmap_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.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/929538/ltcube_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.fits
.....................!
real 192.98
user 185.54
sys 6.27

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
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 162 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0749.9+1823 @ 117.485 18.387

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/929538/ft1_filtered_4FGL_J0749.9+1823_daily_bin44.fits scfile=/scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits outfile=/scratch/kocevski/929538/cmap_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.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=117.485 yref=18.387 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.42
user 0.37
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929538/ft1_filtered_4FGL_J0749.9+1823_daily_bin44.fits scfile=/scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits outfile=/scratch/kocevski/929538/cmap_HighResolution_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.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=117.485 yref=18.387 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.39
user 0.38
sys 0.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929538/ft1_filtered_4FGL_J0749.9+1823_daily_bin44.fits evtable="EVENTS" scfile=/scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929538/Model_4FGL_J0749.9+1823_daily_bin44.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
adding source Monoceros
Working on...
/scratch/kocevski/929538/ft1_filtered_4FGL_J0749.9+1823_daily_bin44.fits.....................!
real 89.33
user 86.63
sys 2.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929538/ft1_filtered_4FGL_J0749.9+1823_daily_bin44.fits', '/scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits', expMap='/scratch/kocevski/929538/expmap_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.fits', expCube='/scratch/kocevski/929538/ltcube_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929538/Model_4FGL_J0749.9+1823_daily_bin44.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0749.9+1823'

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  7.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/929538/ft1_filtered_4FGL_J0749.9+1823_daily_bin44.fits
Spacecraft file(s): /scratch/kocevski/929538/ft2_4FGL_J0749.9+1823_daily_bin44.fits
Exposure map: /scratch/kocevski/929538/expmap_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.fits
Exposure cube: /scratch/kocevski/929538/ltcube_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929538/Model_4FGL_J0749.9+1823_daily_bin44.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7868.9558947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.176       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27783E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    61.351       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7448       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9467       1.0000         .10000E-03   10000.    
     7 'norm      '    13.568       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.696       1.0000         .10000E-03   10000.    
    10 'Prefactor '    88.545       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.463       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    105.64       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.852       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .29312       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1497       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7868.804     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     3030 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.175        26.806       -.75541E-08    .15071E-04
   2  Prefactor     .10035E-03    9.0807       -.21573E-05** at limit **
   3  norm          61.350        17.108        .93269E-07    .24684E-03
   4  norm          .10000E-03    .40603       -.10903E-06** at limit **
   5  norm          1.7465        3.0930        .11802E-05    .93265E-03
   6  Prefactor     3.9131        20.739       -.25248E-05    .19050E-03
   7  norm          13.568        6.8961        .23627E-06    .74339E-04
   8  Prefactor     .10000E-03    107.55       -.10533E-05** at limit **
   9  Prefactor     38.695        25.818        .45074E-07    .65747E-05
  10  Prefactor     88.627        60.520        .91800E-06    .79774E-04
  11  Prefactor     .10000E-03    1.2825        .10959E-06** at limit **
  12  Prefactor     .10000E-03    15.835       -.36189E-07** at limit **
  13  norm          .10000E-03    13.427       -.60324E-07** at limit **
  14  Prefactor     36.466        14.151        .14010E-06   -.22235E-04
  15  Prefactor     .10000E-03    51.888        .32960E-06** at limit **
  16  norm          105.63        105.46       -.85466E-08   -.41073E-05
  17  Prefactor     .10000E-03    43.826       -.15668E-05** at limit **
  18  Prefactor     .10000E-03    13.264       -.49479E-07** at limit **
  19  Prefactor     16.851        11.936        .15438E-06    .33971E-05
  20  Prefactor     .10000E-03    13.882       -.55080E-06** at limit **
  21  norm          .29325        .82544        .72883E-06    .74442E-03
  22  Prefactor     .10000E-03    3.5091       -.13856E-06** at limit **
  23  Prefactor     .10000E-03    2.2111       -.50632E-07** at limit **
  24  Normalizat    1.1496        .21852       -.34385E-05    .10887E-03
  25  Prefactor     1.0205        .14492        .18771E-05    .12403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1747
  Prefactor  = 0.000100355
  norm       = 61.3498
  norm       = 0.0001
  norm       = 1.74646
  Prefactor  = 3.91314
  norm       = 13.5681
  Prefactor  = 0.0001
  Prefactor  = 38.6951
  Prefactor  = 88.6275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.4662
  Prefactor  = 0.0001
  norm       = 105.627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.851
  Prefactor  = 0.0001
  norm       = 0.293254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14965
  Prefactor  = 1.02047
 **********
 **   18 **HESSE 
 **********

 FCN=   7868.804     FROM HESSE     STATUS=OK           425 CALLS     3455 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.175        26.816        .96641E-04   -1.4879    
   2  Prefactor     .10035E-03    51.507        .43535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          61.350        17.062        .51227E-04   -1.4140    
   4  norm          .10000E-03    .41844        .11023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7465        3.3132        .10620E-03   -1.5444    
   6  Prefactor     3.9131        23.895        .20305E-03   -1.5312    
   7  norm          13.568        6.9003        .10874E-03   -1.4971    
   8  Prefactor     .10000E-03    108.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.695        25.821        .64432E-04   -1.4463    
  10  Prefactor     88.627        60.713        .21349E-03   -1.3822    
  11  Prefactor     .10000E-03    1.3005        .98089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.466        14.148        .66369E-04   -1.4499    
  15  Prefactor     .10000E-03    51.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          105.63        105.50        .39125E-04   -1.3649    
  17  Prefactor     .10000E-03    45.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.851        11.938        .97564E-04   -1.4887    
  20  Prefactor     .10000E-03    13.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .29325        .83136        .13291E-03   -1.5600    
  22  Prefactor     .10000E-03    3.5436        .16228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.2165        .12881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1496        .24009        .30821E-03   -.88173    
  25  Prefactor     1.0205        .15999        .22532E-03   -.92050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9931e-09
Minuit parameter uncertainties:
  1  26.8348
  2  0.00855776
  3  17.063
  4  9.64605e-07
  5  3.31358
  6  19.351
  7  6.90068
  8  0.000248766
  9  25.8287
  10  60.7558
  11  5.50465e-06
  12  7.32176e-06
  13  1.15944e-05
  14  14.1496
  15  0.000200578
  16  105.684
  17  0.000285396
  18  1.18865e-05
  19  11.9397
  20  8.86582e-05
  21  0.831396
  22  6.18303e-06
  23  8.53684e-07
  24  0.24032
  25  0.160061
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  8.863e+01  6.076e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.020e+00  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.150e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.19
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 9.31e-08 +/- 6.37e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.81e-05

TS (Fixed Index): 3.19
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 2.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929538/likelihoodResults_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.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) = 7868.6876119
delta logL = 0.116778845413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7868.6748974
delta logL = 0.129493341582

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7868.675     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      304 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.862        90.190        .51885E-04    .21911E-06
   2  Index         2.8875        .97883        .57147E-02    .55599E-03
   3  Normalizat    1.1278        .23316        .31076E-03   -.93910E-04
   4  Prefactor     1.0329        .15892        .22418E-03    .13575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.8624
  Index      = 2.88752
  Normalizat = 1.12777
  Prefactor  = 1.03287
 **********
 **   18 **HESSE 
 **********

 FCN=   7868.675     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.862        75.089        .20754E-05   -1.4159    
   2  Index         2.8875        .81548        .11429E-02   -.43620    
   3  Normalizat    1.1278        .23300        .12430E-04   -.88865    
   4  Prefactor     1.0329        .15853        .89673E-05   -.91642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12458e-10
Minuit parameter uncertainties:
  1  75.2085
  2  0.819949
  3  0.233217
  4  0.158599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929538': 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) = 7868.67489535
delta logL = 0.129495387472

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  5.986e+01  7.521e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.888e+00  8.199e-01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.033e+00  1.586e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  1.128e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 117.485 18.387
Photon Index (Free Index): 2.89 +/- 0.82
Photon Flux (Free Index): 1.06e-07 +/- 6.64e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/929538/cmap_HighResolution_250732801_250992001_4FGL_J0749.9+1823_daily_bin44.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', comment='SUCCESS', photon_flux='9.31e-08', energy_flux2='2.24e-05', photon_flux_error='6.37e-08', dlogl='1.29e-01', energy_flux='2.64e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-08-28 15:44:45.987181', photon_index_error2='0.82', photon_index2='2.89', ts='3.19', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='1.60e-05', EG='1.15', time_epoch_completed='1630190685.99', return_code='0', job_id='929538', GAL2='1.03', EG2='1.13', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='6.64e-08', ts2='3.50', photon_index='2.52' WHERE bin_id='44' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:44:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 929538: <4FGL_J0749.9+1823_daily_bin44> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin44> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 15:30:22 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:30:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 15:30:23 2021
Terminated at Sat Aug 28 15:44:46 2021
Results reported at Sat Aug 28 15:44:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin44 117.485 18.387 250732801 250992001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0749.9+1823 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   839.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            864 sec.

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

