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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin1349
RA = 117.485, Dec = 18.387
tmin = 588988801, tmax = 589248001
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='939171', job_status='RUN', time_executed='2021-08-28 15:56:11.021752', time_epoch_executed='1630191371.02' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/939171

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/939171/ft1_4FGL_J0749.9+1823_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/939171/ft2_4FGL_J0749.9+1823_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/939171/ft1_4FGL_J0749.9+1823_daily_bin1349.fits outfile=/scratch/kocevski/939171/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin1349.fits ra=117.485 dec=18.387 rad=12.0 tmin=588988801.0 tmax=589248001.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 4.55
user 2.87
sys 1.64

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/939171/ft1_filtered_4FGL_J0749.9+1823_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/939171/ft2_4FGL_J0749.9+1823_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/939171/ltcube_588988801_589248001_4FGL_J0749.9+1823_daily_bin1349.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/939171/ft2_4FGL_J0749.9+1823_daily_bin1349.fits
.....................!
real 16.09
user 14.13
sys 1.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/939171/ft1_filtered_4FGL_J0749.9+1823_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/939171/ft2_4FGL_J0749.9+1823_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/939171/ltcube_588988801_589248001_4FGL_J0749.9+1823_daily_bin1349.fits outfile=/scratch/kocevski/939171/expmap_588988801_589248001_4FGL_J0749.9+1823_daily_bin1349.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/939171/ltcube_588988801_589248001_4FGL_J0749.9+1823_daily_bin1349.fits
.....................!
real 194.66
user 187.64
sys 6.58

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/939171/ft1_filtered_4FGL_J0749.9+1823_daily_bin1349.fits scfile=/scratch/kocevski/939171/ft2_4FGL_J0749.9+1823_daily_bin1349.fits outfile=/scratch/kocevski/939171/cmap_588988801_589248001_4FGL_J0749.9+1823_daily_bin1349.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.99
user 0.40
sys 1.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/939171/ft1_filtered_4FGL_J0749.9+1823_daily_bin1349.fits scfile=/scratch/kocevski/939171/ft2_4FGL_J0749.9+1823_daily_bin1349.fits outfile=/scratch/kocevski/939171/cmap_HighResolution_588988801_589248001_4FGL_J0749.9+1823_daily_bin1349.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 2.02
user 0.38
sys 1.53

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.031       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9453       1.0000         .10000E-03   10000.    
     3 'norm      '    10.176       1.0000         .10000E-03   10000.    
     4 'norm      '    .10384E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3518       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.480       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4813       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10473E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15722       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11151E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.679       1.0000         .10000E-03   10000.    
    21 'norm      '    .11612E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.388       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1148       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79098       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=   6112.855     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2950 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.025        27.944        .86461E-07    .37963E-04
   2  Prefactor     9.9450        8.6872        .87787E-06    .26281E-03
   3  norm          10.174        10.397       -.29191E-07    .33505E-04
   4  norm          .10000E-03    .61636       -.23323E-07** at limit **
   5  norm          .10000E-03    .97246       -.59990E-06** at limit **
   6  Prefactor     5.3409        9.0363        .16006E-05    .55430E-03
   7  norm          5.6852        5.1650        .23097E-06    .91767E-04
   8  Prefactor     58.466        47.613       -.18809E-06   -.42015E-04
   9  Prefactor     .10000E-03    19.551       -.90628E-07** at limit **
  10  Prefactor     .10000E-03    68.039       -.25323E-06** at limit **
  11  Prefactor     8.4821        4.1568        .12445E-06    .46992E-03
  12  Prefactor     .10000E-03    19.715       -.96541E-07** at limit **
  13  norm          .11714        15.570       -.34056E-05    .57167E-03
  14  Prefactor     .10000E-03    44.263        .31584E-07** at limit **
  15  Prefactor     .10000E-03    69.054        .35146E-06** at limit **
  16  norm          .10000E-03    28.609       -.30060E-07** at limit **
  17  Prefactor     .10000E-03    16.472        .11119E-06** at limit **
  18  Prefactor     .10000E-03    64.496       -.14891E-06** at limit **
  19  Prefactor     .10000E-03    13.810       -.46561E-07** at limit **
  20  Prefactor     36.632        30.975        .37326E-07    .78047E-04
  21  norm          .10000E-03    1.0272        .11951E-05** at limit **
  22  Prefactor     .10000E-03    4.7886        .16276E-06** at limit **
  23  Prefactor     17.387        15.323        .84071E-07   -.11716E-04
  24  Normalizat    1.1149        .20672       -.13845E-05    .25097E-03
  25  Prefactor     .79094        .12280        .67565E-06    .27411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.0246
  Prefactor  = 9.94499
  norm       = 10.1745
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.34091
  norm       = 5.68518
  Prefactor  = 58.4658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.48213
  Prefactor  = 0.0001
  norm       = 0.11714
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 36.632
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3866
  Normalizat = 1.11492
  Prefactor  = 0.790938
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.855     FROM HESSE     STATUS=OK           429 CALLS     3379 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.025        27.952        .75669E-04   -1.4649    
   2  Prefactor     9.9450        8.6294        .63532E-03   -1.5077    
   3  norm          10.174        10.398        .12561E-03   -1.5070    
   4  norm          .10000E-03    2.2038        .11862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.8131        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3409        8.9123        .17372E-03   -1.5246    
   7  norm          5.6852        5.1450        .14645E-03   -1.5231    
   8  Prefactor     58.466        47.661        .52462E-04   -1.4177    
   9  Prefactor     .10000E-03    19.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    68.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.4821        4.1689        .10423E-03   -1.5125    
  12  Prefactor     .10000E-03    19.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11714        21.097        .89794E-01   -1.5640    
  14  Prefactor     .10000E-03    45.650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    69.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    64.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.632        30.891        .66174E-04   -1.4497    
  21  norm          .10000E-03    .98843        .14822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7909        .16707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.387        15.349        .96049E-04   -1.4874    
  24  Normalizat    1.1149        .23869        .27830E-03   -.89274    
  25  Prefactor     .79094        .14119        .20468E-03   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92056e-09
Minuit parameter uncertainties:
  1  27.965
  2  8.63048
  3  10.4001
  4  4.30651e-06
  5  2.2826e-05
  6  8.91456
  7  5.14544
  8  47.6923
  9  2.0536e-05
  10  6.08884e-06
  11  4.16906
  12  8.0495e-06
  13  3.14385
  14  0.000484
  15  0.000310029
  16  1.68263e-05
  17  1.09894e-05
  18  0.000488081
  19  2.96484e-06
  20  30.9045
  21  2.44726e-05
  22  8.12304e-06
  23  15.352
  24  0.238926
  25  0.141257
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  6.089e-06  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:  7.909e-01  1.413e-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.115e+00  2.389e-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: 9.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/939171/likelihoodResults_588988801_589248001_4FGL_J0749.9+1823_daily_bin1349.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) = 6112.85492084
delta logL = -6.9430118856e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6112.85485195
delta logL = -5.37161213288e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8945       1.0000          .0000       10.000    
     3 'Normalizat'    1.1149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79094       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=   6112.855     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      281 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11027E-03    39.376        .18142E-01** at limit **
   2  Index         2.7230        7.8649        .50000        .60640E-05
   3  Normalizat    1.1149        .44079E-02    .27830E-03   -.15821E-03
   4  Prefactor     .79094        .27941E-02    .20468E-03   -.91868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110271
  Index      = 2.723
  Normalizat = 1.11492
  Prefactor  = 0.790938
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.855     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11027E-03    1415.7        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7230        6.3602        .50000       -.47282    
   3  Normalizat    1.1149        .27389E-01    .11132E-04   -.89274    
   4  Prefactor     .79094        .17362E-01    .81873E-05   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.60891e-08
Minuit parameter uncertainties:
  1  0.247247
  2  1487.11
  3  0.0273896
  4  0.017362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/939171': 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) = 6112.8548517
delta logL = -2.81629581877e-07

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.103e-04  2.472e-01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.723e+00  1.487e+03  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:  7.909e-01  1.736e-02  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.115e+00  2.739e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/939171/cmap_HighResolution_588988801_589248001_4FGL_J0749.9+1823_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', job_status='DONE', photon_flux_upper_limit='9.91e-08', time_completed='2021-08-28 16:08:12.989296', job_id='939171', GAL2='0.79', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630192092.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-2.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1349' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:08:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 939171: <4FGL_J0749.9+1823_daily_bin1349> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin1349> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Aug 28 15:55:35 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:55:36 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:55:36 2021
Terminated at Sat Aug 28 16:08:13 2021
Results reported at Sat Aug 28 16:08:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin1349 117.485 18.387 588988801 589248001 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 :                                   733.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            758 sec.

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

