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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin705
RA = 117.485, Dec = 18.387
tmin = 422064001, tmax = 422323201
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='933258', job_status='RUN', time_executed='2021-08-28 15:43:08.704467', time_epoch_executed='1630190588.7' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='705'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933258

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933258/ft1_4FGL_J0749.9+1823_daily_bin705.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933258/ft2_4FGL_J0749.9+1823_daily_bin705.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933258/ft1_4FGL_J0749.9+1823_daily_bin705.fits outfile=/scratch/kocevski/933258/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin705.fits ra=117.485 dec=18.387 rad=12.0 tmin=422064001.0 tmax=422323201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.97
user 3.39
sys 0.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933258/ft1_filtered_4FGL_J0749.9+1823_daily_bin705.fits" evtable="EVENTS" scfile=/scratch/kocevski/933258/ft2_4FGL_J0749.9+1823_daily_bin705.fits sctable="SC_DATA" outfile=/scratch/kocevski/933258/ltcube_422064001_422323201_4FGL_J0749.9+1823_daily_bin705.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/933258/ft2_4FGL_J0749.9+1823_daily_bin705.fits
.....................!
real 12.39
user 11.46
sys 0.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933258/ft1_filtered_4FGL_J0749.9+1823_daily_bin705.fits evtable="EVENTS" scfile=/scratch/kocevski/933258/ft2_4FGL_J0749.9+1823_daily_bin705.fits sctable="SC_DATA" expcube=/scratch/kocevski/933258/ltcube_422064001_422323201_4FGL_J0749.9+1823_daily_bin705.fits outfile=/scratch/kocevski/933258/expmap_422064001_422323201_4FGL_J0749.9+1823_daily_bin705.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/933258/ltcube_422064001_422323201_4FGL_J0749.9+1823_daily_bin705.fits
.....................!
real 194.30
user 186.93
sys 5.80

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/933258/ft1_filtered_4FGL_J0749.9+1823_daily_bin705.fits scfile=/scratch/kocevski/933258/ft2_4FGL_J0749.9+1823_daily_bin705.fits outfile=/scratch/kocevski/933258/cmap_422064001_422323201_4FGL_J0749.9+1823_daily_bin705.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 0.87
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933258/ft1_filtered_4FGL_J0749.9+1823_daily_bin705.fits scfile=/scratch/kocevski/933258/ft2_4FGL_J0749.9+1823_daily_bin705.fits outfile=/scratch/kocevski/933258/cmap_HighResolution_422064001_422323201_4FGL_J0749.9+1823_daily_bin705.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 0.86
user 0.37
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22640E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6204       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1107       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.313       1.0000         .10000E-03   10000.    
     7 'norm      '    4.4049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.755       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.031       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.366       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    70.223       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.602       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.412       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.857       1.0000         .10000E-03   10000.    
    21 'norm      '    .27681       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.059       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98394       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1439       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=   7563.320     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2899 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    265.13        .42354E-05** at limit **
   2  Prefactor     7.6206        8.2090       -.10151E-05   -.13994E-02
   3  norm          .10000E-03    5.6518        .64614E-07** at limit **
   4  norm          2.1107        1.2209        .59868E-07   -.23937E-03
   5  norm          2.4642        1.7433        .99343E-07   -.27553E-03
   6  Prefactor     14.312        11.822       -.16376E-05   -.72116E-04
   7  norm          4.4035        5.4614       -.25040E-06   -.57584E-03
   8  Prefactor     16.755        34.363        .12378E-05   -.40833E-05
   9  Prefactor     .10000E-03    12.752       -.35792E-06** at limit **
  10  Prefactor     49.053        53.041        .13081E-04   -.31858E-05
  11  Prefactor     .10000E-03    2.5315        .15336E-09** at limit **
  12  Prefactor     .10000E-03    11.707        .14184E-06** at limit **
  13  norm          .10000E-03    6.6079       -.16475E-07** at limit **
  14  Prefactor     10.367        9.4585        .98906E-06   -.43249E-04
  15  Prefactor     .10000E-03    46.184       -.42134E-07** at limit **
  16  norm          70.258        100.16        .33774E-04    .49121E-06
  17  Prefactor     12.602        24.818       -.33158E-05   -.17275E-05
  18  Prefactor     21.425        36.462        .50076E-06    .80317E-05
  19  Prefactor     .10000E-03    13.751        .34732E-06** at limit **
  20  Prefactor     29.858        32.744        .11987E-05    .16422E-03
  21  norm          .27657        1.2873       -.72157E-06   -.11157E-02
  22  Prefactor     13.059        10.933        .56285E-07    .12734E-03
  23  Prefactor     .10000E-03    2.4100        .10598E-07** at limit **
  24  Normalizat    .98407        .21246       -.19103E-05    .66805E-04
  25  Prefactor     1.1438        .13585       -.58754E-06    .35743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 7.6206
  norm       = 0.0001
  norm       = 2.11073
  norm       = 2.46416
  Prefactor  = 14.312
  norm       = 4.40352
  Prefactor  = 16.7547
  Prefactor  = 0.0001
  Prefactor  = 49.0533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3674
  Prefactor  = 0.0001
  norm       = 70.2576
  Prefactor  = 12.6017
  Prefactor  = 21.4252
  Prefactor  = 0.0001
  Prefactor  = 29.8581
  norm       = 0.276574
  Prefactor  = 13.0591
  Prefactor  = 0.0001
  Normalizat = 0.984073
  Prefactor  = 1.14385
 **********
 **   18 **HESSE 
 **********

 FCN=   7563.320     FROM HESSE     STATUS=OK           429 CALLS     3328 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    268.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6206        8.3591        .72636E-03   -1.5156    
   3  norm          .10000E-03    5.6683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1107        1.2176        .70102E-04   -1.5417    
   5  norm          2.4642        1.7433        .84177E-04   -1.5394    
   6  Prefactor     14.312        11.850        .10587E-03   -1.4951    
   7  norm          4.4035        5.4423        .19189E-03   -1.5288    
   8  Prefactor     16.755        34.226        .97848E-04   -1.4889    
   9  Prefactor     .10000E-03    12.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     49.053        52.797        .57268E-04   -1.4306    
  11  Prefactor     .10000E-03    2.6215        .26979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.367        9.4479        .12445E-03   -1.5064    
  15  Prefactor     .10000E-03    46.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          70.258        98.576        .47903E-04   -1.4030    
  17  Prefactor     12.602        24.806        .11284E-03   -1.4998    
  18  Prefactor     21.425        36.447        .86559E-04   -1.4782    
  19  Prefactor     .10000E-03    13.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.858        31.378        .73324E-04   -1.4615    
  21  norm          .27657        1.8326        .14967E-02   -1.5603    
  22  Prefactor     13.059        10.826        .11084E-03   -1.4985    
  23  Prefactor     .10000E-03    2.4129        .13185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98407        .24300        .33194E-03   -.93566    
  25  Prefactor     1.1438        .15565        .20941E-03   -.88077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93618e-09
Minuit parameter uncertainties:
  1  0.000995618
  2  8.36041
  3  1.46503e-05
  4  1.21764
  5  1.7433
  6  11.8516
  7  5.44287
  8  34.2658
  9  1.0179e-06
  10  52.8473
  11  1.43054e-07
  12  4.41624e-06
  13  4.40321e-06
  14  9.44927
  15  4.34635e-07
  16  98.8063
  17  24.8267
  18  36.4853
  19  2.29606e-05
  20  31.3955
  21  1.42369
  22  10.8273
  23  1.47059e-06
  24  0.243273
  25  0.155712
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  4.905e+01  5.285e+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:  1.144e+00  1.557e-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.841e-01  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 5.54e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/933258/likelihoodResults_422064001_422323201_4FGL_J0749.9+1823_daily_bin705.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) = 7562.85509415
delta logL = 0.46472441925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7562.83429931
delta logL = 0.485519261488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.043       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6769       1.0000          .0000       10.000    
     3 'Normalizat'    .91026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1774       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=   7562.834     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      252 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.043        273.32        .23573E-02    .74672E-03
   2  Index         3.6770        3.6453        .12713        .17022E-03
   3  Normalizat    .91025        .79418E-01    .77625E-01    .25314E-04
   4  Prefactor     1.1775        .49042E-01    .35187E-01    .10159E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0425
  Index      = 3.67697
  Normalizat = 0.910251
  Prefactor  = 1.17748
 **********
 **   18 **HESSE 
 **********

 FCN=   7562.834     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.043        425.67        .94291E-04   -1.4858    
   2  Index         3.6770        6.8385        .64732E-02   -.26780    
   3  Normalizat    .91025        .25232        .34357E-03   -.96101    
   4  Prefactor     1.1775        .16779        .20681E-03   -.87027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.53266e-07
Minuit parameter uncertainties:
  1  176.705
  2  6.28677
  3  0.252652
  4  0.167863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933258': 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) = 7562.83429923
delta logL = 0.485519334404

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.804e+01  1.767e+02  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  3.677e+00  6.287e+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.177e+00  1.679e-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.103e-01  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 117.485 18.387
Photon Index (Free Index): 3.68 +/- 6.29
Photon Flux (Free Index): 1.10e-07 +/- 1.00e-07
Energy Flux (Free Index): 1.76e-05 +/- 2.00e-05

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/933258/cmap_HighResolution_422064001_422323201_4FGL_J0749.9+1823_daily_bin705.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='1.76e-05', photon_flux_error='5.54e-08', dlogl='4.86e-01', energy_flux='1.46e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-08-28 15:56:09.765296', photon_index_error2='6.29', photon_index2='3.68', ts='1.22', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='2.00e-05', EG='0.98', time_epoch_completed='1630191369.77', return_code='0', job_id='933258', GAL2='1.18', EG2='0.91', return_code2='102', energy_flux_error='1.57e-05', photon_flux_error2='1.00e-07', ts2='2.39', photon_index='2.52' WHERE bin_id='705' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:56:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 933258: <4FGL_J0749.9+1823_daily_bin705> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin705 117.485 18.387 422064001 422323201 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

