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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin596
RA = 117.485, Dec = 18.387
tmin = 393811201, tmax = 394070401
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='933122', job_status='RUN', time_executed='2021-08-28 15:44:09.523917', time_epoch_executed='1630190649.52' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933122/ft1_4FGL_J0749.9+1823_daily_bin596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933122/ft2_4FGL_J0749.9+1823_daily_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933122/ft1_4FGL_J0749.9+1823_daily_bin596.fits outfile=/scratch/kocevski/933122/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin596.fits ra=117.485 dec=18.387 rad=12.0 tmin=393811201.0 tmax=394070401.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.80
user 3.23
sys 0.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933122/ft2_4FGL_J0749.9+1823_daily_bin596.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/933122/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin596.fits evtable="EVENTS" outfile="/scratch/kocevski/933122/ft1_filtered_4FGL_J0749.9+1823_daily_bin596.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.82
user 0.35
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933122/ft1_filtered_4FGL_J0749.9+1823_daily_bin596.fits" evtable="EVENTS" scfile=/scratch/kocevski/933122/ft2_4FGL_J0749.9+1823_daily_bin596.fits sctable="SC_DATA" outfile=/scratch/kocevski/933122/ltcube_393811201_394070401_4FGL_J0749.9+1823_daily_bin596.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/933122/ft2_4FGL_J0749.9+1823_daily_bin596.fits
.....................!
real 12.45
user 11.75
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933122/ft1_filtered_4FGL_J0749.9+1823_daily_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/933122/ft2_4FGL_J0749.9+1823_daily_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/933122/ltcube_393811201_394070401_4FGL_J0749.9+1823_daily_bin596.fits outfile=/scratch/kocevski/933122/expmap_393811201_394070401_4FGL_J0749.9+1823_daily_bin596.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/933122/ltcube_393811201_394070401_4FGL_J0749.9+1823_daily_bin596.fits
.....................!
real 193.75
user 187.72
sys 5.55

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/933122/ft1_filtered_4FGL_J0749.9+1823_daily_bin596.fits scfile=/scratch/kocevski/933122/ft2_4FGL_J0749.9+1823_daily_bin596.fits outfile=/scratch/kocevski/933122/cmap_393811201_394070401_4FGL_J0749.9+1823_daily_bin596.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.36
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933122/ft1_filtered_4FGL_J0749.9+1823_daily_bin596.fits scfile=/scratch/kocevski/933122/ft2_4FGL_J0749.9+1823_daily_bin596.fits outfile=/scratch/kocevski/933122/cmap_HighResolution_393811201_394070401_4FGL_J0749.9+1823_daily_bin596.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.38
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9089       1.0000         .10000E-03   10000.    
     3 'norm      '    4.7672       1.0000         .10000E-03   10000.    
     4 'norm      '    .23498       1.0000         .10000E-03   10000.    
     5 'norm      '    4.8759       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.799       1.0000         .10000E-03   10000.    
     7 'norm      '    .10736E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.182       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8689       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11185E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7378       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.134       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14758E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8286       1.0000         .10000E-03   10000.    
    21 'norm      '    .52856       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2656       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6754       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89352       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0411       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=   6539.177     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2540 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.649        .30687E-06** at limit **
   2  Prefactor     5.9114        6.9754        .12631E-06   -.27526E-04
   3  norm          4.7661        10.219        .40632E-06   -.85359E-05
   4  norm          .23497        .81942        .30222E-06   -.38191E-03
   5  norm          4.8762        2.6732        .36646E-07   -.56093E-04
   6  Prefactor     17.796        16.863        .35716E-06   -.62492E-04
   7  norm          .10000E-03    2.1244        .24738E-06** at limit **
   8  Prefactor     .10000E-03    25.400        .52268E-07** at limit **
   9  Prefactor     54.190        22.447        .30891E-07   -.94459E-04
  10  Prefactor     3.8995        125.43       -.63820E-06    .10627E-04
  11  Prefactor     .10000E-03    1.4589        .11045E-06** at limit **
  12  Prefactor     .10000E-03    13.818       -.34048E-07** at limit **
  13  norm          .10000E-03    25.381       -.21554E-06** at limit **
  14  Prefactor     1.7383        10.148        .19336E-05    .58361E-05
  15  Prefactor     .10000E-03    37.018       -.10496E-06** at limit **
  16  norm          .10000E-03    27.121       -.28898E-07** at limit **
  17  Prefactor     10.086        34.369        .11137E-06   -.49877E-04
  18  Prefactor     .10000E-03    59.984       -.30482E-05** at limit **
  19  Prefactor     .10000E-03    6.2735        .50981E-07** at limit **
  20  Prefactor     5.8263        18.680       -.43459E-07   -.14032E-05
  21  norm          .52855        1.0161       -.52072E-07   -.39691E-03
  22  Prefactor     9.2658        10.233        .23179E-05    .33193E-04
  23  Prefactor     3.6745        6.7520        .12955E-06   -.32746E-05
  24  Normalizat    .89354        .20050       -.11700E-05   -.88967E-04
  25  Prefactor     1.0411        .13341        .69895E-07   -.18128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.91145
  norm       = 4.76608
  norm       = 0.234971
  norm       = 4.87623
  Prefactor  = 17.7955
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.1898
  Prefactor  = 3.89952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.73832
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.82629
  norm       = 0.528552
  Prefactor  = 9.26576
  Prefactor  = 3.67453
  Normalizat = 0.893545
  Prefactor  = 1.04109
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.177     FROM HESSE     STATUS=OK           435 CALLS     2975 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.9114        6.9730        .16520E-03   -1.5222    
   3  norm          4.7661        10.235        .18427E-03   -1.5271    
   4  norm          .23497        1.0823        .12656E-02   -1.5611    
   5  norm          4.8762        2.7017        .74517E-04   -1.5266    
   6  Prefactor     17.796        16.875        .94934E-04   -1.4864    
   7  norm          .10000E-03    10.545        .21516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     54.190        21.631        .54492E-04   -1.4234    
  10  Prefactor     3.8995        121.43        .20515E-03   -1.5313    
  11  Prefactor     .10000E-03    4.7238        .18871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    25.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7383        10.090        .31831E-03   -1.5444    
  15  Prefactor     .10000E-03    37.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    27.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.086        34.255        .12587E-03   -1.5073    
  18  Prefactor     .10000E-03    60.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.8263        18.226        .16635E-03   -1.5225    
  21  norm          .52855        .81053        .10280E-02   -1.5563    
  22  Prefactor     9.2658        10.256        .65831E-03   -1.5099    
  23  Prefactor     3.6745        6.7343        .21068E-03   -1.5325    
  24  Normalizat    .89354        .22818        .30275E-03   -.96687    
  25  Prefactor     1.0411        .15452        .19797E-03   -.91372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90867e-08
Minuit parameter uncertainties:
  1  0.000109379
  2  6.97393
  3  10.2388
  4  1.0084
  5  2.70175
  6  16.88
  7  0.000143527
  8  3.68546e-05
  9  21.6339
  10  43.6173
  11  4.86677e-05
  12  6.89365e-07
  13  5.57517e-05
  14  8.37785
  15  8.49187e-05
  16  4.16376e-05
  17  34.3216
  18  2.67297e-05
  19  3.02558e-06
  20  18.2439
  21  0.810543
  22  10.258
  23  6.73566
  24  0.228426
  25  0.154581
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  3.900e+00  4.362e+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.041e+00  1.546e-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.935e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 117.485 18.387
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933122/likelihoodResults_393811201_394070401_4FGL_J0749.9+1823_daily_bin596.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) = 6538.21096412
delta logL = 0.965932586286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6538.20499824
delta logL = 0.971898466488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0833       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5472       1.0000          .0000       10.000    
     3 'Normalizat'    .80316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0785       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=   6538.205     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0456        42.968        .57745E-02    .56212E-03
   2  Index         4.5539        3.0639        .15721        .13153E-03
   3  Normalizat    .80322        .55101E-01    .71630E-01    .25929E-04
   4  Prefactor     1.0784        .38173E-01    .38469E-01    .26248E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.04564
  Index      = 4.55387
  Normalizat = 0.803216
  Prefactor  = 1.07844
 **********
 **   18 **HESSE 
 **********

 FCN=   6538.205     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0456        94.102        .10615E-03   -1.5359    
   2  Index         4.5539        7.2268        .53562E-02   -.89345E-01
   3  Normalizat    .80322        .20796        .31699E-03   -.99949    
   4  Prefactor     1.0784        .14358        .19473E-03   -.90159    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.31256e-10
Minuit parameter uncertainties:
  1  33.9165
  2  6.37824
  3  0.208169
  4  0.143627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933122': 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) = 6538.20498721
delta logL = 0.971909488997

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  3.046e+00  3.392e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  4.554e+00  6.378e+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.078e+00  1.436e-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.032e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 117.485 18.387
Photon Index (Free Index): 4.55 +/- 6.38
Photon Flux (Free Index): 8.20e-08 +/- 6.58e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.27e-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/933122/cmap_HighResolution_393811201_394070401_4FGL_J0749.9+1823_daily_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-03', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='9.72e-01', photon_flux2='8.20e-08', job_status='DONE', time_completed='2021-08-28 15:55:44.890404', photon_index_error2='6.38', photon_index2='4.55', ts='0.01', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.27e-05', EG='0.89', time_epoch_completed='1630191344.89', return_code='0', job_id='933122', GAL2='1.08', EG2='0.80', return_code2='102', photon_flux_error2='6.58e-08', ts2='2.11', photon_index='2.52' WHERE bin_id='596' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:55:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 933122: <4FGL_J0749.9+1823_daily_bin596> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin596> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 15:40:46 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:40:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 15:40:48 2021
Terminated at Sat Aug 28 15:55:45 2021
Results reported at Sat Aug 28 15:55:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin596 117.485 18.387 393811201 394070401 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 :                                   697.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

