/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 120 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 = 7450
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0749.9+1823_daily_bin345
RA = 117.485, Dec = 18.387
tmin = 328752001, tmax = 329011201
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='931355', job_status='RUN', time_executed='2021-08-28 15:37:51.724898', time_epoch_executed='1630190271.72' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931355/ft1_4FGL_J0749.9+1823_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931355/ft2_4FGL_J0749.9+1823_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931355/ft1_4FGL_J0749.9+1823_daily_bin345.fits outfile=/scratch/kocevski/931355/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin345.fits ra=117.485 dec=18.387 rad=12.0 tmin=328752001.0 tmax=329011201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.48
user 3.20
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931355/ft2_4FGL_J0749.9+1823_daily_bin345.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/931355/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin345.fits evtable="EVENTS" outfile="/scratch/kocevski/931355/ft1_filtered_4FGL_J0749.9+1823_daily_bin345.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931355/ft1_filtered_4FGL_J0749.9+1823_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/931355/ft2_4FGL_J0749.9+1823_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/931355/ltcube_328752001_329011201_4FGL_J0749.9+1823_daily_bin345.fits outfile=/scratch/kocevski/931355/expmap_328752001_329011201_4FGL_J0749.9+1823_daily_bin345.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/931355/ltcube_328752001_329011201_4FGL_J0749.9+1823_daily_bin345.fits
.....................!
real 191.20
user 185.19
sys 5.38

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/931355/ft1_filtered_4FGL_J0749.9+1823_daily_bin345.fits scfile=/scratch/kocevski/931355/ft2_4FGL_J0749.9+1823_daily_bin345.fits outfile=/scratch/kocevski/931355/cmap_328752001_329011201_4FGL_J0749.9+1823_daily_bin345.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.67
user 0.36
sys 0.21

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.416       1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.513       1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10592E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.169       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7893       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    118.08       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.717       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4674       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.260       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1279       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3713       1.0000         .10000E-03   10000.    
    21 'norm      '    .10124E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.6929       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0726       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92585       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1638       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=   6636.332     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3006 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.418        39.091        .25615E-05    .24493E-04
   2  Prefactor     30.514        13.161       -.48639E-07    .12284E-03
   3  norm          .10000E-03    20.730       -.11571E-04** at limit **
   4  norm          .10000E-03    .67650       -.44501E-08** at limit **
   5  norm          .10001E-03    1.0257       -.42027E-06** at limit **
   6  Prefactor     20.157        12.630        .22339E-05    .54280E-03
   7  norm          .10000E-03    1.4732       -.20747E-06** at limit **
   8  Prefactor     2.7670        29.290       -.15735E-05   -.85796E-04
   9  Prefactor     .10000E-03    6.2151        .40205E-06** at limit **
  10  Prefactor     118.07        59.798       -.71194E-05    .72320E-04
  11  Prefactor     .10000E-03    1.9341       -.95507E-07** at limit **
  12  Prefactor     47.729        35.692        .10489E-04    .11961E-04
  13  norm          8.4680        16.965        .18662E-06   -.25828E-04
  14  Prefactor     42.258        18.367       -.14759E-06   -.11938E-05
  15  Prefactor     .10000E-03    75.557       -.20385E-05** at limit **
  16  norm          .10000E-03    31.709        .18206E-05** at limit **
  17  Prefactor     4.1238        39.474       -.55526E-05   -.28770E-04
  18  Prefactor     .10000E-03    12.780        .32679E-06** at limit **
  19  Prefactor     .10000E-03    19.536        .73899E-05** at limit **
  20  Prefactor     5.3702        18.407       -.79300E-06   -.64952E-04
  21  norm          .10000E-03    .75161        .75222E-07** at limit **
  22  Prefactor     7.6915        11.062       -.48403E-06   -.99197E-04
  23  Prefactor     7.0714        11.211       -.60655E-06   -.95350E-04
  24  Normalizat    .92598        .21562       -.42911E-06    .13922E-03
  25  Prefactor     1.1637        .14351        .61961E-06    .24452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4182
  Prefactor  = 30.5136
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 20.1567
  norm       = 0.0001
  Prefactor  = 2.76702
  Prefactor  = 0.0001
  Prefactor  = 118.069
  Prefactor  = 0.0001
  Prefactor  = 47.7291
  norm       = 8.46797
  Prefactor  = 42.2578
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.12383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.37019
  norm       = 0.0001
  Prefactor  = 7.69147
  Prefactor  = 7.07136
  Normalizat = 0.92598
  Prefactor  = 1.1637
 **********
 **   18 **HESSE 
 **********

 FCN=   6636.332     FROM HESSE     STATUS=OK           425 CALLS     3431 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.418        39.104        .10935E-03   -1.4975    
   2  Prefactor     30.514        13.160        .72534E-04   -1.4603    
   3  norm          .10000E-03    21.186        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .70778        .13061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    8.2633        .13975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.157        11.318        .89185E-04   -1.4810    
   7  norm          .10000E-03    1.4945        .96547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7670        29.252        .24362E-03   -1.5375    
   9  Prefactor     .10000E-03    6.2246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     118.07        60.049        .37030E-04   -1.3530    
  11  Prefactor     .10000E-03    1.9792        .22096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.729        35.592        .58048E-04   -1.4325    
  13  norm          8.4680        16.944        .13776E-03   -1.5126    
  14  Prefactor     42.258        18.375        .61666E-04   -1.4407    
  15  Prefactor     .10000E-03    75.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    31.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1238        39.645        .19840E-03   -1.5302    
  18  Prefactor     .10000E-03    12.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3702        17.718        .17340E-03   -1.5244    
  21  norm          .10000E-03    1.5463        .13024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.6915        11.008        .14458E-03   -1.5153    
  23  Prefactor     7.0714        11.239        .15084E-03   -1.5176    
  24  Normalizat    .92598        .24628        .32030E-03   -.95553    
  25  Prefactor     1.1637        .16369        .20526E-03   -.87456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37466e-09
Minuit parameter uncertainties:
  1  39.1791
  2  13.1617
  3  0.00013263
  4  2.16965e-06
  5  0.000489196
  6  11.3193
  7  1.73602e-05
  8  18.0045
  9  1.00859e-05
  10  60.0796
  11  3.07975e-06
  12  35.608
  13  16.9534
  14  18.3777
  15  1.2316e-05
  16  4.95273e-06
  17  25.5946
  18  1.22766e-05
  19  6.78376e-05
  20  17.7353
  21  1.1881e-05
  22  11.0104
  23  11.2422
  24  0.246585
  25  0.163757
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.181e+02  6.008e+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.164e+00  1.638e-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:  9.260e-01  2.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.56
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 6.30e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 1.79e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6634.74119901
delta logL = 1.59070026451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6634.70789321
delta logL = 1.62400606719

Fit tolerance = 1e-08

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

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

 FCN=   6634.708     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      251 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.180        152.22        .19573E-02    .73332E-03
   2  Index         3.7750        2.6119        .85212E-01    .16599E-03
   3  Normalizat    .83122        .99384E-01    .75841E-01    .76804E-04
   4  Prefactor     1.2146        .67368E-01    .34296E-01    .20122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1798
  Index      = 3.77499
  Normalizat = 0.831223
  Prefactor  = 1.21455
 **********
 **   18 **HESSE 
 **********

 FCN=   6634.708     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.180        143.00        .78294E-04   -1.4684    
   2  Index         3.7750        2.6906        .35451E-02   -.24752    
   3  Normalizat    .83122        .24369        .33567E-03   -.98921    
   4  Prefactor     1.2146        .17317        .20154E-03   -.85885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36302e-08
Minuit parameter uncertainties:
  1  122.829
  2  2.85242
  3  0.244011
  4  0.173254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931355': 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) = 6634.70789319
delta logL = 1.62400609289

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  2.618e+01  1.228e+02  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  3.775e+00  2.852e+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.215e+00  1.733e-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:  8.312e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.42
Ra Dec: 117.485 18.387
Photon Index (Free Index): 3.77 +/- 2.85
Photon Flux (Free Index): 1.88e-07 +/- 7.57e-08
Energy Flux (Free Index): 2.93e-05 +/- 1.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/931355/cmap_HighResolution_328752001_329011201_4FGL_J0749.9+1823_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='2.93e-05', photon_flux_error='6.30e-08', dlogl='1.62e+00', energy_flux='3.51e-05', photon_flux2='1.88e-07', job_status='DONE', time_completed='2021-08-28 15:49:02.643390', photon_index_error2='2.85', photon_index2='3.77', ts='6.56', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='0.93', time_epoch_completed='1630190942.64', return_code='0', job_id='931355', GAL2='1.21', EG2='0.83', return_code2='0', energy_flux_error='1.79e-05', photon_flux_error2='7.57e-08', ts2='10.42', photon_index='2.52' WHERE bin_id='345' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:49:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 931355: <4FGL_J0749.9+1823_daily_bin345> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin345> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 15:35:39 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:35:40 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:35:40 2021
Terminated at Sat Aug 28 15:49:03 2021
Results reported at Sat Aug 28 15:49:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin345 117.485 18.387 328752001 329011201 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 :                                   661.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

