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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin306
RA = 117.485, Dec = 18.387
tmin = 318643201, tmax = 318902401
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='931289', job_status='RUN', time_executed='2021-08-28 15:39:56.020916', time_epoch_executed='1630190396.02' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931289/ft1_4FGL_J0749.9+1823_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931289/ft2_4FGL_J0749.9+1823_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931289/ft1_4FGL_J0749.9+1823_daily_bin306.fits outfile=/scratch/kocevski/931289/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin306.fits ra=117.485 dec=18.387 rad=12.0 tmin=318643201.0 tmax=318902401.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.38
user 3.15
sys 1.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931289/ft1_filtered_4FGL_J0749.9+1823_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/931289/ft2_4FGL_J0749.9+1823_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/931289/ltcube_318643201_318902401_4FGL_J0749.9+1823_daily_bin306.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/931289/ft2_4FGL_J0749.9+1823_daily_bin306.fits
.....................!
real 14.61
user 13.06
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931289/ft1_filtered_4FGL_J0749.9+1823_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/931289/ft2_4FGL_J0749.9+1823_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/931289/ltcube_318643201_318902401_4FGL_J0749.9+1823_daily_bin306.fits outfile=/scratch/kocevski/931289/expmap_318643201_318902401_4FGL_J0749.9+1823_daily_bin306.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/931289/ltcube_318643201_318902401_4FGL_J0749.9+1823_daily_bin306.fits
.....................!
real 191.76
user 185.28
sys 6.05

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/931289/ft1_filtered_4FGL_J0749.9+1823_daily_bin306.fits scfile=/scratch/kocevski/931289/ft2_4FGL_J0749.9+1823_daily_bin306.fits outfile=/scratch/kocevski/931289/cmap_318643201_318902401_4FGL_J0749.9+1823_daily_bin306.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.41
user 0.38
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931289/ft1_filtered_4FGL_J0749.9+1823_daily_bin306.fits scfile=/scratch/kocevski/931289/ft2_4FGL_J0749.9+1823_daily_bin306.fits outfile=/scratch/kocevski/931289/cmap_HighResolution_318643201_318902401_4FGL_J0749.9+1823_daily_bin306.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.41
user 0.36
sys 1.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.159       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1427       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1365       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.132       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.422       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3297       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.2522       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.663       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.007       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1677       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9210       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2996       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89330       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95334       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=   6516.969     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2501 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.692       -.23349E-06** at limit **
   2  Prefactor     .10000E-03    3.4566       -.32169E-07** at limit **
   3  norm          10.158        9.3309        .46629E-06    .78350E-05
   4  norm          6.1426        1.5952        .55879E-08    .45922E-04
   5  norm          .10000E-03    .69255       -.30788E-07** at limit **
   6  Prefactor     9.1364        8.1543        .38396E-06    .51776E-04
   7  norm          .10000E-03    1.6371       -.49420E-07** at limit **
   8  Prefactor     .10000E-03    14.489       -.34413E-06** at limit **
   9  Prefactor     10.134        15.486        .35037E-06    .13795E-04
  10  Prefactor     15.443        43.298       -.35383E-05    .51515E-05
  11  Prefactor     3.3300        3.3790        .96485E-07    .23291E-04
  12  Prefactor     .10000E-03    13.873        .45710E-06** at limit **
  13  norm          9.2523        12.123        .28856E-08    .51449E-06
  14  Prefactor     37.664        17.154       -.46155E-07    .55000E-05
  15  Prefactor     .10000E-03    68.634        .49780E-06** at limit **
  16  norm          26.036        54.815       -.50862E-05    .62692E-05
  17  Prefactor     .10000E-03    31.683        .16029E-05** at limit **
  18  Prefactor     .10000E-03    25.613       -.91452E-06** at limit **
  19  Prefactor     2.1688        20.604        .90310E-05   -.67691E-06
  20  Prefactor     .10000E-03    44.338       -.16169E-05** at limit **
  21  norm          2.9211        1.5364        .10072E-06    .37659E-03
  22  Prefactor     .10000E-03    10.161       -.96154E-07** at limit **
  23  Prefactor     7.2999        7.1113        .42552E-07    .84588E-05
  24  Normalizat    .89311        .19182       -.10521E-05    .27848E-04
  25  Prefactor     .95345        .12488        .48455E-06    .48216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1584
  norm       = 6.14264
  norm       = 0.0001
  Prefactor  = 9.1364
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.134
  Prefactor  = 15.443
  Prefactor  = 3.32997
  Prefactor  = 0.0001
  norm       = 9.25228
  Prefactor  = 37.6636
  Prefactor  = 0.0001
  norm       = 26.0356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1688
  Prefactor  = 0.0001
  norm       = 2.92114
  Prefactor  = 0.0001
  Prefactor  = 7.29991
  Normalizat = 0.893109
  Prefactor  = 0.953455
 **********
 **   18 **HESSE 
 **********

 FCN=   6516.969     FROM HESSE     STATUS=OK           429 CALLS     2930 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4682        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.158        9.3438        .62858E-03   -1.5070    
   4  norm          6.1426        1.5958        .49967E-04   -1.5212    
   5  norm          .10000E-03    .69687        .65064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.1364        8.0860        .13259E-03   -1.5103    
   7  norm          .10000E-03    1.6516        .10061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.134        15.505        .12588E-03   -1.5071    
  10  Prefactor     15.443        43.421        .10199E-03   -1.4922    
  11  Prefactor     3.3300        3.3657        .14055E-03   -1.5343    
  12  Prefactor     .10000E-03    13.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.2523        12.119        .13176E-03   -1.5100    
  14  Prefactor     37.664        17.169        .65308E-04   -1.4480    
  15  Prefactor     .10000E-03    68.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.036        54.788        .78552E-04   -1.4687    
  17  Prefactor     .10000E-03    31.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1688        20.621        .13986E-02   -1.5413    
  20  Prefactor     .10000E-03    44.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9211        1.5340        .69129E-04   -1.5366    
  22  Prefactor     .10000E-03    10.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.2999        7.1148        .14846E-03   -1.5168    
  24  Normalizat    .89311        .22094        .29807E-03   -.96703    
  25  Prefactor     .95345        .14443        .20063E-03   -.94297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86725e-10
Minuit parameter uncertainties:
  1  3.20329e-06
  2  3.22098e-06
  3  9.34515
  4  1.59585
  5  1.51102e-06
  6  8.08696
  7  2.60144e-06
  8  7.34692e-06
  9  15.5116
  10  43.5104
  11  3.3659
  12  8.56525e-06
  13  12.1224
  14  17.1713
  15  9.9661e-06
  16  54.8946
  17  5.37579e-05
  18  1.07922e-05
  19  13.3807
  20  4.8208e-06
  21  1.53406
  22  1.42055e-05
  23  7.11559
  24  0.221166
  25  0.144489
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.544e+01  4.351e+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:  9.535e-01  1.445e-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:  8.931e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931289/likelihoodResults_318643201_318902401_4FGL_J0749.9+1823_daily_bin306.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) = 6516.57500388
delta logL = 0.394478827064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6516.54678811
delta logL = 0.422694595691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8334       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8897       1.0000          .0000       10.000    
     3 'Normalizat'    .84957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97147       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6516.547     FROM MIGRAD    STATUS=FAILED       105 CALLS      372 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8221        331.07        .83140E-03   -.38916E-04
   2  Index         3.8914        6.7229        .76982E-02    .53093E-03
   3  Normalizat    .84975        .17941        .30469E-03   -.13544E-04
   4  Prefactor     .97118        .12368        .19896E-03    .18170E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6516.547     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      462 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8221        331.07        .26826E-03   -.38916E-04
   2  Index         3.8914        6.7229        .12407E-02    .53093E-03
   3  Normalizat    .84975        .17941        .16646E-03   -.13544E-04
   4  Prefactor     .97118        .12368        .82591E-04    .18170E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6516.547     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      496 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8221        22.009        .33256E-04   -.50594E-04
   2  Index         3.8914        2.0854        .15396E-02   -.11453E-04
   3  Normalizat    .84975        .21092        .12188E-04   -.13619E-04
   4  Prefactor     .97118        .14344        .79586E-05    .17999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.82212
  Index      = 3.89136
  Normalizat = 0.849746
  Prefactor  = 0.97118
 **********
 **   18 **HESSE 
 **********

 FCN=   6516.547     FROM HESSE     STATUS=OK            23 CALLS      519 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8221        18.636        .13302E-05   -1.5225    
   2  Index         3.8914        1.7813        .61586E-04   -.22359    
   3  Normalizat    .84975        .21086        .24375E-05   -.98249    
   4  Prefactor     .97118        .14338        .15917E-05   -.93696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81942e-12
Minuit parameter uncertainties:
  1  18.6542
  2  1.82348
  3  0.211068
  4  0.143436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931289': 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) = 6516.54678384
delta logL = 0.422698862397

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  5.822e+00  1.865e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  3.891e+00  1.823e+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:  9.712e-01  1.434e-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:  8.497e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 117.485 18.387
Photon Index (Free Index): 3.89 +/- 1.82
Photon Flux (Free Index): 5.07e-08 +/- 5.61e-08
Energy Flux (Free Index): 7.74e-06 +/- 8.88e-06

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/931289/cmap_HighResolution_318643201_318902401_4FGL_J0749.9+1823_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.86e-03', comment='SUCCESS', energy_flux2='7.74e-06', dlogl='4.23e-01', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-08-28 15:51:55.940860', photon_index_error2='1.82', photon_index2='3.89', ts='0.15', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='8.88e-06', EG='0.89', time_epoch_completed='1630191115.94', return_code='0', job_id='931289', GAL2='0.97', EG2='0.85', return_code2='0', photon_flux_error2='5.61e-08', ts2='1.06', photon_index='2.52' WHERE bin_id='306' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 931289: <4FGL_J0749.9+1823_daily_bin306> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin306 117.485 18.387 318643201 318902401 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 :                                   717.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             212.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

