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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin483
RA = 117.485, Dec = 18.387
tmin = 364521601, tmax = 364780801
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='932866', job_status='RUN', time_executed='2021-08-28 15:43:03.618125', time_epoch_executed='1630190583.62' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932866/ft1_4FGL_J0749.9+1823_daily_bin483.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932866/ft2_4FGL_J0749.9+1823_daily_bin483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932866/ft1_4FGL_J0749.9+1823_daily_bin483.fits outfile=/scratch/kocevski/932866/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin483.fits ra=117.485 dec=18.387 rad=12.0 tmin=364521601.0 tmax=364780801.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.92
user 2.97
sys 0.92

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932866/ft1_filtered_4FGL_J0749.9+1823_daily_bin483.fits" evtable="EVENTS" scfile=/scratch/kocevski/932866/ft2_4FGL_J0749.9+1823_daily_bin483.fits sctable="SC_DATA" outfile=/scratch/kocevski/932866/ltcube_364521601_364780801_4FGL_J0749.9+1823_daily_bin483.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/932866/ft2_4FGL_J0749.9+1823_daily_bin483.fits
.....................!
real 13.35
user 12.13
sys 1.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932866/ft1_filtered_4FGL_J0749.9+1823_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/932866/ft2_4FGL_J0749.9+1823_daily_bin483.fits sctable="SC_DATA" expcube=/scratch/kocevski/932866/ltcube_364521601_364780801_4FGL_J0749.9+1823_daily_bin483.fits outfile=/scratch/kocevski/932866/expmap_364521601_364780801_4FGL_J0749.9+1823_daily_bin483.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/932866/ltcube_364521601_364780801_4FGL_J0749.9+1823_daily_bin483.fits
.....................!
real 191.16
user 185.68
sys 4.96

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/932866/ft1_filtered_4FGL_J0749.9+1823_daily_bin483.fits scfile=/scratch/kocevski/932866/ft2_4FGL_J0749.9+1823_daily_bin483.fits outfile=/scratch/kocevski/932866/cmap_364521601_364780801_4FGL_J0749.9+1823_daily_bin483.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 1.27
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932866/ft1_filtered_4FGL_J0749.9+1823_daily_bin483.fits scfile=/scratch/kocevski/932866/ft2_4FGL_J0749.9+1823_daily_bin483.fits outfile=/scratch/kocevski/932866/cmap_HighResolution_364521601_364780801_4FGL_J0749.9+1823_daily_bin483.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 1.24
user 0.38
sys 0.85

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.839       1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.5873       1.0000         .10000E-03   10000.    
     5 'norm      '    12.330       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19859E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .98454E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .67283       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.812       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.989       1.0000         .10000E-03   10000.    
    16 'norm      '    461.00       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.144       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.467       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3299       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4483       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82292       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=   7160.894     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3310 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.818        .32733E-06** at limit **
   2  Prefactor     15.841        9.8938        .70946E-07    .90984E-06
   3  norm          .10000E-03    8.7155        .54290E-07** at limit **
   4  norm          4.5872        1.7526        .44562E-07    .18556E-04
   5  norm          12.330        2.9073        .70468E-06    .83545E-03
   6  Prefactor     .10011E-03    10.289       -.17273E-05** at limit **
   7  norm          1.4206        3.9325        .10223E-05   -.14506E-03
   8  Prefactor     .10000E-03    141.21        .79712E-06** at limit **
   9  Prefactor     14.629        15.256       -.10636E-06   -.10245E-04
  10  Prefactor     29.909        46.079       -.44562E-05   -.60733E-04
  11  Prefactor     .67195        4.5559        .32315E-05   -.39558E-03
  12  Prefactor     .10000E-03    20.779       -.16895E-06** at limit **
  13  norm          .10000E-03    5.4181       -.22369E-07** at limit **
  14  Prefactor     17.815        12.350       -.62970E-06   -.65887E-04
  15  Prefactor     26.080        306.74        .55784E-05    .68161E-05
  16  norm          460.97        170.98       -.13734E-05   -.25140E-04
  17  Prefactor     .10000E-03    51.863       -.19471E-05** at limit **
  18  Prefactor     .10000E-03    16.031       -.13662E-07** at limit **
  19  Prefactor     35.148        24.376       -.33641E-06   -.15243E-04
  20  Prefactor     37.463        25.398       -.14508E-07    .43931E-05
  21  norm          1.3301        1.0953        .12602E-07   -.10414E-04
  22  Prefactor     .10000E-03    2.2898        .63660E-08** at limit **
  23  Prefactor     .10000E-03    2.4440        .14655E-07** at limit **
  24  Normalizat    1.4480        .22461        .55378E-06   -.68449E-04
  25  Prefactor     .82311        .14025       -.81237E-06    .36305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.8406
  norm       = 0.0001
  norm       = 4.58724
  norm       = 12.3299
  Prefactor  = 0.000100109
  norm       = 1.42063
  Prefactor  = 0.000100001
  Prefactor  = 14.6294
  Prefactor  = 29.9091
  Prefactor  = 0.671945
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.8151
  Prefactor  = 26.0805
  norm       = 460.973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.1484
  Prefactor  = 37.4632
  norm       = 1.33007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.44801
  Prefactor  = 0.823105
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.894     FROM HESSE     STATUS=OK           423 CALLS     3733 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.841        9.8963        .10064E-03   -1.4912    
   3  norm          .10000E-03    8.8835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.5872        1.7518        .65815E-04   -1.5280    
   5  norm          12.330        2.7910        .64084E-04   -1.5006    
   6  Prefactor     .10011E-03    55.970        .45739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4206        3.8777        .25456E-03   -1.5470    
   8  Prefactor     .10000E-03    144.92        .36289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.629        15.160        .10473E-03   -1.4943    
  10  Prefactor     29.909        45.664        .73194E-04   -1.4614    
  11  Prefactor     .67195        4.4818        .31599E-03   -1.5544    
  12  Prefactor     .10000E-03    20.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.4199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.815        12.332        .94900E-04   -1.4864    
  15  Prefactor     26.080        309.81        .78580E-04   -1.4686    
  16  norm          460.97        171.23        .95374E-04   -1.1380    
  17  Prefactor     .10000E-03    52.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.148        24.575        .67600E-04   -1.4522    
  20  Prefactor     37.463        25.381        .65477E-04   -1.4483    
  21  norm          1.3301        1.0940        .74706E-04   -1.5477    
  22  Prefactor     .10000E-03    2.2924        .12505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4471        .12920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4480        .25940        .28968E-03   -.79250    
  25  Prefactor     .82311        .16179        .24787E-03   -.98882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3544e-09
Minuit parameter uncertainties:
  1  1.72505e-05
  2  9.8973
  3  1.10821e-06
  4  1.7518
  5  2.79102
  6  0.0049365
  7  3.87837
  8  0.000556928
  9  15.164
  10  45.7177
  11  3.47086
  12  2.77257e-05
  13  2.45906e-06
  14  12.3335
  15  180.96
  16  171.416
  17  0.000114682
  18  7.80477e-07
  19  24.5819
  20  25.388
  21  1.09406
  22  2.25449e-07
  23  1.79315e-07
  24  0.259641
  25  0.161879
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  2.991e+01  4.572e+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.231e-01  1.619e-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.448e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/932866/likelihoodResults_364521601_364780801_4FGL_J0749.9+1823_daily_bin483.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): 0
logL (Free Index) = 7160.72589103
delta logL = 0.167952822986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7160.61623434
delta logL = 0.277609508761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22825E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.0735       1.0000          .0000       10.000    
     3 'Normalizat'    1.4038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84847       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=   7160.616     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      383 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23157E-01    .40026        .30630E-02   -.14720E-01
   2  Index         7.0645        3.0452        .16447       -.14857E-03
   3  Normalizat    1.4052        .42816E-01    .66301E-01   -.25350E-03
   4  Prefactor     .84768        .28745E-01    .44345E-01    .10373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0231567
  Index      = 7.06446
  Normalizat = 1.40522
  Prefactor  = 0.847676
 **********
 **   18 **HESSE 
 **********

 FCN=   7160.616     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      416 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23157E-01    1.3870        .14290E-03   -1.5678    
   2  Index         7.0645        8.4709        .82723E-02    .42563    
   3  Normalizat    1.4052        .16914        .29329E-03   -.80478    
   4  Prefactor     .84768        .11145        .24491E-03   -.97994    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15197e-09
Minuit parameter uncertainties:
  1  0.357665
  2  8.08084
  3  0.169206
  4  0.111483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932866': 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) = 7160.61621609
delta logL = 0.277627755983

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  2.316e-02  3.577e-01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  7.064e+00  8.081e+00  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.477e-01  1.115e-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.405e+00  1.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 117.485 18.387
Photon Index (Free Index): 7.06 +/- 8.08
Photon Flux (Free Index): 5.75e-08 +/- 6.37e-08
Energy Flux (Free Index): 6.86e-06 +/- 8.55e-06

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/932866/cmap_HighResolution_364521601_364780801_4FGL_J0749.9+1823_daily_bin483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', energy_flux2='6.86e-06', dlogl='2.78e-01', photon_flux2='5.75e-08', job_status='DONE', time_completed='2021-08-28 15:56:34.319879', photon_index_error2='8.08', photon_index2='7.06', ts='0.54', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='8.55e-06', EG='1.45', time_epoch_completed='1630191394.32', return_code='0', job_id='932866', GAL2='0.85', EG2='1.41', return_code2='102', photon_flux_error2='6.37e-08', ts2='1.15', photon_index='2.52' WHERE bin_id='483' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:56:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 932866: <4FGL_J0749.9+1823_daily_bin483> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin483 117.485 18.387 364521601 364780801 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 :                                   817.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

