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


Performing analysis on: 4FGL_J0749.3+4453_daily_bin628
RA = 117.348, Dec = 44.8918
tmin = 402105601, tmax = 402364801
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='923560', job_status='RUN', time_executed='2021-08-28 15:11:07.968984', time_epoch_executed='1630188667.97' WHERE source_name='4FGL J0749.3+4453' and cadence='daily' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/923560

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/923560/ft1_4FGL_J0749.3+4453_daily_bin628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/923560/ft1_4FGL_J0749.3+4453_daily_bin628.fits outfile=/scratch/kocevski/923560/ft1_filteredMKT_4FGL_J0749.3+4453_daily_bin628.fits ra=117.348 dec=44.8918 rad=12.0 tmin=402105601.0 tmax=402364801.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.78
user 3.23
sys 0.52

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.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/923560/ft1_filteredMKT_4FGL_J0749.3+4453_daily_bin628.fits evtable="EVENTS" outfile="/scratch/kocevski/923560/ft1_filtered_4FGL_J0749.3+4453_daily_bin628.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.79
user 0.35
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/923560/ft1_filtered_4FGL_J0749.3+4453_daily_bin628.fits" evtable="EVENTS" scfile=/scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits sctable="SC_DATA" outfile=/scratch/kocevski/923560/ltcube_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.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/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits
.....................!
real 12.79
user 12.02
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/923560/ft1_filtered_4FGL_J0749.3+4453_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/923560/ltcube_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.fits outfile=/scratch/kocevski/923560/expmap_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.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/923560/ltcube_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.fits
.....................!
real 192.28
user 184.89
sys 6.17

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

Setting source of interest to:
4FGL J0749.3+4453 @ 117.348 44.8918

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/923560/ft1_filtered_4FGL_J0749.3+4453_daily_bin628.fits scfile=/scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits outfile=/scratch/kocevski/923560/cmap_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.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.348 yref=44.8918 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.82
user 0.38
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/923560/ft1_filtered_4FGL_J0749.3+4453_daily_bin628.fits scfile=/scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits outfile=/scratch/kocevski/923560/cmap_HighResolution_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.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.348 yref=44.8918 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.82
user 0.39
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/923560/ft1_filtered_4FGL_J0749.3+4453_daily_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/923560/Model_4FGL_J0749.3+4453_daily_bin628.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/923560/ft1_filtered_4FGL_J0749.3+4453_daily_bin628.fits.....................!
real 66.66
user 64.59
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/923560/ft1_filtered_4FGL_J0749.3+4453_daily_bin628.fits', '/scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits', expMap='/scratch/kocevski/923560/expmap_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.fits', expCube='/scratch/kocevski/923560/ltcube_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/923560/Model_4FGL_J0749.3+4453_daily_bin628.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0749.3+4453'

4FGL J0749.3+4453
   Spectrum: PowerLaw
283    Prefactor:  4.702e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.263e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  1.134e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/923560/ft1_filtered_4FGL_J0749.3+4453_daily_bin628.fits
Spacecraft file(s): /scratch/kocevski/923560/ft2_4FGL_J0749.3+4453_daily_bin628.fits
Exposure map: /scratch/kocevski/923560/expmap_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.fits
Exposure cube: /scratch/kocevski/923560/ltcube_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/923560/Model_4FGL_J0749.3+4453_daily_bin628.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) = 6880.37483137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2861       1.0000         .10000E-03   10000.    
     2 'norm      '    .16484E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4721       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2469       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.033       1.0000         .10000E-03   10000.    
    10 'norm      '    .76822       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.511       1.0000         .10000E-03   10000.    
    14 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4175       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .92000       1.0000         .10000E-03   10000.    
    20 'norm      '    .59360       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5963       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3575       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.472       1.0000         .10000E-03   10000.    
    25 'norm      '    5.8051       1.0000         .10000E-03   10000.    
    26 'norm      '    22.976       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .37155       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3320       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6880.354     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3036 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2861        3.0081        .43569E-07    .22130E-04
   2  norm          .10001E-03    1.5195        .66549E-06** at limit **
   3  Prefactor     .10000E-03    64.689       -.44151E-06** at limit **
   4  norm          .10000E-03    1.1017       -.10938E-07** at limit **
   5  Prefactor     2.4722        2.9328        .11233E-07   -.39826E-04
   6  Prefactor     7.2483        14.596       -.84597E-07   -.26680E-05
   7  norm          .10000E-03    4.2694       -.17049E-07** at limit **
   8  Prefactor     .10000E-03    11.477        .35014E-06** at limit **
   9  Prefactor     39.993        29.962        .16662E-05   -.31902E-04
  10  norm          .76851        .82366       -.64980E-07   -.66120E-03
  11  Prefactor     2.3710        13.390        .10151E-04   -.47447E-04
  12  Prefactor     .10000E-03    6.0071        .18680E-08** at limit **
  13  norm          17.509        12.595        .21998E-06    .92337E-05
  14  norm          .10000E-03    .87606       -.36971E-07** at limit **
  15  Prefactor     .10000E-03    3.7578        .54691E-07** at limit **
  16  Prefactor     .10000E-03    42.934        .72596E-06** at limit **
  17  Prefactor     7.4176        4.8197        .16227E-07    .32192E-06
  18  norm          .10000E-03    1.2987       -.83200E-09** at limit **
  19  norm          .91957        1.6135        .12385E-06    .21494E-03
  20  norm          .59350        .49208        .59285E-09    .13961E-03
  21  Prefactor     3.5960        7.3339        .31586E-05    .83137E-04
  22  Prefactor     3.3571        2.7139       -.10621E-06    .27594E-04
  23  Prefactor     .10000E-03    7.6748       -.66521E-08** at limit **
  24  Prefactor     18.469        13.300        .23140E-06    .20830E-05
  25  norm          5.8046        5.4967        .84771E-07    .17388E-04
  26  norm          22.975        12.023        .16281E-06    .15442E-04
  27  Normalizat    .37174        .21235       -.41284E-05   -.90666E-04
  28  Prefactor     1.3319        .14201        .63126E-06    .59693E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.28609
  norm       = 0.00010001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.47224
  Prefactor  = 7.24826
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.9934
  norm       = 0.768512
  Prefactor  = 2.37102
  Prefactor  = 0.0001
  norm       = 17.5091
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.41763
  norm       = 0.0001
  norm       = 0.919572
  norm       = 0.593502
  Prefactor  = 3.59599
  Prefactor  = 3.35715
  Prefactor  = 0.0001
  Prefactor  = 18.4689
  norm       = 5.80464
  norm       = 22.9749
  Normalizat = 0.37174
  Prefactor  = 1.33189
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.354     FROM HESSE     STATUS=OK           535 CALLS     3571 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2861        3.0104        .13347E-03   -1.5345    
   2  norm          .10001E-03    16.138        .19469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    66.824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1051        .85000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4722        2.9215        .14931E-03   -1.5393    
   6  Prefactor     7.2483        14.564        .14900E-03   -1.5169    
   7  norm          .10000E-03    4.3211        .16732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.993        29.994        .63351E-04   -1.4442    
  10  norm          .76851        .78478        .74806E-03   -1.5533    
  11  Prefactor     2.3710        13.419        .13316E-02   -1.5400    
  12  Prefactor     .10000E-03    6.0150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.509        12.578        .95712E-04   -1.4871    
  14  norm          .10000E-03    .88094        .75812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7830        .15699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    43.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.4176        4.7814        .13674E-03   -1.5163    
  18  norm          .10000E-03    1.3027        .92283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .91957        1.3676        .13470E-02   -1.5516    
  20  norm          .59350        .46792        .50334E-03   -1.5554    
  21  Prefactor     3.5960        7.3108        .10654E-02   -1.5329    
  22  Prefactor     3.3571        2.6954        .11456E-03   -1.5341    
  23  Prefactor     .10000E-03    7.6792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.469        13.227        .93189E-04   -1.4848    
  25  norm          5.8046        5.4911        .16669E-03   -1.5226    
  26  norm          22.975        12.002        .83564E-04   -1.4749    
  27  Normalizat    .37174        .20905        .44059E-03   -1.1879    
  28  Prefactor     1.3319        .14265        .17348E-03   -.82364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61864e-10
Minuit parameter uncertainties:
  1  3.01058
  2  0.000822674
  3  0.000559862
  4  6.90607e-07
  5  2.92163
  6  14.5712
  7  2.38562e-06
  8  5.18097e-05
  9  30.0056
  10  0.784795
  11  11.2847
  12  6.21236e-07
  13  12.5797
  14  3.67259e-06
  15  5.85441e-06
  16  2.28455e-05
  17  4.78161
  18  2.81375e-07
  19  1.36764
  20  0.467925
  21  7.31258
  22  2.69548
  23  1.09033e-06
  24  13.2288
  25  5.4916
  26  12.0028
  27  0.209492
  28  0.142694
Done.

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

Extracting fit parameters...

4FGL J0749.3+4453
   Spectrum: PowerLaw
283    Prefactor:  1.000e-04  6.212e-07  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.263e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  1.134e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  1.332e+00  1.427e-01  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  3.717e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.348 44.892
Photon Flux Upper Limit: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/923560/likelihoodResults_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.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): 102
logL (Free Index) = 6880.35449261
delta logL = -0.000789918426563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6880.35370286
delta logL = -1.69078703038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2482       1.0000          .0000       10.000    
     3 'Normalizat'    .37187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3318       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6470E+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=   6880.354     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      239 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10157E-03    96.518        .18142E-02** at limit **
   2  Index         2.1726        5.5425        .50000        .16353E-04
   3  Normalizat    .37174        .17981E-01    .44059E-03   -.80249E-05
   4  Prefactor     1.3319        .12926E-01    .17348E-03   -.22020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101566
  Index      = 2.17259
  Normalizat = 0.371743
  Prefactor  = 1.33189
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.354     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10157E-03    393.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1726        8.9123        .50000       -.60102    
   3  Normalizat    .37174        .38718E-01    .17623E-04   -1.1879    
   4  Prefactor     1.3319        .27832E-01    .69390E-05   -.82364    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.63141e-08
Minuit parameter uncertainties:
  1  0.0499849
  2  1001.69
  3  0.0387211
  4  0.027832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/923560': 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): 102
logL (Free Index) = 6880.35370241
delta logL = 2.81356733467e-07

Extracting fit parameters...

4FGL J0749.3+4453
   Spectrum: PowerLaw
283    Prefactor:  1.016e-04  4.998e-02  1.000e-04  1.000e+04 ( 1.000e-13)
284        Index:  2.173e+00  1.002e+03  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  1.134e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
644    Prefactor:  1.332e+00  2.783e-02  0.000e+00  1.000e+01 ( 1.000e+00)
645        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
646        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
643   Normalization:  3.717e-01  3.872e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.348 44.892

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/923560/cmap_HighResolution_402105601_402364801_4FGL_J0749.3+4453_daily_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-08-28 15:25:47.607878', job_id='923560', GAL2='1.33', fit_tolerance='1e-08', EG2='0.37', EG='0.37', time_epoch_completed='1630189547.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='2.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='628' AND source_name='4FGL J0749.3+4453' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:25:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 923560: <4FGL_J0749.3+4453_daily_bin628> in cluster <slac> Done

Job <4FGL_J0749.3+4453_daily_bin628> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 15:10:45 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:10:46 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:10:46 2021
Terminated at Sat Aug 28 15:25:48 2021
Results reported at Sat Aug 28 15:25:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.3+4453_daily_bin628 117.348 44.8918 402105601 402364801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0749.3+4453 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   876.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

