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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin16
RA = 117.485, Dec = 18.387
tmin = 243475201, tmax = 243734401
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='929498', job_status='RUN', time_executed='2021-08-28 15:31:12.067509', time_epoch_executed='1630189872.07' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929498/ft1_4FGL_J0749.9+1823_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929498/ft2_4FGL_J0749.9+1823_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929498/ft1_4FGL_J0749.9+1823_daily_bin16.fits outfile=/scratch/kocevski/929498/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin16.fits ra=117.485 dec=18.387 rad=12.0 tmin=243475201.0 tmax=243734401.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 1.70
user 1.23
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929498/ft1_filtered_4FGL_J0749.9+1823_daily_bin16.fits" evtable="EVENTS" scfile=/scratch/kocevski/929498/ft2_4FGL_J0749.9+1823_daily_bin16.fits sctable="SC_DATA" outfile=/scratch/kocevski/929498/ltcube_243475201_243734401_4FGL_J0749.9+1823_daily_bin16.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/929498/ft2_4FGL_J0749.9+1823_daily_bin16.fits
.....................!
real 12.68
user 11.95
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929498/ft1_filtered_4FGL_J0749.9+1823_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/929498/ft2_4FGL_J0749.9+1823_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/929498/ltcube_243475201_243734401_4FGL_J0749.9+1823_daily_bin16.fits outfile=/scratch/kocevski/929498/expmap_243475201_243734401_4FGL_J0749.9+1823_daily_bin16.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/929498/ltcube_243475201_243734401_4FGL_J0749.9+1823_daily_bin16.fits
.....................!
real 190.89
user 185.46
sys 4.86

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/929498/ft1_filtered_4FGL_J0749.9+1823_daily_bin16.fits scfile=/scratch/kocevski/929498/ft2_4FGL_J0749.9+1823_daily_bin16.fits outfile=/scratch/kocevski/929498/cmap_243475201_243734401_4FGL_J0749.9+1823_daily_bin16.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.82
user 0.37
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929498/ft1_filtered_4FGL_J0749.9+1823_daily_bin16.fits scfile=/scratch/kocevski/929498/ft2_4FGL_J0749.9+1823_daily_bin16.fits outfile=/scratch/kocevski/929498/cmap_HighResolution_243475201_243734401_4FGL_J0749.9+1823_daily_bin16.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.80
user 0.37
sys 0.42

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4431       1.0000         .10000E-03   10000.    
     3 'norm      '    11.100       1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .72862       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.135       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.687       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.233       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9225       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.971       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2587       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.1571       1.0000         .10000E-03   10000.    
    21 'norm      '    .77422       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1408       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0619       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=   11003.35     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2933 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.241       -.26088E-05** at limit **
   2  Prefactor     5.4431        5.5643        .10247E-06    .40864E-04
   3  norm          11.099        8.4961        .24708E-07   -.33483E-04
   4  norm          .10000E-03    .33488        .32709E-07** at limit **
   5  norm          .72911        .87393        .47092E-07    .36848E-03
   6  Prefactor     .10000E-03    6.1451       -.24728E-07** at limit **
   7  norm          .10000E-03    1.5123        .13937E-09** at limit **
   8  Prefactor     .10000E-03    8.0530        .21766E-06** at limit **
   9  Prefactor     18.135        16.626        .33615E-06    .10071E-04
  10  Prefactor     60.672        30.612       -.27070E-05   -.59401E-03
  11  Prefactor     .10000E-03    .57282        .15731E-07** at limit **
  12  Prefactor     25.228        29.780       -.12633E-05   -.13166E-03
  13  norm          .10000E-03    10.377        .88849E-06** at limit **
  14  Prefactor     3.9616        5.7637       -.70448E-07   -.89455E-04
  15  Prefactor     .10000E-03    25.679       -.38219E-05** at limit **
  16  norm          .10001E-03    30.046        .61083E-05** at limit **
  17  Prefactor     7.9237        29.376        .35635E-06    .15844E-04
  18  Prefactor     43.974        39.919        .62562E-06    .78273E-04
  19  Prefactor     4.2599        9.9049        .50966E-05   -.70528E-03
  20  Prefactor     2.1608        22.181        .33852E-06   -.40810E-04
  21  norm          .77438        .93115        .81430E-07    .77231E-04
  22  Prefactor     .10000E-03    9.2191       -.80741E-06** at limit **
  23  Prefactor     .10000E-03    1.6560        .12447E-07** at limit **
  24  Normalizat    1.1406        .15758        .61617E-07   -.25658E-04
  25  Prefactor     1.0620        .10592       -.19032E-06    .15799E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 5.44308
  norm       = 11.0985
  norm       = 0.0001
  norm       = 0.729112
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1348
  Prefactor  = 60.6721
  Prefactor  = 0.0001
  Prefactor  = 25.228
  norm       = 0.0001
  Prefactor  = 3.96157
  Prefactor  = 0.000100005
  norm       = 0.000100012
  Prefactor  = 7.92374
  Prefactor  = 43.9737
  Prefactor  = 4.25987
  Prefactor  = 2.16081
  norm       = 0.774376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14063
  Prefactor  = 1.06198
 **********
 **   18 **HESSE 
 **********

 FCN=   11003.35     FROM HESSE     STATUS=OK           429 CALLS     3362 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4431        5.5644        .17223E-03   -1.5241    
   3  norm          11.099        8.5054        .12025E-03   -1.5042    
   4  norm          .10000E-03    .77684        .11755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .72911        .73038        .10318E-02   -1.5537    
   6  Prefactor     .10000E-03    6.2917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5242        .12554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.135        16.614        .94051E-04   -1.4856    
  10  Prefactor     60.672        31.935        .51505E-04   -1.4149    
  11  Prefactor     .10000E-03    .57728        .77503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.228        29.917        .79746E-04   -1.4703    
  13  norm          .10000E-03    10.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9616        5.7617        .20270E-03   -1.5310    
  15  Prefactor     .10000E-03    26.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    31.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.9237        29.290        .14245E-03   -1.5145    
  18  Prefactor     43.974        39.839        .60459E-04   -1.4381    
  19  Prefactor     4.2599        10.995        .97622E-03   -1.5295    
  20  Prefactor     2.1608        21.415        .28049E-03   -1.5414    
  21  norm          .77438        .78650        .10284E-02   -1.5532    
  22  Prefactor     .10000E-03    9.4718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.6582        .13183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1406        .18191        .29363E-03   -.88458    
  25  Prefactor     1.0620        .12161        .20873E-03   -.90691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82227e-09
Minuit parameter uncertainties:
  1  0.000617448
  2  5.56495
  3  8.50629
  4  6.29093e-07
  5  0.730388
  6  3.14964e-05
  7  2.54171e-06
  8  2.95154e-05
  9  16.618
  10  31.9444
  11  5.90236e-07
  12  29.9346
  13  9.54199e-05
  14  5.76252
  15  0.000697593
  16  0.00122346
  17  29.3433
  18  39.8633
  19  11.0001
  20  13.6111
  21  0.786511
  22  9.1306e-05
  23  3.33411e-08
  24  0.182008
  25  0.121646
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  6.067e+01  3.194e+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.062e+00  1.216e-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.141e+00  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.83
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.37e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 9.51e-06

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) = 11000.0854611
delta logL = 3.26795880445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10999.9137112
delta logL = 3.43970867949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.698       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6735       1.0000          .0000       10.000    
     3 'Normalizat'    1.1790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0436       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=   10999.91     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      227 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.689        46.372       -.26732E-05   -.85741E-04
   2  Index         1.6735        .28231       -.72775E-05    .39112E-04
   3  Normalizat    1.1790        .15063        .41574E-06    .13569E-03
   4  Prefactor     1.0436        .10408        .21440E-07    .16795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.6886
  Index      = 1.67347
  Normalizat = 1.17897
  Prefactor  = 1.04361
 **********
 **   18 **HESSE 
 **********

 FCN=   10999.91     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.689        46.029        .21698E-03   -1.3854    
   2  Index         1.6735        .27937        .65327E-02   -.72790    
   3  Normalizat    1.1790        .17294        .28932E-03   -.87255    
   4  Prefactor     1.0436        .11965        .21017E-03   -.91290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40027e-11
Minuit parameter uncertainties:
  1  46.0486
  2  0.279631
  3  0.173023
  4  0.119677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929498': 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) = 10999.9137112
delta logL = 3.43970871074

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  8.569e+01  4.605e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  1.673e+00  2.796e-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.044e+00  1.197e-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.179e+00  1.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.69
Ra Dec: 117.485 18.387
Photon Index (Free Index): 1.67 +/- 0.28
Photon Flux (Free Index): 3.65e-08 +/- 2.26e-08
Energy Flux (Free Index): 6.49e-05 +/- 4.78e-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/929498/cmap_HighResolution_243475201_243734401_4FGL_J0749.9+1823_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.37e-08', energy_flux2='6.49e-05', photon_flux_error='3.35e-08', dlogl='3.44e+00', energy_flux='1.81e-05', photon_flux2='3.65e-08', job_status='DONE', time_completed='2021-08-28 15:45:08.086413', photon_index_error2='0.28', photon_index2='1.67', ts='11.83', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='4.78e-05', EG='1.14', time_epoch_completed='1630190708.09', return_code='0', job_id='929498', GAL2='1.04', EG2='1.18', return_code2='0', energy_flux_error='9.51e-06', photon_flux_error2='2.26e-08', ts2='18.69', photon_index='2.52' WHERE bin_id='16' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:45:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 929498: <4FGL_J0749.9+1823_daily_bin16> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin16 117.485 18.387 243475201 243734401 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 :                                   838.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            889 sec.

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

