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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin577
RA = 117.485, Dec = 18.387
tmin = 388886401, tmax = 389145601
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='933092', job_status='RUN', time_executed='2021-08-28 15:42:57.813049', time_epoch_executed='1630190577.81' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933092/ft1_4FGL_J0749.9+1823_daily_bin577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933092/ft2_4FGL_J0749.9+1823_daily_bin577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933092/ft1_4FGL_J0749.9+1823_daily_bin577.fits outfile=/scratch/kocevski/933092/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin577.fits ra=117.485 dec=18.387 rad=12.0 tmin=388886401.0 tmax=389145601.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.60
user 3.27
sys 1.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933092/ft1_filtered_4FGL_J0749.9+1823_daily_bin577.fits" evtable="EVENTS" scfile=/scratch/kocevski/933092/ft2_4FGL_J0749.9+1823_daily_bin577.fits sctable="SC_DATA" outfile=/scratch/kocevski/933092/ltcube_388886401_389145601_4FGL_J0749.9+1823_daily_bin577.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/933092/ft2_4FGL_J0749.9+1823_daily_bin577.fits
.....................!
real 13.09
user 11.45
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933092/ft1_filtered_4FGL_J0749.9+1823_daily_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/933092/ft2_4FGL_J0749.9+1823_daily_bin577.fits sctable="SC_DATA" expcube=/scratch/kocevski/933092/ltcube_388886401_389145601_4FGL_J0749.9+1823_daily_bin577.fits outfile=/scratch/kocevski/933092/expmap_388886401_389145601_4FGL_J0749.9+1823_daily_bin577.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/933092/ltcube_388886401_389145601_4FGL_J0749.9+1823_daily_bin577.fits
.....................!
real 191.41
user 185.62
sys 5.40

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/933092/ft1_filtered_4FGL_J0749.9+1823_daily_bin577.fits scfile=/scratch/kocevski/933092/ft2_4FGL_J0749.9+1823_daily_bin577.fits outfile=/scratch/kocevski/933092/cmap_388886401_389145601_4FGL_J0749.9+1823_daily_bin577.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.65
user 0.38
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933092/ft1_filtered_4FGL_J0749.9+1823_daily_bin577.fits scfile=/scratch/kocevski/933092/ft2_4FGL_J0749.9+1823_daily_bin577.fits outfile=/scratch/kocevski/933092/cmap_HighResolution_388886401_389145601_4FGL_J0749.9+1823_daily_bin577.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.68
user 0.39
sys 1.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.701       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.187       1.0000         .10000E-03   10000.    
     3 'norm      '    10.520       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0610       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6674       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7278       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.840       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.898       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.955       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.877       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9085       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.564       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2876       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99810       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0080       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=   6970.449     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2924 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.697        29.495       -.10515E-06   -.84601E-05
   2  Prefactor     12.186        8.7586        .24518E-06    .22815E-03
   3  norm          10.520        9.4707        .18931E-06    .12816E-03
   4  norm          1.0609        .90253       -.19750E-07   -.31453E-03
   5  norm          1.6672        1.9315        .36868E-07   -.63651E-03
   6  Prefactor     6.7343        12.612        .71798E-07   -.65922E-03
   7  norm          3.6152        3.9776        .32733E-07    .53975E-04
   8  Prefactor     37.821        36.411        .12321E-06    .41691E-04
   9  Prefactor     .10000E-03    7.9057       -.13207E-05** at limit **
  10  Prefactor     .10003E-03    271.43        .14656E-05** at limit **
  11  Prefactor     .72733        2.6301       -.48732E-06   -.27772E-03
  12  Prefactor     .10000E-03    23.371       -.33226E-06** at limit **
  13  norm          .10000E-03    14.825        .11105E-05** at limit **
  14  Prefactor     13.895        13.229        .20304E-05    .52398E-03
  15  Prefactor     .10002E-03    216.03       -.58193E-05** at limit **
  16  norm          .10000E-03    22.378        .40588E-07** at limit **
  17  Prefactor     .10000E-03    6.7739       -.17620E-07** at limit **
  18  Prefactor     .10000E-03    22.945        .13810E-06** at limit **
  19  Prefactor     39.953        20.208        .51352E-08    .22711E-04
  20  Prefactor     16.876        14.695       -.42611E-08   -.64849E-05
  21  norm          1.9084        1.2806       -.35113E-08   -.40525E-04
  22  Prefactor     13.563        10.419       -.18170E-06   -.17080E-04
  23  Prefactor     1.2871        6.5278        .51193E-05   -.29011E-03
  24  Normalizat    .99826        .20254       -.35875E-06   -.14969E-03
  25  Prefactor     1.0080        .13139        .39936E-06    .12183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6974
  Prefactor  = 12.1863
  norm       = 10.5201
  norm       = 1.0609
  norm       = 1.66715
  Prefactor  = 6.73433
  norm       = 3.61524
  Prefactor  = 37.8211
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.727332
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8946
  Prefactor  = 0.000100023
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.9527
  Prefactor  = 16.8756
  norm       = 1.90842
  Prefactor  = 13.5629
  Prefactor  = 1.28713
  Normalizat = 0.998261
  Prefactor  = 1.00796
 **********
 **   18 **HESSE 
 **********

 FCN=   6970.449     FROM HESSE     STATUS=OK           439 CALLS     3363 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.697        29.509        .95197E-04   -1.4866    
   2  Prefactor     12.186        8.7747        .11475E-03   -1.5010    
   3  norm          10.520        9.4872        .12353E-03   -1.5059    
   4  norm          1.0609        .91002        .70481E-04   -1.5502    
   5  norm          1.6672        1.9862        .88191E-04   -1.5450    
   6  Prefactor     6.7343        13.055        .15470E-03   -1.5189    
   7  norm          3.6152        3.9045        .15299E-03   -1.5328    
   8  Prefactor     37.821        36.344        .65154E-04   -1.4477    
   9  Prefactor     .10000E-03    42.933        .43902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    272.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .72733        3.9637        .23169E-02   -1.5537    
  12  Prefactor     .10000E-03    23.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    61.862        .54735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.895        13.395        .10744E-03   -1.4962    
  15  Prefactor     .10002E-03    219.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.953        20.263        .63413E-04   -1.4443    
  20  Prefactor     16.876        14.698        .97493E-04   -1.4886    
  21  norm          1.9084        1.2720        .72395E-04   -1.5432    
  22  Prefactor     13.563        10.425        .10876E-03   -1.4971    
  23  Prefactor     1.2871        6.8883        .19527E-02   -1.5481    
  24  Normalizat    .99826        .23373        .29674E-03   -.93089    
  25  Prefactor     1.0080        .15354        .20705E-03   -.92465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46432e-08
Minuit parameter uncertainties:
  1  29.533
  2  8.77564
  3  9.48853
  4  0.910028
  5  1.98627
  6  13.0601
  7  3.90474
  8  36.3653
  9  7.64702e-05
  10  0.00588938
  11  3.39596
  12  0.000100827
  13  3.2774e-05
  14  13.3983
  15  0.00454228
  16  9.5883e-06
  17  2.46241e-06
  18  3.75117e-05
  19  20.2667
  20  14.7013
  21  1.272
  22  10.4264
  23  5.95605
  24  0.233968
  25  0.153602
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  5.889e-03  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.008e+00  1.536e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  9.983e-01  2.340e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933092/likelihoodResults_388886401_389145601_4FGL_J0749.9+1823_daily_bin577.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) = 6970.44926879
delta logL = -1.73560192707e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6970.41258989
delta logL = 0.0366615497242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9569       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2832       1.0000          .0000       10.000    
     3 'Normalizat'    .98310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0130       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=   6970.413     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      435 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9569        235.06        .50695E-02   -.29615E-03
   2  Index         3.2833        1.8037        .44519        .57989E-05
   3  Normalizat    .98309        .21128E-01    .67549E-01    .10765E-03
   4  Prefactor     1.0130        .14882E-01    .42925E-01   -.16749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.95691
  Index      = 3.28331
  Normalizat = 0.98309
  Prefactor  = 1.01297
 **********
 **   18 **HESSE 
 **********

 FCN=   6970.413     FROM HESSE     STATUS=OK            31 CALLS      466 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9569        28.303        .20278E-03   -1.5310    
   2  Index         3.2833        2.2276        .75235E-02   -.35047    
   3  Normalizat    .98309        .21772        .29880E-03   -.93599    
   4  Prefactor     1.0130        .14962        .20659E-03   -.92299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85617e-09
Minuit parameter uncertainties:
  1  21.1794
  2  2.32097
  3  0.217914
  4  0.149682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933092': 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) = 6970.41258988
delta logL = 0.0366615530802

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  3.957e+00  2.118e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  3.283e+00  2.321e+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:  1.013e+00  1.497e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  9.831e-01  2.179e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/933092/cmap_HighResolution_388886401_389145601_4FGL_J0749.9+1823_daily_bin577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', job_status='DONE', photon_flux_upper_limit='9.62e-08', time_completed='2021-08-28 15:55:40.981298', job_id='933092', GAL2='1.01', fit_tolerance='1e-08', EG2='0.98', EG='1.00', time_epoch_completed='1630191340.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.67e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='577' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:55:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 933092: <4FGL_J0749.9+1823_daily_bin577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin577 117.485 18.387 388886401 389145601 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 :                                   779.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

