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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin265
RA = 117.485, Dec = 18.387
tmin = 308016001, tmax = 308275201
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='931223', job_status='RUN', time_executed='2021-08-28 15:38:32.409493', time_epoch_executed='1630190312.41' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931223

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931223/ft1_4FGL_J0749.9+1823_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931223/ft2_4FGL_J0749.9+1823_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931223/ft1_4FGL_J0749.9+1823_daily_bin265.fits outfile=/scratch/kocevski/931223/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin265.fits ra=117.485 dec=18.387 rad=12.0 tmin=308016001.0 tmax=308275201.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.90
user 3.16
sys 0.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931223/ft2_4FGL_J0749.9+1823_daily_bin265.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/931223/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin265.fits evtable="EVENTS" outfile="/scratch/kocevski/931223/ft1_filtered_4FGL_J0749.9+1823_daily_bin265.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.95
user 0.35
sys 0.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931223/ft1_filtered_4FGL_J0749.9+1823_daily_bin265.fits" evtable="EVENTS" scfile=/scratch/kocevski/931223/ft2_4FGL_J0749.9+1823_daily_bin265.fits sctable="SC_DATA" outfile=/scratch/kocevski/931223/ltcube_308016001_308275201_4FGL_J0749.9+1823_daily_bin265.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/931223/ft2_4FGL_J0749.9+1823_daily_bin265.fits
.....................!
real 12.51
user 11.70
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931223/ft1_filtered_4FGL_J0749.9+1823_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/931223/ft2_4FGL_J0749.9+1823_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/931223/ltcube_308016001_308275201_4FGL_J0749.9+1823_daily_bin265.fits outfile=/scratch/kocevski/931223/expmap_308016001_308275201_4FGL_J0749.9+1823_daily_bin265.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/931223/ltcube_308016001_308275201_4FGL_J0749.9+1823_daily_bin265.fits
.....................!
real 190.16
user 185.14
sys 4.56

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/931223/ft1_filtered_4FGL_J0749.9+1823_daily_bin265.fits scfile=/scratch/kocevski/931223/ft2_4FGL_J0749.9+1823_daily_bin265.fits outfile=/scratch/kocevski/931223/cmap_308016001_308275201_4FGL_J0749.9+1823_daily_bin265.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.97
user 0.37
sys 0.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931223/ft1_filtered_4FGL_J0749.9+1823_daily_bin265.fits scfile=/scratch/kocevski/931223/ft2_4FGL_J0749.9+1823_daily_bin265.fits outfile=/scratch/kocevski/931223/cmap_HighResolution_308016001_308275201_4FGL_J0749.9+1823_daily_bin265.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.99
user 0.39
sys 0.57

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2214       1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .19510       1.0000         .10000E-03   10000.    
     5 'norm      '    .74193       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .64428       1.0000         .10000E-03   10000.    
     7 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .68640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    98.969       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .85683       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .85092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15669E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    104.16       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20922E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    55.293       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.8809       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .38306E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4141       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84797       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=   7553.728     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3046 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.342       -.51566E-06** at limit **
   2  Prefactor     9.2209        10.893       -.13729E-06    .83857E-04
   3  norm          .10000E-03    6.2856       -.22083E-06** at limit **
   4  norm          .19234        .74263       -.95556E-07   -.22064E-04
   5  norm          .73936        1.2011       -.55696E-06   -.24162E-03
   6  Prefactor     .69104        14.074        .32739E-06   -.38872E-04
   7  norm          .10000E-03    2.1893       -.66183E-07** at limit **
   8  Prefactor     33.551        41.886       -.41222E-07    .10393E-03
   9  Prefactor     .70102        29.377        .12834E-04    .58409E-04
  10  Prefactor     98.995        60.486        .13598E-05    .12400E-03
  11  Prefactor     .85466        3.2209       -.60628E-06   -.39337E-03
  12  Prefactor     .10000E-03    13.299       -.21341E-07** at limit **
  13  norm          23.718        20.762        .49030E-06    .59697E-03
  14  Prefactor     .10001E-03    11.779       -.53905E-05** at limit **
  15  Prefactor     .10111E-03    6930.4        .23594E-04** at limit **
  16  norm          104.17        96.475       -.53259E-06   -.72334E-06
  17  Prefactor     .10000E-03    34.479        .14578E-06** at limit **
  18  Prefactor     55.268        53.401        .24798E-06    .10536E-03
  19  Prefactor     .10000E-03    5.2706       -.12292E-06** at limit **
  20  Prefactor     .10000E-03    35.581       -.56017E-06** at limit **
  21  norm          6.8822        2.1200       -.32836E-07    .12970E-02
  22  Prefactor     .10005E-03    8.6153       -.51734E-05** at limit **
  23  Prefactor     .10000E-03    3.0743       -.83462E-07** at limit **
  24  Normalizat    1.4145        .21015        .13315E-05    .30056E-03
  25  Prefactor     .84786        .12923        .35559E-06    .38936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.22087
  norm       = 0.0001
  norm       = 0.192345
  norm       = 0.739364
  Prefactor  = 0.691038
  norm       = 0.0001
  Prefactor  = 33.5514
  Prefactor  = 0.701015
  Prefactor  = 98.9945
  Prefactor  = 0.854665
  Prefactor  = 0.0001
  norm       = 23.7177
  Prefactor  = 0.000100005
  Prefactor  = 0.000101114
  norm       = 104.165
  Prefactor  = 0.000100001
  Prefactor  = 55.2678
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 6.88219
  Prefactor  = 0.000100051
  Prefactor  = 0.0001
  Normalizat = 1.41451
  Prefactor  = 0.847857
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.728     FROM HESSE     STATUS=OK           429 CALLS     3475 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.2209        10.913        .13198E-03   -1.5101    
   3  norm          .10000E-03    6.3323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .19234        2.3170        .13453E-02   -1.5620    
   5  norm          .73936        1.3208        .12988E-02   -1.5536    
   6  Prefactor     .69104        74.025        .45885E-02   -1.5542    
   7  norm          .10000E-03    2.2123        .12537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.551        41.794        .69171E-04   -1.4549    
   9  Prefactor     .70102        33.655        .45491E-02   -1.5541    
  10  Prefactor     98.995        62.666        .40409E-04   -1.3715    
  11  Prefactor     .85466        3.2178        .27901E-03   -1.5523    
  12  Prefactor     .10000E-03    13.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.718        19.029        .82240E-04   -1.4734    
  14  Prefactor     .10001E-03    43.102        .45492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10111E-03    6911.1        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          104.17        96.529        .39400E-04   -1.3663    
  17  Prefactor     .10000E-03    34.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     55.268        53.550        .53944E-04   -1.4220    
  19  Prefactor     .10000E-03    5.2790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.8822        2.0967        .66385E-04   -1.5183    
  22  Prefactor     .10005E-03    41.007        .37861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0809        .14884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4145        .24708        .28466E-03   -.80210    
  25  Prefactor     .84786        .15131        .23020E-03   -.97988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80128e-08
Minuit parameter uncertainties:
  1  0.000311602
  2  10.9151
  3  4.29425e-05
  4  1.33487
  5  1.32086
  6  14.3216
  7  2.96334e-05
  8  41.8305
  9  9.71963
  10  62.7075
  11  3.21847
  12  3.34212e-05
  13  19.034
  14  0.00095603
  15  0.140689
  16  96.6754
  17  0.00033179
  18  53.5962
  19  2.05562e-05
  20  0.000312412
  21  2.09671
  22  0.00289785
  23  8.98195e-06
  24  0.247293
  25  0.151387
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  9.899e+01  6.271e+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:  8.479e-01  1.514e-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.415e+00  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 6.58e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.87e-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) = 7553.58941502
delta logL = 0.13906580496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7553.58906947
delta logL = 0.139411351091

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7553.589     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      278 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     114.58        1607.7        .94056E-03    .99114E-06
   2  Index         2.2328        5.9370        .15989        .49612E-04
   3  Normalizat    1.4422        .20184        .63849E-01    .63717E-05
   4  Prefactor     .83559        .10077        .44178E-01    .14593E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 114.58
  Index      = 2.23285
  Normalizat = 1.44215
  Prefactor  = 0.835592
 **********
 **   18 **HESSE 
 **********

 FCN=   7553.589     FROM HESSE     STATUS=OK            31 CALLS      309 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     114.58        68.728        .37623E-04   -1.3563    
   2  Index         2.2328        .53101        .83893E-02   -.58648    
   3  Normalizat    1.4422        .23549        .28241E-03   -.79417    
   4  Prefactor     .83559        .14861        .23163E-03   -.98429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43676e-12
Minuit parameter uncertainties:
  1  68.7761
  2  0.532462
  3  0.235667
  4  0.148682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931223': 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) = 7553.58905293
delta logL = 0.139427889345

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.146e+02  6.878e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.233e+00  5.325e-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:  8.356e-01  1.487e-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.442e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.81
Ra Dec: 117.485 18.387
Photon Index (Free Index): 2.23 +/- 0.53
Photon Flux (Free Index): 8.30e-08 +/- 6.45e-08
Energy Flux (Free Index): 3.51e-05 +/- 2.54e-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/931223/cmap_HighResolution_308016001_308275201_4FGL_J0749.9+1823_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='3.51e-05', photon_flux_error='6.58e-08', dlogl='1.39e-01', energy_flux='2.95e-05', photon_flux2='8.30e-08', job_status='DONE', time_completed='2021-08-28 15:50:24.376401', photon_index_error2='0.53', photon_index2='2.23', ts='4.59', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.54e-05', EG='1.41', time_epoch_completed='1630191024.38', return_code='0', job_id='931223', GAL2='0.84', EG2='1.44', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='6.45e-08', ts2='4.81', photon_index='2.52' WHERE bin_id='265' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:50:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 931223: <4FGL_J0749.9+1823_daily_bin265> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin265> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 15:35:29 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:35:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 15:35:31 2021
Terminated at Sat Aug 28 15:50:25 2021
Results reported at Sat Aug 28 15:50:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin265 117.485 18.387 308016001 308275201 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 :                                   713.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            896 sec.

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

