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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin623
RA = 117.485, Dec = 18.387
tmin = 400809601, tmax = 401068801
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='933165', job_status='RUN', time_executed='2021-08-28 15:42:46.647497', time_epoch_executed='1630190566.65' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933165

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933165/ft1_4FGL_J0749.9+1823_daily_bin623.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933165/ft2_4FGL_J0749.9+1823_daily_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933165/ft1_4FGL_J0749.9+1823_daily_bin623.fits outfile=/scratch/kocevski/933165/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin623.fits ra=117.485 dec=18.387 rad=12.0 tmin=400809601.0 tmax=401068801.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 8.94
user 3.18
sys 5.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933165/ft1_filtered_4FGL_J0749.9+1823_daily_bin623.fits" evtable="EVENTS" scfile=/scratch/kocevski/933165/ft2_4FGL_J0749.9+1823_daily_bin623.fits sctable="SC_DATA" outfile=/scratch/kocevski/933165/ltcube_400809601_401068801_4FGL_J0749.9+1823_daily_bin623.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/933165/ft2_4FGL_J0749.9+1823_daily_bin623.fits
.....................!
real 18.61
user 12.06
sys 6.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933165/ft1_filtered_4FGL_J0749.9+1823_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/933165/ft2_4FGL_J0749.9+1823_daily_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/933165/ltcube_400809601_401068801_4FGL_J0749.9+1823_daily_bin623.fits outfile=/scratch/kocevski/933165/expmap_400809601_401068801_4FGL_J0749.9+1823_daily_bin623.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/933165/ltcube_400809601_401068801_4FGL_J0749.9+1823_daily_bin623.fits
.....................!
real 197.46
user 185.32
sys 11.65

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/933165/ft1_filtered_4FGL_J0749.9+1823_daily_bin623.fits scfile=/scratch/kocevski/933165/ft2_4FGL_J0749.9+1823_daily_bin623.fits outfile=/scratch/kocevski/933165/cmap_400809601_401068801_4FGL_J0749.9+1823_daily_bin623.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 5.76
user 0.38
sys 5.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933165/ft1_filtered_4FGL_J0749.9+1823_daily_bin623.fits scfile=/scratch/kocevski/933165/ft2_4FGL_J0749.9+1823_daily_bin623.fits outfile=/scratch/kocevski/933165/cmap_HighResolution_400809601_401068801_4FGL_J0749.9+1823_daily_bin623.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 5.93
user 0.39
sys 5.51

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.147       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7767       1.0000         .10000E-03   10000.    
     3 'norm      '    17.977       1.0000         .10000E-03   10000.    
     4 'norm      '    5.4940       1.0000         .10000E-03   10000.    
     5 'norm      '    5.0922       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14313E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .15288E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.738       1.0000         .10000E-03   10000.    
    10 'Prefactor '    107.77       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .98075E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1136       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.888       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.463       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6078       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1370       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0399       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88378       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=   7968.871     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2982 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.145        47.525       -.29962E-05    .39776E-04
   2  Prefactor     2.7760        6.3273        .75840E-06   -.43098E-03
   3  norm          17.978        11.433        .49839E-07   -.14691E-03
   4  norm          5.4942        1.6111       -.37078E-07   -.80757E-03
   5  norm          5.0937        1.9730        .89343E-08   -.28744E-02
   6  Prefactor     .10002E-03    6.3466        .19975E-05** at limit **
   7  norm          .10020E-03    1.5773        .16739E-05** at limit **
   8  Prefactor     2.8928        31.713       -.17112E-04   -.68933E-04
   9  Prefactor     11.736        12.388       -.25506E-05   -.23941E-03
  10  Prefactor     107.79        51.018       -.78195E-05   -.73406E-04
  11  Prefactor     .92350E-01    1.1510       -.36085E-06    .26635E-04
  12  Prefactor     .10000E-03    20.923       -.86989E-05** at limit **
  13  norm          .10000E-03    7.1952       -.14003E-06** at limit **
  14  Prefactor     8.1146        11.282        .90420E-06   -.76461E-04
  15  Prefactor     .10000E-03    83.735        .37892E-06** at limit **
  16  norm          25.631        77.407       -.88620E-05    .28637E-04
  17  Prefactor     .10000E-03    10.289        .45719E-08** at limit **
  18  Prefactor     .10000E-03    28.342        .36596E-06** at limit **
  19  Prefactor     .10000E-03    3.9970       -.20379E-07** at limit **
  20  Prefactor     19.456        23.166        .90249E-05   -.24884E-03
  21  norm          1.6080        1.3022       -.53055E-06   -.10189E-03
  22  Prefactor     2.1351        11.180       -.74298E-05   -.20102E-03
  23  Prefactor     .10000E-03    3.5024        .11016E-06** at limit **
  24  Normalizat    1.0403        .18391        .13099E-05   -.51793E-03
  25  Prefactor     .88365        .11801        .52424E-06   -.48172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.1448
  Prefactor  = 2.77603
  norm       = 17.9775
  norm       = 5.49419
  norm       = 5.09371
  Prefactor  = 0.000100016
  norm       = 0.000100199
  Prefactor  = 2.8928
  Prefactor  = 11.7362
  Prefactor  = 107.792
  Prefactor  = 0.0923497
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 8.11456
  Prefactor  = 0.0001
  norm       = 25.6314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4561
  norm       = 1.60795
  Prefactor  = 2.13506
  Prefactor  = 0.0001
  Normalizat = 1.04027
  Prefactor  = 0.883648
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.871     FROM HESSE     STATUS=OK           427 CALLS     3409 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.145        47.500        .50900E-04   -1.4130    
   2  Prefactor     2.7760        6.2977        .24422E-03   -1.5375    
   3  norm          17.978        11.432        .94463E-04   -1.4860    
   4  norm          5.4942        1.6083        .58168E-04   -1.5239    
   5  norm          5.0937        1.7779        .67132E-04   -1.5257    
   6  Prefactor     .10002E-03    49.568        .36841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10020E-03    20.268        .20605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8928        31.313        .23831E-03   -1.5368    
   9  Prefactor     11.736        12.262        .11692E-03   -1.5023    
  10  Prefactor     107.79        50.254        .38740E-04   -1.3628    
  11  Prefactor     .92350E-01    12.104        .18044E-02   -1.5647    
  12  Prefactor     .10000E-03    20.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.2027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1146        11.265        .14075E-03   -1.5138    
  15  Prefactor     .10000E-03    83.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.631        77.387        .78732E-04   -1.4695    
  17  Prefactor     .10000E-03    10.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0006        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.456        23.037        .90787E-04   -1.4825    
  21  norm          1.6080        1.2828        .78800E-04   -1.5454    
  22  Prefactor     2.1351        11.338        .28198E-03   -1.5416    
  23  Prefactor     .10000E-03    3.5139        .16314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0403        .21000        .29292E-03   -.91693    
  25  Prefactor     .88365        .13639        .21377E-03   -.96715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09454e-08
Minuit parameter uncertainties:
  1  47.529
  2  6.29921
  3  11.4339
  4  1.60831
  5  1.77792
  6  0.00177491
  7  0.00401979
  8  19.0472
  9  12.2649
  10  50.2743
  11  2.11378
  12  0.000447856
  13  1.08599e-05
  14  11.268
  15  4.52643e-05
  16  77.6926
  17  1.01804e-05
  18  8.59678e-05
  19  2.30831e-06
  20  23.0479
  21  1.28279
  22  9.84296
  23  3.40311e-06
  24  0.210172
  25  0.136446
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.078e+02  5.027e+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.836e-01  1.364e-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.040e+00  2.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.11
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 5.27e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 1.50e-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) = 7968.42154777
delta logL = 0.449837283997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7968.40682847
delta logL = 0.464556586076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.144       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0795       1.0000          .0000       10.000    
     3 'Normalizat'    .99418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90565       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=   7968.407     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      311 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.072        79.434        .50499E-04   -.15750E-03
   2  Index         3.0808        .87857        .46314E-02    .70733E-04
   3  Normalizat    .99346        .20522        .29857E-03    .31162E-03
   4  Prefactor     .90605        .13624        .21146E-03   -.27886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.0716
  Index      = 3.08077
  Normalizat = 0.993462
  Prefactor  = 0.906051
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.407     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.072        62.233        .10100E-04   -1.4118    
   2  Index         3.0808        .68871        .18525E-03   -.39396    
   3  Normalizat    .99346        .20394        .11943E-04   -.93250    
   4  Prefactor     .90605        .13538        .42292E-04   -.95930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30235e-09
Minuit parameter uncertainties:
  1  62.2974
  2  0.691287
  3  0.204101
  4  0.135426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933165': 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) = 7968.40682144
delta logL = 0.464563613146

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  6.307e+01  6.230e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  3.081e+00  6.913e-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:  9.061e-01  1.354e-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.935e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.28
Ra Dec: 117.485 18.387
Photon Index (Free Index): 3.08 +/- 0.69
Photon Flux (Free Index): 1.49e-07 +/- 6.80e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.28e-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/933165/cmap_HighResolution_400809601_401068801_4FGL_J0749.9+1823_daily_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='2.87e-05', photon_flux_error='5.27e-08', dlogl='4.65e-01', energy_flux='3.21e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-08-28 15:56:18.431197', photon_index_error2='0.69', photon_index2='3.08', ts='7.11', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.04', time_epoch_completed='1630191378.43', return_code='0', job_id='933165', GAL2='0.91', EG2='0.99', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.80e-08', ts2='8.28', photon_index='2.52' WHERE bin_id='623' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:56:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 933165: <4FGL_J0749.9+1823_daily_bin623> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin623> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 15:40:50 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:40:51 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:40:51 2021
Terminated at Sat Aug 28 15:56:20 2021
Results reported at Sat Aug 28 15:56:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin623 117.485 18.387 400809601 401068801 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 :                                   896.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

