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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin982
RA = 117.485, Dec = 18.387
tmin = 493862401, tmax = 494121601
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='936250', job_status='RUN', time_executed='2021-08-28 15:53:28.108783', time_epoch_executed='1630191208.11' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936250/ft1_4FGL_J0749.9+1823_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936250/ft2_4FGL_J0749.9+1823_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936250/ft1_4FGL_J0749.9+1823_daily_bin982.fits outfile=/scratch/kocevski/936250/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin982.fits ra=117.485 dec=18.387 rad=12.0 tmin=493862401.0 tmax=494121601.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.00
user 3.37
sys 0.59

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/936250/ft2_4FGL_J0749.9+1823_daily_bin982.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/936250/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin982.fits evtable="EVENTS" outfile="/scratch/kocevski/936250/ft1_filtered_4FGL_J0749.9+1823_daily_bin982.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.89
user 0.34
sys 0.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936250/ft1_filtered_4FGL_J0749.9+1823_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/936250/ft2_4FGL_J0749.9+1823_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/936250/ltcube_493862401_494121601_4FGL_J0749.9+1823_daily_bin982.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/936250/ft2_4FGL_J0749.9+1823_daily_bin982.fits
.....................!
real 13.85
user 12.97
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936250/ft1_filtered_4FGL_J0749.9+1823_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/936250/ft2_4FGL_J0749.9+1823_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/936250/ltcube_493862401_494121601_4FGL_J0749.9+1823_daily_bin982.fits outfile=/scratch/kocevski/936250/expmap_493862401_494121601_4FGL_J0749.9+1823_daily_bin982.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/936250/ltcube_493862401_494121601_4FGL_J0749.9+1823_daily_bin982.fits
.....................!
real 191.92
user 186.13
sys 5.19

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/936250/ft1_filtered_4FGL_J0749.9+1823_daily_bin982.fits scfile=/scratch/kocevski/936250/ft2_4FGL_J0749.9+1823_daily_bin982.fits outfile=/scratch/kocevski/936250/cmap_493862401_494121601_4FGL_J0749.9+1823_daily_bin982.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.90
user 0.38
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936250/ft1_filtered_4FGL_J0749.9+1823_daily_bin982.fits scfile=/scratch/kocevski/936250/ft2_4FGL_J0749.9+1823_daily_bin982.fits outfile=/scratch/kocevski/936250/cmap_HighResolution_493862401_494121601_4FGL_J0749.9+1823_daily_bin982.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.92
user 0.38
sys 0.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2638       1.0000         .10000E-03   10000.    
     3 'norm      '    24.024       1.0000         .10000E-03   10000.    
     4 'norm      '    .14335E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .97085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.550       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.666       1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.055       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1901       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.509       1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.010       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2378       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4200       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0625       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85613       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91890       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=   6142.999     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2950 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.825        .83863E-06** at limit **
   2  Prefactor     7.2633        7.5375       -.25047E-07   -.81140E-04
   3  norm          24.023        11.975        .18420E-06   -.19201E-04
   4  norm          .10000E-03    .58755        .96055E-07** at limit **
   5  norm          .96344        3.0289       -.37672E-06   -.13640E-02
   6  Prefactor     44.598        22.486       -.74616E-06    .37284E-04
   7  norm          .10000E-03    1.7010        .22865E-07** at limit **
   8  Prefactor     .10000E-03    22.321        .42513E-07** at limit **
   9  Prefactor     11.664        17.101       -.51422E-06   -.32985E-04
  10  Prefactor     64.055        51.494        .13620E-04    .11171E-04
  11  Prefactor     2.1893        3.5192       -.68690E-06   -.78043E-03
  12  Prefactor     .10000E-03    14.004        .86235E-08** at limit **
  13  norm          .10000E-03    17.451       -.33735E-07** at limit **
  14  Prefactor     34.507        16.957        .48680E-06    .33825E-05
  15  Prefactor     45.026        107.86        .88961E-05    .11744E-05
  16  norm          1.9609        719.19       -.19607E-04   -.47924E-05
  17  Prefactor     47.898        33.348        .53305E-05    .23594E-05
  18  Prefactor     .10000E-03    32.347       -.51973E-06** at limit **
  19  Prefactor     .10000E-03    6.9074        .14644E-07** at limit **
  20  Prefactor     6.4203        20.814       -.52385E-05   -.38298E-04
  21  norm          2.0625        1.4203        .28854E-06   -.37005E-03
  22  Prefactor     .10000E-03    2.5492        .13653E-07** at limit **
  23  Prefactor     .10000E-03    3.2926        .14930E-07** at limit **
  24  Normalizat    .85611        .19781       -.17761E-05    .22464E-04
  25  Prefactor     .91896        .12963        .16147E-06   -.68075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.26331
  norm       = 24.0234
  norm       = 0.0001
  norm       = 0.963445
  Prefactor  = 44.5977
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.664
  Prefactor  = 64.055
  Prefactor  = 2.18928
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.5073
  Prefactor  = 45.0263
  norm       = 1.96088
  Prefactor  = 47.8978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.42031
  norm       = 2.06253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.856108
  Prefactor  = 0.918955
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.999     FROM HESSE     STATUS=OK           431 CALLS     3381 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.2633        7.5335        .14882E-03   -1.5169    
   3  norm          24.023        11.985        .81726E-04   -1.4727    
   4  norm          .10000E-03    3.9158        .11464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .96344        2.6601        .14327E-03   -1.5512    
   6  Prefactor     44.598        19.636        .60066E-04   -1.4371    
   7  norm          .10000E-03    1.7204        .99625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.664        17.093        .11729E-03   -1.5025    
  10  Prefactor     64.055        49.627        .50141E-04   -1.4106    
  11  Prefactor     2.1893        3.5250        .17153E-03   -1.5412    
  12  Prefactor     .10000E-03    14.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.507        16.932        .68216E-04   -1.4532    
  15  Prefactor     45.026        107.81        .59760E-04   -1.4365    
  16  norm          1.9609        728.72        .27476E-03   -1.5428    
  17  Prefactor     47.898        33.184        .57935E-04   -1.4323    
  18  Prefactor     .10000E-03    32.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.4203        20.894        .15840E-03   -1.5201    
  21  norm          2.0625        1.4143        .66804E-04   -1.5421    
  22  Prefactor     .10000E-03    2.5526        .12220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.3051        .13888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85611        .22920        .29863E-03   -.98020    
  25  Prefactor     .91896        .15044        .19998E-03   -.95482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85357e-09
Minuit parameter uncertainties:
  1  3.72062e-05
  2  7.53444
  3  11.9859
  4  1.95254e-05
  5  2.66043
  6  19.6391
  7  2.77886e-06
  8  1.40936e-05
  9  17.1001
  10  49.6587
  11  3.52534
  12  2.89857e-06
  13  1.15563e-05
  14  16.9339
  15  108.28
  16  76.5579
  17  33.1973
  18  0.000251959
  19  4.16255e-06
  20  20.9173
  21  1.41435
  22  1.81975e-06
  23  2.84376e-06
  24  0.229462
  25  0.150509
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  6.405e+01  4.966e+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.190e-01  1.505e-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.561e-01  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.73e-08 +/- 5.21e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/936250/likelihoodResults_493862401_494121601_4FGL_J0749.9+1823_daily_bin982.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) = 6142.99403726
delta logL = 0.0045814214327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6142.99152039
delta logL = 0.00709828963591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5997       1.0000          .0000       10.000    
     3 'Normalizat'    .85212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92079       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=   6142.992     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      278 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.339        58.506        .51650E-04    .33456E-04
   2  Index         2.5997        .69883        .74136E-02    .26715E-04
   3  Normalizat    .85239        .21580        .29919E-03    .56732E-04
   4  Prefactor     .92062        .14768        .19982E-03    .13263E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.3387
  Index      = 2.59973
  Normalizat = 0.852385
  Prefactor  = 0.920615
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.992     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.339        55.465        .10330E-04   -1.4153    
   2  Index         2.5997        .66209        .29654E-03   -.50072    
   3  Normalizat    .85239        .21587        .11967E-04   -.98154    
   4  Prefactor     .92062        .14772        .39964E-04   -.95424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65658e-11
Minuit parameter uncertainties:
  1  55.5121
  2  0.66463
  3  0.216087
  4  0.147781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936250': 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) = 6142.99151958
delta logL = 0.00709909416219

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  6.034e+01  5.551e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.600e+00  6.646e-01  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.206e-01  1.478e-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.524e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.67
Ra Dec: 117.485 18.387
Photon Index (Free Index): 2.60 +/- 0.66
Photon Flux (Free Index): 7.05e-08 +/- 5.70e-08
Energy Flux (Free Index): 1.85e-05 +/- 1.43e-05

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/936250/cmap_HighResolution_493862401_494121601_4FGL_J0749.9+1823_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.73e-08', energy_flux2='1.85e-05', photon_flux_error='5.21e-08', dlogl='7.10e-03', energy_flux='1.91e-05', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-08-28 16:05:29.962123', photon_index_error2='0.66', photon_index2='2.60', ts='2.60', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='1.43e-05', EG='0.86', time_epoch_completed='1630191929.96', return_code='0', job_id='936250', GAL2='0.92', EG2='0.85', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='5.70e-08', ts2='2.67', photon_index='2.52' WHERE bin_id='982' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:05:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 936250: <4FGL_J0749.9+1823_daily_bin982> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin982> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 28 15:50:22 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:50:23 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:50:23 2021
Terminated at Sat Aug 28 16:05:30 2021
Results reported at Sat Aug 28 16:05:30 2021

Your job looked like:

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

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

