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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin897
RA = 117.485, Dec = 18.387
tmin = 471830401, tmax = 472089601
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='934774', job_status='RUN', time_executed='2021-08-28 15:47:42.114695', time_epoch_executed='1630190862.11' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934774

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934774/ft1_4FGL_J0749.9+1823_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934774/ft2_4FGL_J0749.9+1823_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934774/ft1_4FGL_J0749.9+1823_daily_bin897.fits outfile=/scratch/kocevski/934774/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin897.fits ra=117.485 dec=18.387 rad=12.0 tmin=471830401.0 tmax=472089601.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.86
user 3.33
sys 0.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934774/ft2_4FGL_J0749.9+1823_daily_bin897.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/934774/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin897.fits evtable="EVENTS" outfile="/scratch/kocevski/934774/ft1_filtered_4FGL_J0749.9+1823_daily_bin897.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.77
user 0.34
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934774/ft1_filtered_4FGL_J0749.9+1823_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/934774/ft2_4FGL_J0749.9+1823_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/934774/ltcube_471830401_472089601_4FGL_J0749.9+1823_daily_bin897.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/934774/ft2_4FGL_J0749.9+1823_daily_bin897.fits
.....................!
real 12.42
user 11.76
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934774/ft1_filtered_4FGL_J0749.9+1823_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/934774/ft2_4FGL_J0749.9+1823_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/934774/ltcube_471830401_472089601_4FGL_J0749.9+1823_daily_bin897.fits outfile=/scratch/kocevski/934774/expmap_471830401_472089601_4FGL_J0749.9+1823_daily_bin897.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/934774/ltcube_471830401_472089601_4FGL_J0749.9+1823_daily_bin897.fits
.....................!
real 192.94
user 187.32
sys 5.23

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/934774/ft1_filtered_4FGL_J0749.9+1823_daily_bin897.fits scfile=/scratch/kocevski/934774/ft2_4FGL_J0749.9+1823_daily_bin897.fits outfile=/scratch/kocevski/934774/cmap_471830401_472089601_4FGL_J0749.9+1823_daily_bin897.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.81
user 0.38
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934774/ft1_filtered_4FGL_J0749.9+1823_daily_bin897.fits scfile=/scratch/kocevski/934774/ft2_4FGL_J0749.9+1823_daily_bin897.fits outfile=/scratch/kocevski/934774/cmap_HighResolution_471830401_472089601_4FGL_J0749.9+1823_daily_bin897.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/934774/ft1_filtered_4FGL_J0749.9+1823_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/934774/ft2_4FGL_J0749.9+1823_daily_bin897.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934774/Model_4FGL_J0749.9+1823_daily_bin897.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/934774/ft1_filtered_4FGL_J0749.9+1823_daily_bin897.fits.....................!
real 77.47
user 75.72
sys 1.54

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8022       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .87993       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4650       1.0000         .10000E-03   10000.    
     4 'norm      '    .78370       1.0000         .10000E-03   10000.    
     5 'norm      '    2.5110       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21837E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9176       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .54079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8475       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.7332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10797E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12129E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2728       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0781       1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96260       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0876       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=   6773.221     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2963 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7850        105.37       -.32769E-05   -.77585E-05
   2  Prefactor     .86404        8.5663        .27802E-05    .17348E-03
   3  norm          2.4638        12.612       -.56018E-05    .44044E-04
   4  norm          .78336        1.1839        .23741E-06    .14679E-02
   5  norm          2.5120        1.3784       -.36271E-07   -.13635E-02
   6  Prefactor     .10000E-03    10.625        .86921E-05** at limit **
   7  norm          3.9292        4.5846        .48435E-06    .69302E-04
   8  Prefactor     .10002E-03    96.021       -.21174E-05** at limit **
   9  Prefactor     .46082        254.83       -.66941E-04    .45154E-04
  10  Prefactor     .10000E-03    18.403        .66571E-06** at limit **
  11  Prefactor     1.8467        2.6805       -.45676E-06   -.72517E-03
  12  Prefactor     .10000E-03    11.554       -.20504E-06** at limit **
  13  norm          7.7321        10.603       -.16009E-05   -.92606E-03
  14  Prefactor     .10000E-03    13.655       -.46709E-06** at limit **
  15  Prefactor     .10000E-03    41.830       -.33601E-06** at limit **
  16  norm          .10000E-03    92.038        .29501E-05** at limit **
  17  Prefactor     .10000E-03    29.616       -.72474E-06** at limit **
  18  Prefactor     .10000E-03    18.103        .49990E-06** at limit **
  19  Prefactor     6.2561        20.505       -.16502E-05   -.49225E-04
  20  Prefactor     1.0805        11.740        .32235E-05    .15125E-03
  21  norm          .10000E-03    .65233       -.60730E-06** at limit **
  22  Prefactor     .10000E-03    3.6633       -.10772E-06** at limit **
  23  Prefactor     .10000E-03    2.9504       -.74649E-07** at limit **
  24  Normalizat    .96275        .19187        .28367E-05    .13577E-04
  25  Prefactor     1.0876        .13050       -.67580E-06   -.14346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.78497
  Prefactor  = 0.864038
  norm       = 2.46378
  norm       = 0.783365
  norm       = 2.51201
  Prefactor  = 0.000100002
  norm       = 3.92922
  Prefactor  = 0.000100023
  Prefactor  = 0.460824
  Prefactor  = 0.0001
  Prefactor  = 1.84673
  Prefactor  = 0.0001
  norm       = 7.73206
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.25607
  Prefactor  = 1.08051
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.962752
  Prefactor  = 1.08759
 **********
 **   18 **HESSE 
 **********

 FCN=   6773.221     FROM HESSE     STATUS=OK           431 CALLS     3394 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7850        105.72        .18359E-03   -1.5270    
   2  Prefactor     .86404        28.083        .44564E-02   -1.5522    
   3  norm          2.4638        15.506        .13023E-02   -1.5394    
   4  norm          .78336        1.1549        .10468E-03   -1.5531    
   5  norm          2.5120        1.3103        .65858E-04   -1.5391    
   6  Prefactor     .10000E-03    16.210        .33816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9292        5.1981        .78591E-03   -1.5311    
   8  Prefactor     .10002E-03    98.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .46082        313.57        .56492E-02   -1.5572    
  10  Prefactor     .10000E-03    18.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8467        2.6702        .15500E-03   -1.5436    
  12  Prefactor     .10000E-03    11.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.7321        10.668        .14420E-03   -1.5152    
  14  Prefactor     .10000E-03    13.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    92.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.2561        20.631        .16027E-03   -1.5208    
  20  Prefactor     1.0805        55.895        .51894E-02   -1.5500    
  21  norm          .10000E-03    1.9851        .12469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6810        .15384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9593        .13808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96275        .22147        .28985E-03   -.94289    
  25  Prefactor     1.0876        .15207        .19442E-03   -.89864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03552e-09
Minuit parameter uncertainties:
  1  45.073
  2  9.85629
  3  12.3663
  4  1.15497
  5  1.31036
  6  0.000350048
  7  5.19869
  8  0.00299522
  9  24.167
  10  9.34017e-05
  11  2.67036
  12  5.97445e-05
  13  10.6703
  14  0.000325778
  15  0.000100018
  16  6.09828e-05
  17  0.00023382
  18  9.66265e-06
  19  20.6542
  20  15.5575
  21  6.55255e-05
  22  2.82101e-05
  23  1.8776e-05
  24  0.221678
  25  0.152128
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  9.340e-05  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.088e+00  1.521e-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.628e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934774/likelihoodResults_471830401_472089601_4FGL_J0749.9+1823_daily_bin897.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6773.22172211
delta logL = -0.000258258804024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6773.22146567
delta logL = -1.81913856068e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9103       1.0000          .0000       10.000    
     3 'Normalizat'    .96275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0876       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=   6773.221     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10780E-03    11.695        .18142E-01** at limit **
   2  Index         2.7730        5.4279        .50000        .25239E-04
   3  Normalizat    .96275        .44249E-02    .28985E-03   -.36751E-04
   4  Prefactor     1.0876        .31530E-02    .19442E-03    .10201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107797
  Index      = 2.77299
  Normalizat = 0.962749
  Prefactor  = 1.08759
 **********
 **   18 **HESSE 
 **********

 FCN=   6773.221     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10780E-03    76.565        .29358E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7730        5.2343        .50000       -.46162    
   3  Normalizat    .96275        .11303E-01    .11594E-04   -.94289    
   4  Prefactor     1.0876        .80542E-02    .38883E-04   -.89864    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03843e-08
Minuit parameter uncertainties:
  1  0.04893
  2  308.946
  3  0.0113032
  4  0.00805426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934774': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6773.22146512
delta logL = -1.26874601847e-06

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.078e-04  4.893e-02  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.773e+00  3.089e+02  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.088e+00  8.054e-03  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.627e-01  1.130e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.485 18.387

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/934774/cmap_HighResolution_471830401_472089601_4FGL_J0749.9+1823_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-08-28 16:00:06.984967', job_id='934774', GAL2='1.09', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630191606.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='897' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:00:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 934774: <4FGL_J0749.9+1823_daily_bin897> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin897> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 15:45:40 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:45:42 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:45:42 2021
Terminated at Sat Aug 28 16:00:07 2021
Results reported at Sat Aug 28 16:00:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin897 117.485 18.387 471830401 472089601 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 :                                   745.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

