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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin978
RA = 117.485, Dec = 18.387
tmin = 492825601, tmax = 493084801
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='936243', job_status='RUN', time_executed='2021-08-28 15:50:51.226974', time_epoch_executed='1630191051.23' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/936243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/936243/ft1_4FGL_J0749.9+1823_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/936243/ft2_4FGL_J0749.9+1823_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/936243/ft1_4FGL_J0749.9+1823_daily_bin978.fits outfile=/scratch/kocevski/936243/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin978.fits ra=117.485 dec=18.387 rad=12.0 tmin=492825601.0 tmax=493084801.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.32
user 3.61
sys 0.69

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/936243/ft1_filtered_4FGL_J0749.9+1823_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/936243/ft2_4FGL_J0749.9+1823_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/936243/ltcube_492825601_493084801_4FGL_J0749.9+1823_daily_bin978.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/936243/ft2_4FGL_J0749.9+1823_daily_bin978.fits
.....................!
real 12.66
user 11.67
sys 0.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/936243/ft1_filtered_4FGL_J0749.9+1823_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/936243/ft2_4FGL_J0749.9+1823_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/936243/ltcube_492825601_493084801_4FGL_J0749.9+1823_daily_bin978.fits outfile=/scratch/kocevski/936243/expmap_492825601_493084801_4FGL_J0749.9+1823_daily_bin978.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/936243/ltcube_492825601_493084801_4FGL_J0749.9+1823_daily_bin978.fits
.....................!
real 191.46
user 185.92
sys 4.81

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/936243/ft1_filtered_4FGL_J0749.9+1823_daily_bin978.fits scfile=/scratch/kocevski/936243/ft2_4FGL_J0749.9+1823_daily_bin978.fits outfile=/scratch/kocevski/936243/cmap_492825601_493084801_4FGL_J0749.9+1823_daily_bin978.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.08
user 0.38
sys 0.67

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/936243/ft1_filtered_4FGL_J0749.9+1823_daily_bin978.fits scfile=/scratch/kocevski/936243/ft2_4FGL_J0749.9+1823_daily_bin978.fits outfile=/scratch/kocevski/936243/cmap_HighResolution_492825601_493084801_4FGL_J0749.9+1823_daily_bin978.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.06
user 0.40
sys 0.65

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.382       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5149       1.0000         .10000E-03   10000.    
     5 'norm      '    .50599       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10705E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9378       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    47.902       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45894E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10777E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8635       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6445       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.842       1.0000         .10000E-03   10000.    
    21 'norm      '    .60047       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4802       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1609       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83515       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=   6251.444     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     3057 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.345        59.515       -.12063E-06   -.53659E-04
   2  Prefactor     .10000E-03    18.575       -.50658E-06** at limit **
   3  norm          .10000E-03    3.1914       -.19456E-06** at limit **
   4  norm          1.5140        1.5718        .42771E-07   -.89797E-04
   5  norm          .50730        .99115        .96446E-07    .21884E-03
   6  Prefactor     .10000E-03    3.0811       -.35038E-07** at limit **
   7  norm          .10000E-03    2.0814       -.10080E-07** at limit **
   8  Prefactor     .10000E-03    50.852       -.13574E-06** at limit **
   9  Prefactor     .10000E-03    11.835       -.15237E-07** at limit **
  10  Prefactor     .10000E-03    18.371       -.42232E-07** at limit **
  11  Prefactor     5.9408        3.9322        .14103E-06   -.12364E-03
  12  Prefactor     .10000E-03    14.733        .34773E-07** at limit **
  13  norm          47.907        26.496        .35464E-06   -.93440E-04
  14  Prefactor     .10000E-03    42.286        .15929E-05** at limit **
  15  Prefactor     .10000E-03    50.529        .11748E-07** at limit **
  16  norm          .10000E-03    45.876        .19052E-06** at limit **
  17  Prefactor     .10000E-03    50.542        .17657E-05** at limit **
  18  Prefactor     4.8907        145.61        .29303E-06    .54423E-05
  19  Prefactor     3.6845        21.683        .90722E-06   -.12379E-04
  20  Prefactor     58.845        26.289       -.44704E-06   -.72428E-04
  21  norm          .60052        .98856        .63535E-06    .51154E-03
  22  Prefactor     .10000E-03    4.6240       -.55672E-07** at limit **
  23  Prefactor     5.4810        8.1452        .13102E-06   -.42463E-04
  24  Normalizat    1.1604        .20464       -.14402E-05    .15749E-04
  25  Prefactor     .83551        .13197        .87470E-06   -.21400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.3453
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.514
  norm       = 0.507303
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.94078
  Prefactor  = 0.0001
  norm       = 47.9069
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.89067
  Prefactor  = 3.68449
  Prefactor  = 58.8448
  norm       = 0.600522
  Prefactor  = 0.0001
  Prefactor  = 5.48095
  Normalizat = 1.16045
  Prefactor  = 0.835508
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.444     FROM HESSE     STATUS=OK           427 CALLS     3484 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.345        59.631        .21133E-03   -1.3804    
   2  Prefactor     .10000E-03    19.149        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.1883        .13777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5140        1.5530        .94037E-04   -1.5462    
   5  norm          .50730        .77787        .10720E-02   -1.5566    
   6  Prefactor     .10000E-03    3.0909        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.4801        .21985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9408        3.9260        .11961E-03   -1.5220    
  12  Prefactor     .10000E-03    14.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          47.907        26.233        .57936E-04   -1.4323    
  14  Prefactor     .10000E-03    42.832        .42398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    50.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    45.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    50.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8907        144.68        .18240E-03   -1.5266    
  19  Prefactor     3.6845        21.592        .21161E-03   -1.5324    
  20  Prefactor     58.845        26.311        .52302E-04   -1.4172    
  21  norm          .60052        .98788        .10985E-02   -1.5553    
  22  Prefactor     .10000E-03    4.6420        .16604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.4810        8.1322        .17164E-03   -1.5240    
  24  Normalizat    1.1604        .22819        .27366E-03   -.87834    
  25  Prefactor     .83551        .14804        .21137E-03   -.98432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5118e-10
Minuit parameter uncertainties:
  1  59.6709
  2  5.91901e-05
  3  8.54636e-06
  4  1.55309
  5  0.777883
  6  1.65002e-06
  7  3.60729e-05
  8  6.10165e-06
  9  4.07921e-06
  10  6.19439e-06
  11  3.92621
  12  1.3001e-05
  13  26.2392
  14  0.000351416
  15  4.50118e-05
  16  0.000120648
  17  0.000333825
  18  53.3424
  19  17.8484
  20  26.3166
  21  0.987909
  22  3.25387e-06
  23  8.13388
  24  0.228383
  25  0.148111
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  6.194e-06  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:  8.355e-01  1.481e-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:  1.160e+00  2.284e-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: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/936243/likelihoodResults_492825601_493084801_4FGL_J0749.9+1823_daily_bin978.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) = 6251.44443957
delta logL = -0.000258795219452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6251.44418413
delta logL = -3.35085405823e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0855       1.0000          .0000       10.000    
     3 'Normalizat'    1.1604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83551       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=   6251.444     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      301 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    165.73        .18142E-01** at limit **
   2  Index         1.7689        5.8095        .50000        .22092E-06
   3  Normalizat    1.1604        .98794E-02    .27367E-03    .10032E-03
   4  Prefactor     .83551        .66244E-02    .21136E-03    .13882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 1.7689
  Normalizat = 1.16044
  Prefactor  = 0.83551
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.444     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      330 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    839.15        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7689        6.6392        .50000       -.70262    
   3  Normalizat    1.1604        .22703E-01    .10947E-04   -.87834    
   4  Prefactor     .83551        .15223E-01    .84546E-05   -.98432    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15923e-10
Minuit parameter uncertainties:
  1  0.00541543
  2  872.446
  3  0.0227034
  4  0.0152232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/936243': 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) = 6251.44417918
delta logL = 1.58956754603e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  8.355e-01  1.522e-02  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:  1.160e+00  2.270e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/936243/cmap_HighResolution_492825601_493084801_4FGL_J0749.9+1823_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-08-28 16:02:48.790202', job_id='936243', GAL2='0.84', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630191768.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='978' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:02:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 936243: <4FGL_J0749.9+1823_daily_bin978> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin978> 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) <bullet0224>, 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:02:49 2021
Results reported at Sat Aug 28 16:02:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin978 117.485 18.387 492825601 493084801 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 :                                   720.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            747 sec.

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

