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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin561
RA = 117.485, Dec = 18.387
tmin = 384739201, tmax = 384998401
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='933064', job_status='RUN', time_executed='2021-08-28 15:44:04.736960', time_epoch_executed='1630190644.74' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933064/ft1_4FGL_J0749.9+1823_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933064/ft2_4FGL_J0749.9+1823_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933064/ft1_4FGL_J0749.9+1823_daily_bin561.fits outfile=/scratch/kocevski/933064/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin561.fits ra=117.485 dec=18.387 rad=12.0 tmin=384739201.0 tmax=384998401.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.57
user 4.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933064/ft2_4FGL_J0749.9+1823_daily_bin561.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/933064/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin561.fits evtable="EVENTS" outfile="/scratch/kocevski/933064/ft1_filtered_4FGL_J0749.9+1823_daily_bin561.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933064/ft1_filtered_4FGL_J0749.9+1823_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/933064/ft2_4FGL_J0749.9+1823_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/933064/ltcube_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.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/933064/ft2_4FGL_J0749.9+1823_daily_bin561.fits
.....................!
real 11.55
user 11.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933064/ft1_filtered_4FGL_J0749.9+1823_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/933064/ft2_4FGL_J0749.9+1823_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/933064/ltcube_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.fits outfile=/scratch/kocevski/933064/expmap_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.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/933064/ltcube_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.fits
.....................!
real 193.14
user 187.15
sys 5.55

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/933064/ft1_filtered_4FGL_J0749.9+1823_daily_bin561.fits scfile=/scratch/kocevski/933064/ft2_4FGL_J0749.9+1823_daily_bin561.fits outfile=/scratch/kocevski/933064/cmap_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933064/ft1_filtered_4FGL_J0749.9+1823_daily_bin561.fits scfile=/scratch/kocevski/933064/ft2_4FGL_J0749.9+1823_daily_bin561.fits outfile=/scratch/kocevski/933064/cmap_HighResolution_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.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 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933064/ft1_filtered_4FGL_J0749.9+1823_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/933064/ft2_4FGL_J0749.9+1823_daily_bin561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933064/Model_4FGL_J0749.9+1823_daily_bin561.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/933064/ft1_filtered_4FGL_J0749.9+1823_daily_bin561.fits.....................!
real 72.26
user 70.97
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933064/ft1_filtered_4FGL_J0749.9+1823_daily_bin561.fits', '/scratch/kocevski/933064/ft2_4FGL_J0749.9+1823_daily_bin561.fits', expMap='/scratch/kocevski/933064/expmap_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.fits', expCube='/scratch/kocevski/933064/ltcube_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933064/Model_4FGL_J0749.9+1823_daily_bin561.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/933064/ft1_filtered_4FGL_J0749.9+1823_daily_bin561.fits
Spacecraft file(s): /scratch/kocevski/933064/ft2_4FGL_J0749.9+1823_daily_bin561.fits
Exposure map: /scratch/kocevski/933064/expmap_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.fits
Exposure cube: /scratch/kocevski/933064/ltcube_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933064/Model_4FGL_J0749.9+1823_daily_bin561.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) = 6372.55761837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.479       1.0000         .10000E-03   10000.    
     3 'norm      '    28.674       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .53808E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.254       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3556       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    55.156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11307E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8800       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .78482       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.274       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .48265       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3251       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=   6372.550     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2861 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.577       -.10796E-06** at limit **
   2  Prefactor     38.478        13.655        .11234E-06   -.10962E-04
   3  norm          28.672        14.085        .13312E-06    .15477E-05
   4  norm          .10000E-03    .41059       -.23276E-08** at limit **
   5  norm          1.4427        1.1124        .34683E-08    .62520E-04
   6  Prefactor     .10000E-03    3.9452       -.20857E-06** at limit **
   7  norm          .10002E-03    2.3240        .14340E-05** at limit **
   8  Prefactor     30.301        32.451       -.26469E-05   -.13129E-03
   9  Prefactor     .10000E-03    12.251        .71354E-07** at limit **
  10  Prefactor     41.036        45.119        .36584E-06   -.50013E-04
  11  Prefactor     .10000E-03    1.0106       -.25806E-07** at limit **
  12  Prefactor     .10000E-03    40.113        .28405E-05** at limit **
  13  norm          .10000E-03    7.0341        .12923E-07** at limit **
  14  Prefactor     6.3552        7.3499        .12484E-06    .26613E-05
  15  Prefactor     .10000E-03    34.544       -.12571E-06** at limit **
  16  norm          .10000E-03    60.933       -.14836E-06** at limit **
  17  Prefactor     55.150        40.661        .12075E-06   -.56600E-04
  18  Prefactor     .10000E-03    37.277       -.16218E-07** at limit **
  19  Prefactor     7.8794        9.4007        .12677E-06   -.35737E-05
  20  Prefactor     .10000E-03    9.7914        .75809E-07** at limit **
  21  norm          .78573        1.2742        .25832E-06    .29622E-03
  22  Prefactor     .10000E-03    9.0136       -.29232E-06** at limit **
  23  Prefactor     12.274        11.490        .11393E-05   -.62553E-04
  24  Normalizat    .48277        .21873       -.32467E-05   -.20396E-03
  25  Prefactor     1.3251        .15274        .19100E-06   -.36676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 38.478
  norm       = 28.6715
  norm       = 0.0001
  norm       = 1.44271
  Prefactor  = 0.0001
  norm       = 0.000100016
  Prefactor  = 30.3007
  Prefactor  = 0.0001
  Prefactor  = 41.0362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.35518
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 55.1501
  Prefactor  = 0.0001
  Prefactor  = 7.8794
  Prefactor  = 0.0001
  norm       = 0.785734
  Prefactor  = 0.0001
  Prefactor  = 12.2737
  Normalizat = 0.482771
  Prefactor  = 1.32513
 **********
 **   18 **HESSE 
 **********

 FCN=   6372.550     FROM HESSE     STATUS=OK           421 CALLS     3282 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.478        13.659        .32307E-03   -1.4467    
   3  norm          28.672        14.106        .74817E-04   -1.4637    
   4  norm          .10000E-03    .42117        .99844E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4427        1.1164        .71580E-04   -1.5468    
   6  Prefactor     .10000E-03    3.9617        .15454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10002E-03    8.1821        .20770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.301        32.430        .72842E-04   -1.4606    
   9  Prefactor     .10000E-03    12.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.036        45.003        .62562E-04   -1.4426    
  11  Prefactor     .10000E-03    1.0196        .78333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3552        7.3477        .15921E-03   -1.5204    
  15  Prefactor     .10000E-03    34.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    60.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     55.150        40.627        .54011E-04   -1.4221    
  18  Prefactor     .10000E-03    37.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8794        9.3998        .14284E-03   -1.5146    
  20  Prefactor     .10000E-03    9.7907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .78573        1.1685        .11062E-02   -1.5531    
  22  Prefactor     .10000E-03    9.1206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.274        11.412        .57169E-03   -1.5007    
  24  Normalizat    .48277        .23015        .40522E-03   -1.1322    
  25  Prefactor     1.3251        .16314        .18489E-03   -.82563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16745e-09
Minuit parameter uncertainties:
  1  3.45925e-05
  2  13.66
  3  14.1073
  4  1.76111e-06
  5  1.11646
  6  1.03349e-05
  7  0.000730123
  8  32.449
  9  6.77159e-06
  10  45.0405
  11  2.95922e-06
  12  0.000133875
  13  6.50629e-06
  14  7.34876
  15  6.02522e-05
  16  2.73908e-05
  17  40.6475
  18  8.25208e-05
  19  9.40152
  20  3.11406e-05
  21  1.16855
  22  1.88342e-05
  23  11.4135
  24  0.230604
  25  0.163199
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  4.104e+01  4.504e+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.325e+00  1.632e-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:  4.828e-01  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 4.73e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/933064/likelihoodResults_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.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) = 6372.50968509
delta logL = 0.0401554782511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6372.50842498
delta logL = 0.0414155944418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.385       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7902       1.0000          .0000       10.000    
     3 'Normalizat'    .47445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3298       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=   6372.508     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      277 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.309        58.108        .71521E-04   -.72166E-04
   2  Index         2.7915        1.1300        .86502E-02    .38372E-03
   3  Normalizat    .47464        .22540        .40859E-03   -.12524E-03
   4  Prefactor     1.3296        .16236        .18463E-03    .21475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3089
  Index      = 2.79147
  Normalizat = 0.474637
  Prefactor  = 1.32963
 **********
 **   18 **HESSE 
 **********

 FCN=   6372.508     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.309        51.354        .28609E-05   -1.4588    
   2  Index         2.7915        .99997        .17300E-02   -.45750    
   3  Normalizat    .47464        .22542        .16344E-04   -1.1361    
   4  Prefactor     1.3296        .16225        .36926E-04   -.82430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15162e-10
Minuit parameter uncertainties:
  1  51.4268
  2  1.00844
  3  0.225854
  4  0.162308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933064': 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) = 6372.5084234
delta logL = 0.0414171687125

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  3.131e+01  5.143e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.791e+00  1.008e+00  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.330e+00  1.623e-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:  4.746e-01  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 117.485 18.387
Photon Index (Free Index): 2.79 +/- 1.01
Photon Flux (Free Index): 4.81e-08 +/- 5.15e-08
Energy Flux (Free Index): 1.08e-05 +/- 1.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/933064/cmap_HighResolution_384739201_384998401_4FGL_J0749.9+1823_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='1.08e-05', photon_flux_error='4.73e-08', dlogl='4.14e-02', energy_flux='1.22e-05', photon_flux2='4.81e-08', job_status='DONE', time_completed='2021-08-28 15:55:41.809626', photon_index_error2='1.01', photon_index2='2.79', ts='1.15', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.25e-05', EG='0.48', time_epoch_completed='1630191341.81', return_code='0', job_id='933064', GAL2='1.33', EG2='0.47', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.15e-08', ts2='1.24', photon_index='2.52' WHERE bin_id='561' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:55:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 933064: <4FGL_J0749.9+1823_daily_bin561> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin561> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 15:40:42 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:40:43 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:40:43 2021
Terminated at Sat Aug 28 15:55:42 2021
Results reported at Sat Aug 28 15:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin561 117.485 18.387 384739201 384998401 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 :                                   695.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             238.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            900 sec.

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

