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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin115
RA = 117.485, Dec = 18.387
tmin = 269136001, tmax = 269395201
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='929642', job_status='RUN', time_executed='2021-08-28 15:32:24.249775', time_epoch_executed='1630189944.25' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929642/ft1_4FGL_J0749.9+1823_daily_bin115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929642/ft2_4FGL_J0749.9+1823_daily_bin115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929642/ft1_4FGL_J0749.9+1823_daily_bin115.fits outfile=/scratch/kocevski/929642/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin115.fits ra=117.485 dec=18.387 rad=12.0 tmin=269136001.0 tmax=269395201.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 9.17
user 1.51
sys 6.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929642/ft1_filtered_4FGL_J0749.9+1823_daily_bin115.fits" evtable="EVENTS" scfile=/scratch/kocevski/929642/ft2_4FGL_J0749.9+1823_daily_bin115.fits sctable="SC_DATA" outfile=/scratch/kocevski/929642/ltcube_269136001_269395201_4FGL_J0749.9+1823_daily_bin115.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/929642/ft2_4FGL_J0749.9+1823_daily_bin115.fits
.....................!
real 19.43
user 12.26
sys 7.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929642/ft1_filtered_4FGL_J0749.9+1823_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/929642/ft2_4FGL_J0749.9+1823_daily_bin115.fits sctable="SC_DATA" expcube=/scratch/kocevski/929642/ltcube_269136001_269395201_4FGL_J0749.9+1823_daily_bin115.fits outfile=/scratch/kocevski/929642/expmap_269136001_269395201_4FGL_J0749.9+1823_daily_bin115.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/929642/ltcube_269136001_269395201_4FGL_J0749.9+1823_daily_bin115.fits
.....................!
real 197.61
user 185.32
sys 11.90

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/929642/ft1_filtered_4FGL_J0749.9+1823_daily_bin115.fits scfile=/scratch/kocevski/929642/ft2_4FGL_J0749.9+1823_daily_bin115.fits outfile=/scratch/kocevski/929642/cmap_269136001_269395201_4FGL_J0749.9+1823_daily_bin115.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 6.50
user 0.37
sys 6.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929642/ft1_filtered_4FGL_J0749.9+1823_daily_bin115.fits scfile=/scratch/kocevski/929642/ft2_4FGL_J0749.9+1823_daily_bin115.fits outfile=/scratch/kocevski/929642/cmap_HighResolution_269136001_269395201_4FGL_J0749.9+1823_daily_bin115.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 6.46
user 0.37
sys 6.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.052       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4726       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1728       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.731       1.0000         .10000E-03   10000.    
     7 'norm      '    23.331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.150       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2185       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.081       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29948E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.215       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   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'    .90431       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4752       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8078.228     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     2895 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10270E-03    24.432       -.37799E-06** at limit **
   2  Prefactor     .10000E-03    3.8653       -.13065E-05** at limit **
   3  norm          11.055        1.3150       -.22721E-06    .52444E-04
   4  norm          2.4729        1.2998       -.13590E-06   -.98896E-04
   5  norm          3.1731        1.9331        .30679E-07   -.14525E-04
   6  Prefactor     14.728        1.5813       -.36704E-06    .73691E-03
   7  norm          23.331        6.6597        .77524E-07   -.19778E-02
   8  Prefactor     .10000E-03    13.742        .88184E-06** at limit **
   9  Prefactor     .10001E-03    16.344       -.16161E-05** at limit **
  10  Prefactor     97.213        13.926        .10150E-05    .60802E-02
  11  Prefactor     7.2187        3.3378        .78229E-07    .80576E-04
  12  Prefactor     .10002E-03    18.956        .36654E-05** at limit **
  13  norm          .10000E-03    8.1022       -.82393E-06** at limit **
  14  Prefactor     .10000E-03    3.4649        .86599E-06** at limit **
  15  Prefactor     .10020E-03    34.735       -.48705E-06** at limit **
  16  norm          .10175E-03    24.552       -.37791E-05** at limit **
  17  Prefactor     16.990        27.855       -.77830E-05   -.30584E-02
  18  Prefactor     .20642E-03    1377.2       -.49058E-04** at limit **
  19  Prefactor     .10000E-03    10.553        .20519E-05** at limit **
  20  Prefactor     18.204        17.024       -.27254E-05    .88809E-02
  21  norm          .10000E-03    .57777       -.71855E-07** at limit **
  22  Prefactor     .10000E-03    9.2397        .10006E-05** at limit **
  23  Prefactor     .10000E-03    2.1797        .50440E-06** at limit **
  24  Normalizat    .90444        .25692        .44732E-05    .38567E-04
  25  Prefactor     1.4750        .17753       -.15870E-05    .21044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102701
  Prefactor  = 0.0001
  norm       = 11.0546
  norm       = 2.47291
  norm       = 3.17311
  Prefactor  = 14.7278
  norm       = 23.3307
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 97.2128
  Prefactor  = 7.21865
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100197
  norm       = 0.000101746
  Prefactor  = 16.9904
  Prefactor  = 0.000206421
  Prefactor  = 0.0001
  Prefactor  = 18.2042
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.90444
  Prefactor  = 1.47497
 **********
 **   18 **HESSE 
 **********

 FCN=   8078.228     FROM HESSE     STATUS=OK           483 CALLS     3378 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10270E-03    29.280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.055        12.569        .30128E-02   -1.5043    
   4  norm          2.4729        1.3026        .65008E-02   -1.5393    
   5  norm          3.1731        2.3520        .56880E-02   -1.5352    
   6  Prefactor     14.728        14.304        .26089E-02   -1.4940    
   7  norm          23.331        6.6552        .20732E-02   -1.4742    
   8  Prefactor     .10000E-03    13.743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    16.317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     97.213        58.004        .10195E-02   -1.3733    
  11  Prefactor     7.2187        3.3388        .37324E-02   -1.5171    
  12  Prefactor     .10002E-03    18.977        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0799        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10020E-03    35.102        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10175E-03    27.691        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.990        32.923        .24227E-02   -1.4883    
  18  Prefactor     .20642E-03    62.689        .15684       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.204        25.394        .23461E-02   -1.4854    
  21  norm          .10000E-03    .56872        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.0531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.1777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90444        .23029        .85483E-01   -.96304    
  25  Prefactor     1.4750        .15413        .49287E-01   -.78243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44583e-07
Minuit parameter uncertainties:
  1  0.0177955
  2  1.69563e-05
  3  12.5725
  4  1.30263
  5  2.35204
  6  14.307
  7  6.65545
  8  0.000162566
  9  0.000663835
  10  58.0381
  11  3.33889
  12  0.00118777
  13  1.07704e-05
  14  1.00251e-05
  15  0.0052594
  16  0.0139128
  17  32.9582
  18  0.163529
  19  1.22797e-05
  20  25.4087
  21  3.70561e-07
  22  2.87973e-05
  23  4.49315e-06
  24  0.23054
  25  0.154183
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  9.721e+01  5.804e+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.475e+00  1.542e-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.044e-01  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 6.09e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.73e-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) = 8078.21590268
delta logL = 0.0121693082174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8078.20753304
delta logL = 0.0205389422872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.874       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6354       1.0000          .0000       10.000    
     3 'Normalizat'    .89450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4799       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8078.208     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.871        71.388        .42620E-04    .10638E-03
   2  Index         2.6353        .59908        .61925E-02    .61014E-04
   3  Normalizat    .89488        .25350        .38026E-03   -.10679E-03
   4  Prefactor     1.4796        .17762        .21759E-03   -.22403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.8714
  Index      = 2.63526
  Normalizat = 0.894877
  Prefactor  = 1.47962
 **********
 **   18 **HESSE 
 **********

 FCN=   8078.208     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.871        67.567        .85241E-05   -1.3820    
   2  Index         2.6353        .56629        .24770E-03   -.49263    
   3  Normalizat    .89488        .25340        .15211E-04   -.96640    
   4  Prefactor     1.4796        .17755        .43518E-04   -.78112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77829e-11
Minuit parameter uncertainties:
  1  67.6255
  2  0.567862
  3  0.253734
  4  0.177625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929642': 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) = 8078.20753188
delta logL = 0.0205401033891

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  8.887e+01  6.763e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.635e+00  5.679e-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.480e+00  1.776e-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.949e-01  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 117.485 18.387
Photon Index (Free Index): 2.64 +/- 0.57
Photon Flux (Free Index): 1.09e-07 +/- 6.97e-08
Energy Flux (Free Index): 2.77e-05 +/- 1.68e-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/929642/cmap_HighResolution_269136001_269395201_4FGL_J0749.9+1823_daily_bin115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.77e-05', photon_flux_error='6.09e-08', dlogl='2.05e-02', energy_flux='2.89e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-08-28 15:45:56.572147', photon_index_error2='0.57', photon_index2='2.64', ts='4.50', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='0.90', time_epoch_completed='1630190756.57', return_code='0', job_id='929642', GAL2='1.48', EG2='0.89', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='6.97e-08', ts2='4.58', photon_index='2.52' WHERE bin_id='115' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 929642: <4FGL_J0749.9+1823_daily_bin115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin115 117.485 18.387 269136001 269395201 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 :                                   904.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

