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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin815
RA = 117.485, Dec = 18.387
tmin = 450576001, tmax = 450835201
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='934640', job_status='RUN', time_executed='2021-08-28 15:48:22.211415', time_epoch_executed='1630190902.21' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='815'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934640

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934640/ft1_4FGL_J0749.9+1823_daily_bin815.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934640/ft2_4FGL_J0749.9+1823_daily_bin815.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934640/ft1_4FGL_J0749.9+1823_daily_bin815.fits outfile=/scratch/kocevski/934640/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin815.fits ra=117.485 dec=18.387 rad=12.0 tmin=450576001.0 tmax=450835201.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.08
user 3.31
sys 0.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934640/ft1_filtered_4FGL_J0749.9+1823_daily_bin815.fits" evtable="EVENTS" scfile=/scratch/kocevski/934640/ft2_4FGL_J0749.9+1823_daily_bin815.fits sctable="SC_DATA" outfile=/scratch/kocevski/934640/ltcube_450576001_450835201_4FGL_J0749.9+1823_daily_bin815.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/934640/ft2_4FGL_J0749.9+1823_daily_bin815.fits
.....................!
real 12.56
user 11.56
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934640/ft1_filtered_4FGL_J0749.9+1823_daily_bin815.fits evtable="EVENTS" scfile=/scratch/kocevski/934640/ft2_4FGL_J0749.9+1823_daily_bin815.fits sctable="SC_DATA" expcube=/scratch/kocevski/934640/ltcube_450576001_450835201_4FGL_J0749.9+1823_daily_bin815.fits outfile=/scratch/kocevski/934640/expmap_450576001_450835201_4FGL_J0749.9+1823_daily_bin815.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/934640/ltcube_450576001_450835201_4FGL_J0749.9+1823_daily_bin815.fits
.....................!
real 192.00
user 186.06
sys 5.55

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/934640/ft1_filtered_4FGL_J0749.9+1823_daily_bin815.fits scfile=/scratch/kocevski/934640/ft2_4FGL_J0749.9+1823_daily_bin815.fits outfile=/scratch/kocevski/934640/cmap_450576001_450835201_4FGL_J0749.9+1823_daily_bin815.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.06
user 0.37
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934640/ft1_filtered_4FGL_J0749.9+1823_daily_bin815.fits scfile=/scratch/kocevski/934640/ft2_4FGL_J0749.9+1823_daily_bin815.fits outfile=/scratch/kocevski/934640/cmap_HighResolution_450576001_450835201_4FGL_J0749.9+1823_daily_bin815.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.07
user 0.38
sys 0.68

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.549       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9927       1.0000         .10000E-03   10000.    
     3 'norm      '    .18628E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .20554E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3171       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8449       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9915       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.975       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    99.900       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11369E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1046       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4503       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66562       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2064       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=   7058.949     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2978 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.549        39.830       -.18155E-06   -.36481E-04
   2  Prefactor     2.9911        10.317        .15961E-07   -.11579E-03
   3  norm          .10006E-03    8.2724        .11387E-05** at limit **
   4  norm          .10000E-03    .69361       -.61566E-07** at limit **
   5  norm          .10001E-03    .76756       -.52475E-06** at limit **
   6  Prefactor     5.3230        6.9713        .21921E-05   -.10300E-02
   7  norm          4.8448        4.6479       -.49398E-07   -.14512E-03
   8  Prefactor     .10000E-03    21.570       -.80262E-06** at limit **
   9  Prefactor     .10000E-03    5.6600       -.97483E-08** at limit **
  10  Prefactor     .10000E-03    31.309       -.18691E-05** at limit **
  11  Prefactor     4.9914        3.5132       -.31078E-07   -.10611E-03
  12  Prefactor     .10000E-03    11.074        .10686E-06** at limit **
  13  norm          .10000E-03    14.721        .58148E-06** at limit **
  14  Prefactor     17.978        13.898        .17769E-06   -.81109E-05
  15  Prefactor     .10000E-03    28.516        .73090E-05** at limit **
  16  norm          99.914        88.870        .74047E-05    .11579E-03
  17  Prefactor     .10000E-03    33.602       -.84923E-05** at limit **
  18  Prefactor     .10000E-03    15.133       -.24608E-06** at limit **
  19  Prefactor     .10000E-03    3.8225       -.27349E-07** at limit **
  20  Prefactor     .10001E-03    17.284        .54217E-06** at limit **
  21  norm          .10000E-03    .88429        .11142E-06** at limit **
  22  Prefactor     1.0897        18.243       -.33577E-05   -.26697E-03
  23  Prefactor     1.4479        15.355       -.92951E-06   -.13475E-03
  24  Normalizat    .66540        .20588       -.13275E-07   -.21185E-04
  25  Prefactor     1.2067        .13392       -.27854E-06    .16213E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5489
  Prefactor  = 2.99106
  norm       = 0.000100059
  norm       = 0.0001
  norm       = 0.000100011
  Prefactor  = 5.32299
  norm       = 4.84476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.9914
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.978
  Prefactor  = 0.000100002
  norm       = 99.9144
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 1.08971
  Prefactor  = 1.44791
  Normalizat = 0.665404
  Prefactor  = 1.20665
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.949     FROM HESSE     STATUS=OK           441 CALLS     3419 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.549        39.733        .72491E-04   -1.4602    
   2  Prefactor     2.9911        10.288        .23466E-03   -1.5362    
   3  norm          .10006E-03    41.761        .45158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.2024        .13399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    25.920        .13135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3230        10.161        .87148E-03   -1.5246    
   7  norm          4.8448        4.6657        .16512E-03   -1.5268    
   8  Prefactor     .10000E-03    21.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9914        3.5049        .12245E-03   -1.5261    
  12  Prefactor     .10000E-03    11.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    14.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.978        13.862        .94468E-04   -1.4860    
  15  Prefactor     .10000E-03    28.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          99.914        89.033        .40222E-04   -1.3705    
  17  Prefactor     .10000E-03    33.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8255        .16042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    19.153        .96662E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4894        .14263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0897        19.350        .45101E-03   -1.5499    
  23  Prefactor     1.4479        15.623        .35776E-03   -1.5467    
  24  Normalizat    .66540        .23469        .35204E-03   -1.0527    
  25  Prefactor     1.2067        .15086        .18557E-03   -.86127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33456e-09
Minuit parameter uncertainties:
  1  39.7675
  2  10.2939
  3  0.00315435
  4  1.58014e-07
  5  0.00106945
  6  10.1646
  7  4.66603
  8  4.10422e-05
  9  7.3401e-07
  10  0.000155765
  11  3.50509
  12  5.44929e-06
  13  1.97143e-05
  14  13.8642
  15  0.000485181
  16  89.1521
  17  0.000585703
  18  8.28067e-06
  19  7.45719e-07
  20  0.000688331
  21  2.37772e-05
  22  9.18682
  23  9.51518
  24  0.235049
  25  0.150914
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.558e-04  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.207e+00  1.509e-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:  6.654e-01  2.350e-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: 8.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934640/likelihoodResults_450576001_450835201_4FGL_J0749.9+1823_daily_bin815.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) = 7058.94938815
delta logL = -0.000151487204676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7058.94923799
delta logL = -1.32467903313e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8960       1.0000          .0000       10.000    
     3 'Normalizat'    .66540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2067       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=   7058.949     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      278 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11135E-03    18.404        .18142E-01** at limit **
   2  Index         2.7284        8.3510        .50000        .17036E-04
   3  Normalizat    .66541        .42660E-02    .35204E-03    .68204E-04
   4  Prefactor     1.2066        .29689E-02    .18557E-03   -.32579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111353
  Index      = 2.72843
  Normalizat = 0.665409
  Prefactor  = 1.20665
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.949     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11135E-03    115.89        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7284        5.2968        .50000       -.47160    
   3  Normalizat    .66541        .10699E-01    .14082E-04   -1.0527    
   4  Prefactor     1.2066        .74456E-02    .37115E-04   -.86127    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2001e-08
Minuit parameter uncertainties:
  1  0.0726847
  2  391.236
  3  0.0106986
  4  0.00744561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934640': 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) = 7058.9492375
delta logL = -8.34279489936e-07

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.114e-04  7.268e-02  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.728e+00  3.912e+02  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  7.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.207e+00  7.446e-03  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  6.654e-01  1.070e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/934640/cmap_HighResolution_450576001_450835201_4FGL_J0749.9+1823_daily_bin815.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.34e-08', time_completed='2021-08-28 16:00:50.675928', job_id='934640', GAL2='1.21', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1630191650.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-8.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='815' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:00:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 934640: <4FGL_J0749.9+1823_daily_bin815> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin815 117.485 18.387 450576001 450835201 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 :                                   754.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

