/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 122 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0749.9+1823_daily_bin110
RA = 117.485, Dec = 18.387
tmin = 267840001, tmax = 268099201
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='929635', job_status='RUN', time_executed='2021-08-28 15:32:58.277005', time_epoch_executed='1630189978.28' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929635/ft1_4FGL_J0749.9+1823_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929635/ft2_4FGL_J0749.9+1823_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929635/ft1_4FGL_J0749.9+1823_daily_bin110.fits outfile=/scratch/kocevski/929635/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin110.fits ra=117.485 dec=18.387 rad=12.0 tmin=267840001.0 tmax=268099201.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 2.07
user 1.32
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929635/ft2_4FGL_J0749.9+1823_daily_bin110.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/929635/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin110.fits evtable="EVENTS" outfile="/scratch/kocevski/929635/ft1_filtered_4FGL_J0749.9+1823_daily_bin110.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.08
user 0.32
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929635/ft1_filtered_4FGL_J0749.9+1823_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/929635/ft2_4FGL_J0749.9+1823_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/929635/ltcube_267840001_268099201_4FGL_J0749.9+1823_daily_bin110.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/929635/ft2_4FGL_J0749.9+1823_daily_bin110.fits
.....................!
real 13.46
user 12.42
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929635/ft1_filtered_4FGL_J0749.9+1823_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/929635/ft2_4FGL_J0749.9+1823_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/929635/ltcube_267840001_268099201_4FGL_J0749.9+1823_daily_bin110.fits outfile=/scratch/kocevski/929635/expmap_267840001_268099201_4FGL_J0749.9+1823_daily_bin110.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/929635/ltcube_267840001_268099201_4FGL_J0749.9+1823_daily_bin110.fits
.....................!
real 189.87
user 184.58
sys 4.82

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/929635/ft1_filtered_4FGL_J0749.9+1823_daily_bin110.fits scfile=/scratch/kocevski/929635/ft2_4FGL_J0749.9+1823_daily_bin110.fits outfile=/scratch/kocevski/929635/cmap_267840001_268099201_4FGL_J0749.9+1823_daily_bin110.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.13
user 0.36
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929635/ft1_filtered_4FGL_J0749.9+1823_daily_bin110.fits scfile=/scratch/kocevski/929635/ft2_4FGL_J0749.9+1823_daily_bin110.fits outfile=/scratch/kocevski/929635/cmap_HighResolution_267840001_268099201_4FGL_J0749.9+1823_daily_bin110.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.11
user 0.37
sys 0.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35191E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5267       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9761       1.0000         .10000E-03   10000.    
     5 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.258       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3959       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8471       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4422       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15533       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4913       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    33.315       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 '    .11012E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.148       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6501       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0482       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1406       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=   7663.440     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2976 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.884       -.23923E-06** at limit **
   2  Prefactor     .10000E-03    4.5847       -.80675E-06** at limit **
   3  norm          3.5275        9.7639       -.29861E-05   -.16937E-03
   4  norm          2.9760        1.4297       -.30764E-06   -.21664E-03
   5  norm          .10000E-03    .83144        .65512E-07** at limit **
   6  Prefactor     14.257        9.4977       -.13471E-05   -.19057E-04
   7  norm          2.3962        3.3807        .49242E-06    .60075E-04
   8  Prefactor     7.7652        54.723       -.15545E-04    .93077E-04
   9  Prefactor     .10000E-03    6.4206        .42730E-07** at limit **
  10  Prefactor     .10000E-03    12.588        .30999E-05** at limit **
  11  Prefactor     5.4422        2.9993       -.23890E-06    .37636E-04
  12  Prefactor     .26674        24.472       -.39473E-05    .50298E-03
  13  norm          .10000E-03    7.2293        .11971E-06** at limit **
  14  Prefactor     9.4937        9.7892       -.22114E-05    .46706E-05
  15  Prefactor     .10000E-03    34.352        .10392E-08** at limit **
  16  norm          33.130        84.581       -.14691E-03    .14562E-04
  17  Prefactor     .10000E-03    11.308       -.33104E-06** at limit **
  18  Prefactor     .10000E-03    12.757       -.26998E-05** at limit **
  19  Prefactor     .89086E-03    10.072       -.20400E-05** at limit **
  20  Prefactor     23.149        33.893       -.52681E-05    .29642E-04
  21  norm          2.6501        2.0842        .29162E-06   -.41700E-03
  22  Prefactor     .10000E-03    4.0300       -.38169E-07** at limit **
  23  Prefactor     .10000E-03    6.8601       -.21696E-06** at limit **
  24  Normalizat    1.0482        .20457        .34007E-05    .35873E-03
  25  Prefactor     1.1406        .13421        .30747E-05    .36775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.52755
  norm       = 2.97596
  norm       = 0.0001
  Prefactor  = 14.2572
  norm       = 2.3962
  Prefactor  = 7.76515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44223
  Prefactor  = 0.26674
  norm       = 0.0001
  Prefactor  = 9.49368
  Prefactor  = 0.0001
  norm       = 33.1304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000890863
  Prefactor  = 23.1488
  norm       = 2.65007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04817
  Prefactor  = 1.14064
 **********
 **   18 **HESSE 
 **********

 FCN=   7663.440     FROM HESSE     STATUS=OK           443 CALLS     3419 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.628        .36333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5275        9.7478        .21526E-03   -1.5332    
   4  norm          2.9760        1.4266        .68884E-04   -1.5363    
   5  norm          .10000E-03    .83560        .15410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.257        9.4101        .10607E-03   -1.4953    
   7  norm          2.3962        3.3277        .16975E-03   -1.5398    
   8  Prefactor     7.7652        53.837        .14314E-03   -1.5151    
   9  Prefactor     .10000E-03    6.4326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4422        3.0038        .10752E-03   -1.5241    
  12  Prefactor     .26674        25.737        .13796       -1.5605    
  13  norm          .10000E-03    7.2533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4937        9.7867        .13008E-03   -1.5092    
  15  Prefactor     .10000E-03    34.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          33.130        84.693        .69424E-04   -1.4556    
  17  Prefactor     .10000E-03    11.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .89086E-03    13.410        .84490E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.149        34.104        .83254E-04   -1.4745    
  21  norm          2.6501        2.0815        .87795E-04   -1.5382    
  22  Prefactor     .10000E-03    4.0374        .17158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0482        .23589        .31321E-03   -.91434    
  25  Prefactor     1.1406        .15412        .20767E-03   -.88178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47213e-09
Minuit parameter uncertainties:
  1  0.000147198
  2  5.8407e-05
  3  9.75223
  4  1.42659
  5  6.43153e-06
  6  9.41106
  7  3.32793
  8  40.9452
  9  6.79681e-06
  10  2.76704e-05
  11  3.0039
  12  5.24157
  13  1.29959e-05
  14  9.78837
  15  1.05904e-05
  16  85.0025
  17  3.39857e-06
  18  2.35004e-07
  19  0.206015
  20  34.133
  21  2.08154
  22  5.98815e-06
  23  3.66404e-05
  24  0.236126
  25  0.154185
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.767e-05  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.141e+00  1.542e-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.048e+00  2.361e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929635/likelihoodResults_267840001_268099201_4FGL_J0749.9+1823_daily_bin110.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) = 7663.44020168
delta logL = -0.000378056471163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7663.4398236
delta logL = 1.71521605807e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5024       1.0000          .0000       10.000    
     3 'Normalizat'    1.0481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1407       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=   7663.440     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10260E-03    18.759        .18142E-01** at limit **
   2  Index         2.4090        8.3282        .50000        .10332E-04
   3  Normalizat    1.0482        .58515E-02    .31321E-03    .87115E-05
   4  Prefactor     1.1406        .40516E-02    .20767E-03    .10292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102598
  Index      = 2.40902
  Normalizat = 1.04817
  Prefactor  = 1.14064
 **********
 **   18 **HESSE 
 **********

 FCN=   7663.440     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10260E-03    111.98        .31580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4090        7.3780        .50000       -.54474    
   3  Normalizat    1.0482        .14399E-01    .12528E-04   -.91434    
   4  Prefactor     1.1406        .99702E-02    .83069E-05   -.88178    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.4369e-09
Minuit parameter uncertainties:
  1  0.0341789
  2  496.66
  3  0.0143992
  4  0.00997018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929635': 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) = 7663.4398234
delta logL = 2.1861615096e-07

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.026e-04  3.418e-02  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.409e+00  4.967e+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:  1.141e+00  9.970e-03  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.048e+00  1.440e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/929635/cmap_HighResolution_267840001_268099201_4FGL_J0749.9+1823_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-08-28 15:46:10.046506', job_id='929635', GAL2='1.14', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630190770.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='110' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 929635: <4FGL_J0749.9+1823_daily_bin110> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin110> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 15:30:28 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:30:29 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:30:29 2021
Terminated at Sat Aug 28 15:46:13 2021
Results reported at Sat Aug 28 15:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin110 117.485 18.387 267840001 268099201 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 :                                   799.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            945 sec.

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

