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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin64
RA = 117.485, Dec = 18.387
tmin = 255916801, tmax = 256176001
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='929567', job_status='RUN', time_executed='2021-08-28 15:31:15.669843', time_epoch_executed='1630189875.67' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929567

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929567/ft1_4FGL_J0749.9+1823_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929567/ft2_4FGL_J0749.9+1823_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929567/ft1_4FGL_J0749.9+1823_daily_bin64.fits outfile=/scratch/kocevski/929567/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin64.fits ra=117.485 dec=18.387 rad=12.0 tmin=255916801.0 tmax=256176001.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.37
user 1.28
sys 2.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929567/ft1_filtered_4FGL_J0749.9+1823_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/929567/ft2_4FGL_J0749.9+1823_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/929567/ltcube_255916801_256176001_4FGL_J0749.9+1823_daily_bin64.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/929567/ft2_4FGL_J0749.9+1823_daily_bin64.fits
.....................!
real 15.02
user 12.57
sys 2.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929567/ft1_filtered_4FGL_J0749.9+1823_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/929567/ft2_4FGL_J0749.9+1823_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/929567/ltcube_255916801_256176001_4FGL_J0749.9+1823_daily_bin64.fits outfile=/scratch/kocevski/929567/expmap_255916801_256176001_4FGL_J0749.9+1823_daily_bin64.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/929567/ltcube_255916801_256176001_4FGL_J0749.9+1823_daily_bin64.fits
.....................!
real 192.98
user 185.28
sys 7.00

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/929567/ft1_filtered_4FGL_J0749.9+1823_daily_bin64.fits scfile=/scratch/kocevski/929567/ft2_4FGL_J0749.9+1823_daily_bin64.fits outfile=/scratch/kocevski/929567/cmap_255916801_256176001_4FGL_J0749.9+1823_daily_bin64.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 2.15
user 0.37
sys 1.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929567/ft1_filtered_4FGL_J0749.9+1823_daily_bin64.fits scfile=/scratch/kocevski/929567/ft2_4FGL_J0749.9+1823_daily_bin64.fits outfile=/scratch/kocevski/929567/cmap_HighResolution_255916801_256176001_4FGL_J0749.9+1823_daily_bin64.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 2.36
user 0.37
sys 1.98

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.104       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1227       1.0000         .10000E-03   10000.    
     3 'norm      '    20.667       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5831       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14873E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    76.498       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94473       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.7679       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.523       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9473       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8428       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.437       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3506       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0676       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0750       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=   9544.293     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2873 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.109        41.565        .28499E-05    .10216E-03
   2  Prefactor     8.1231        6.2252       -.28202E-06   -.14582E-03
   3  norm          20.668        11.413       -.69312E-07   -.17155E-04
   4  norm          1.5831        1.0585        .15001E-07   -.18933E-03
   5  norm          .10000E-03    .35661        .75421E-08** at limit **
   6  Prefactor     .10000E-03    5.0278        .56885E-08** at limit **
   7  norm          4.4246        3.9094        .12827E-06   -.19780E-03
   8  Prefactor     .10000E-03    60.159        .47801E-06** at limit **
   9  Prefactor     .10000E-03    29.372        .48655E-06** at limit **
  10  Prefactor     76.482        34.253       -.45558E-05   -.61255E-03
  11  Prefactor     .94620        1.9844        .25826E-06   -.38122E-03
  12  Prefactor     .10000E-03    13.005       -.32147E-07** at limit **
  13  norm          6.7679        9.3043        .24720E-06   -.22973E-03
  14  Prefactor     11.522        8.9699        .70543E-07   -.28437E-03
  15  Prefactor     .10000E-03    29.883       -.77587E-06** at limit **
  16  norm          .10000E-03    20.210        .32073E-07** at limit **
  17  Prefactor     9.9457        18.795       -.10108E-06   -.12149E-04
  18  Prefactor     .10000E-03    9.8352       -.23667E-07** at limit **
  19  Prefactor     3.8422        9.9429        .36055E-05   -.80084E-03
  20  Prefactor     17.439        23.950        .98781E-07    .19663E-04
  21  norm          1.3505        1.4767        .33373E-07   -.33281E-03
  22  Prefactor     .10000E-03    2.3634        .36530E-09** at limit **
  23  Prefactor     .10000E-03    2.3896        .43818E-08** at limit **
  24  Normalizat    1.0677        .17051        .52017E-06   -.73354E-04
  25  Prefactor     1.0749        .11517       -.36758E-06    .49745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.1087
  Prefactor  = 8.12308
  norm       = 20.6679
  norm       = 1.58312
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.42461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.4822
  Prefactor  = 0.946204
  Prefactor  = 0.0001
  norm       = 6.76786
  Prefactor  = 11.5225
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.94566
  Prefactor  = 0.0001
  Prefactor  = 3.84219
  Prefactor  = 17.4386
  norm       = 1.35049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06772
  Prefactor  = 1.07492
 **********
 **   18 **HESSE 
 **********

 FCN=   9544.293     FROM HESSE     STATUS=OK           427 CALLS     3300 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.109        41.676        .75572E-04   -1.4647    
   2  Prefactor     8.1231        6.2339        .14067E-03   -1.5138    
   3  norm          20.668        11.428        .88105E-04   -1.4798    
   4  norm          1.5831        1.0561        .78493E-04   -1.5456    
   5  norm          .10000E-03    .36267        .56952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4246        3.9179        .17154E-03   -1.5287    
   8  Prefactor     .10000E-03    60.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     76.482        36.250        .45910E-04   -1.3957    
  11  Prefactor     .94620        1.9340        .19046E-03   -1.5513    
  12  Prefactor     .10000E-03    13.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.7679        9.3264        .77117E-03   -1.5188    
  14  Prefactor     11.522        8.9800        .59007E-03   -1.5029    
  15  Prefactor     .10000E-03    29.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.9457        18.797        .12705E-03   -1.5077    
  18  Prefactor     .10000E-03    9.8385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8422        13.065        .10294E-02   -1.5316    
  20  Prefactor     17.439        23.448        .95914E-04   -1.4873    
  21  norm          1.3505        1.4282        .97699E-04   -1.5476    
  22  Prefactor     .10000E-03    2.3676        .14665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4028        .14748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0677        .19614        .30148E-03   -.90795    
  25  Prefactor     1.0749        .13148        .20955E-03   -.90272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80674e-09
Minuit parameter uncertainties:
  1  41.719
  2  6.23439
  3  11.4296
  4  1.05612
  5  1.89196e-06
  6  3.97181e-05
  7  3.91813
  8  4.41098e-05
  9  6.97581e-05
  10  36.2604
  11  1.9341
  12  4.94936e-06
  13  9.32837
  14  8.98105
  15  9.66038e-05
  16  5.7252e-06
  17  18.8086
  18  2.24714e-06
  19  13.0746
  20  23.4607
  21  1.42825
  22  8.58851e-07
  23  9.71817e-07
  24  0.196269
  25  0.131521
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  7.648e+01  3.626e+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.075e+00  1.315e-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.068e+00  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.49
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 8.03e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.08e-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) = 9542.37954865
delta logL = 1.91325300237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9542.32632528
delta logL = 1.96647637407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.007       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7527       1.0000          .0000       10.000    
     3 'Normalizat'    1.1184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0548       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=   9542.326     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      224 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.015        45.380        .16481E-05   -.10557E-03
   2  Index         1.7528        .33855        .75406E-05    .82153E-05
   3  Normalizat    1.1184        .16181       -.80479E-06   -.18399E-03
   4  Prefactor     1.0548        .11262        .22463E-06   -.20640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.0154
  Index      = 1.75276
  Normalizat = 1.11837
  Prefactor  = 1.05479
 **********
 **   18 **HESSE 
 **********

 FCN=   9542.326     FROM HESSE     STATUS=OK            29 CALLS      253 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.015        44.965        .21177E-03   -1.3808    
   2  Index         1.7528        .33556        .70400E-02   -.70686    
   3  Normalizat    1.1184        .18389        .29534E-03   -.89164    
   4  Prefactor     1.0548        .12824        .21119E-03   -.90925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02429e-10
Minuit parameter uncertainties:
  1  44.9818
  2  0.335999
  3  0.183994
  4  0.128278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929567': 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) = 9542.32632524
delta logL = 1.96647641532

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  9.002e+01  4.498e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.753e+00  3.360e-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.055e+00  1.283e-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.118e+00  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.37
Ra Dec: 117.485 18.387
Photon Index (Free Index): 1.75 +/- 0.34
Photon Flux (Free Index): 4.04e-08 +/- 2.53e-08
Energy Flux (Free Index): 5.59e-05 +/- 4.36e-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/929567/cmap_HighResolution_255916801_256176001_4FGL_J0749.9+1823_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.03e-08', energy_flux2='5.59e-05', photon_flux_error='3.80e-08', dlogl='1.97e+00', energy_flux='2.28e-05', photon_flux2='4.04e-08', job_status='DONE', time_completed='2021-08-28 15:44:41.094287', photon_index_error2='0.34', photon_index2='1.75', ts='8.49', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='4.36e-05', EG='1.07', time_epoch_completed='1630190681.09', return_code='0', job_id='929567', GAL2='1.05', EG2='1.12', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.53e-08', ts2='12.37', photon_index='2.52' WHERE bin_id='64' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:44:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 929567: <4FGL_J0749.9+1823_daily_bin64> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin64> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 15:30:24 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:30:25 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:25 2021
Terminated at Sat Aug 28 15:44:42 2021
Results reported at Sat Aug 28 15:44:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin64 117.485 18.387 255916801 256176001 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 :                                   831.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

