/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 0 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 = 7686
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0749.9+1823_daily_bin347
RA = 117.485, Dec = 18.387
tmin = 329270401, tmax = 329529601
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='931358', job_status='RUN', time_executed='2021-08-28 15:37:02.768703', time_epoch_executed='1630190222.77' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931358

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931358/ft1_4FGL_J0749.9+1823_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931358/ft2_4FGL_J0749.9+1823_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931358/ft1_4FGL_J0749.9+1823_daily_bin347.fits outfile=/scratch/kocevski/931358/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin347.fits ra=117.485 dec=18.387 rad=12.0 tmin=329270401.0 tmax=329529601.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 8.06
user 3.41
sys 4.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931358/ft1_filtered_4FGL_J0749.9+1823_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/931358/ft2_4FGL_J0749.9+1823_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/931358/ltcube_329270401_329529601_4FGL_J0749.9+1823_daily_bin347.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/931358/ft2_4FGL_J0749.9+1823_daily_bin347.fits
.....................!
real 20.30
user 14.96
sys 5.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931358/ft1_filtered_4FGL_J0749.9+1823_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/931358/ft2_4FGL_J0749.9+1823_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/931358/ltcube_329270401_329529601_4FGL_J0749.9+1823_daily_bin347.fits outfile=/scratch/kocevski/931358/expmap_329270401_329529601_4FGL_J0749.9+1823_daily_bin347.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/931358/ltcube_329270401_329529601_4FGL_J0749.9+1823_daily_bin347.fits
.....................!
real 196.78
user 185.29
sys 11.05

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/931358/ft1_filtered_4FGL_J0749.9+1823_daily_bin347.fits scfile=/scratch/kocevski/931358/ft2_4FGL_J0749.9+1823_daily_bin347.fits outfile=/scratch/kocevski/931358/cmap_329270401_329529601_4FGL_J0749.9+1823_daily_bin347.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 4.95
user 0.38
sys 4.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931358/ft1_filtered_4FGL_J0749.9+1823_daily_bin347.fits scfile=/scratch/kocevski/931358/ft2_4FGL_J0749.9+1823_daily_bin347.fits outfile=/scratch/kocevski/931358/cmap_HighResolution_329270401_329529601_4FGL_J0749.9+1823_daily_bin347.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 5.01
user 0.37
sys 4.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4908       1.0000         .10000E-03   10000.    
     3 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10571E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10400E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7018       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.486       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1744       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.765       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   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 '    .77704       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .43147       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7225       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1588       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0650       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6950.447     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2899 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    32.536         .0000    ** at limit **
   2  Prefactor     7.4904        7.8036         .0000        .94290E-04
   3  norm          .10007E-03    18.599         .0000    ** at limit **
   4  norm          .10000E-03    .64678         .0000    ** at limit **
   5  norm          .10000E-03    1.2774         .0000    ** at limit **
   6  Prefactor     1.6974        12.741         .0000        .13386E-01
   7  norm          5.3383        3.7625         .0000        .23293E-03
   8  Prefactor     .10014E-03    16.145         .0000    ** at limit **
   9  Prefactor     .10000E-03    9.4035         .0000    ** at limit **
  10  Prefactor     22.486        52.028         .0000        .10255E-02
  11  Prefactor     2.1740        2.7460         .0000        .61122E-03
  12  Prefactor     .10001E-03    18.505         .0000    ** at limit **
  13  norm          .10002E-03    11.176         .0000    ** at limit **
  14  Prefactor     11.765        10.745         .0000        .64226E-04
  15  Prefactor     .10006E-03    51.750         .0000    ** at limit **
  16  norm          .10011E-03    36.289         .0000    ** at limit **
  17  Prefactor     .10000E-03    7.8334         .0000    ** at limit **
  18  Prefactor     .10000E-03    33.336         .0000    ** at limit **
  19  Prefactor     .68965        9.6356         .0000        .68067E-04
  20  Prefactor     .10000E-03    6.9226         .0000    ** at limit **
  21  norm          .43167        .98705         .0000        .18394E-02
  22  Prefactor     .10001E-03    8.9561         .0000    ** at limit **
  23  Prefactor     1.7225        6.8079         .0000        .14360E-01
  24  Normalizat    1.1591        .19490         .0000        .23179E-04
  25  Prefactor     1.0648        .12914         .0000        .14825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Prefactor  = 7.4904
  norm       = 0.00010007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.69739
  norm       = 5.33834
  Prefactor  = 0.000100138
  Prefactor  = 0.0001
  Prefactor  = 22.4857
  Prefactor  = 2.17404
  Prefactor  = 0.000100014
  norm       = 0.000100017
  Prefactor  = 11.7645
  Prefactor  = 0.000100062
  norm       = 0.000100114
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.689654
  Prefactor  = 0.0001
  norm       = 0.431673
  Prefactor  = 0.000100008
  Prefactor  = 1.72249
  Normalizat = 1.15909
  Prefactor  = 1.06485
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.447     FROM HESSE     STATUS=OK           427 CALLS     3326 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    32.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4904        7.8003        .14653E-03   -1.5161    
   3  norm          .10007E-03    19.163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8701        .12744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4402        .15973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6974        9.5917        .16121E-02   -1.5447    
   7  norm          5.3383        3.7640        .12927E-03   -1.5246    
   8  Prefactor     .10014E-03    16.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.486        51.350        .84469E-04   -1.4759    
  11  Prefactor     2.1740        2.7333        .14823E-03   -1.5413    
  12  Prefactor     .10001E-03    18.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    11.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.765        10.741        .11679E-03   -1.5022    
  15  Prefactor     .10006E-03    51.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10011E-03    36.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .68965        73.982        .49724E-02   -1.5542    
  20  Prefactor     .10000E-03    6.9272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .43167        .95968        .12008E-03   -1.5577    
  22  Prefactor     .10001E-03    9.0910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.7225        6.7961        .16002E-02   -1.5445    
  24  Normalizat    1.1591        .22350        .28255E-03   -.87877    
  25  Prefactor     1.0648        .14703        .20439E-03   -.90598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44028e-08
Minuit parameter uncertainties:
  1  0.00125117
  2  7.80136
  3  0.00231293
  4  3.34811e-06
  5  2.81373e-06
  6  8.07167
  7  3.76412
  8  0.0029909
  9  2.71923e-05
  10  51.4509
  11  2.73345
  12  0.00100637
  13  0.000878775
  14  10.7426
  15  0.00357586
  16  0.00407538
  17  0.000218917
  18  2.47242e-05
  19  14.303
  20  3.17351e-05
  21  0.959714
  22  0.000554619
  23  6.79916
  24  0.22368
  25  0.147085
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  2.249e+01  5.145e+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.065e+00  1.471e-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.159e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/931358/likelihoodResults_329270401_329529601_4FGL_J0749.9+1823_daily_bin347.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) = 6949.66097123
delta logL = 0.785895913666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6949.53756682
delta logL = 0.909300322195

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81235       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3329       1.0000          .0000       10.000    
     3 'Normalizat'    1.0742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1034       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=   6949.538     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      275 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80813        7.9905        .12264E-01    .91092E-03
   2  Index         5.3359        2.5298        .14962        .12494E-03
   3  Normalizat    1.0743        .44283E-01    .65990E-01   -.93201E-05
   4  Prefactor     1.1034        .30992E-01    .37459E-01   -.60409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.808128
  Index      = 5.33591
  Normalizat = 1.07425
  Prefactor  = 1.10336
 **********
 **   18 **HESSE 
 **********

 FCN=   6949.538     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80813        22.519        .55974E-03   -1.5528    
   2  Index         5.3359        7.3892        .52639E-02    .67233E-01
   3  Normalizat    1.0743        .17081        .29192E-03   -.90583    
   4  Prefactor     1.1034        .11635        .20128E-03   -.89359    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.33668e-08
Minuit parameter uncertainties:
  1  8.53481
  2  5.79335
  3  0.170895
  4  0.116375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931358': 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) = 6949.53756595
delta logL = 0.909301192478

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  8.081e-01  8.535e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  5.336e+00  5.793e+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.103e+00  1.164e-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.074e+00  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 117.485 18.387
Photon Index (Free Index): 5.34 +/- 5.79
Photon Flux (Free Index): 8.62e-08 +/- 6.59e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/931358/cmap_HighResolution_329270401_329529601_4FGL_J0749.9+1823_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='9.09e-01', photon_flux2='8.62e-08', job_status='DONE', time_completed='2021-08-28 15:50:36.539440', photon_index_error2='5.79', photon_index2='5.34', ts='0.24', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.07e-05', EG='1.16', time_epoch_completed='1630191036.54', return_code='0', job_id='931358', GAL2='1.10', EG2='1.07', return_code2='102', photon_flux_error2='6.59e-08', ts2='2.26', photon_index='2.52' WHERE bin_id='347' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 931358: <4FGL_J0749.9+1823_daily_bin347> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin347> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 15:35:39 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:35:40 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:35:40 2021
Terminated at Sat Aug 28 15:50:38 2021
Results reported at Sat Aug 28 15:50:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin347 117.485 18.387 329270401 329529601 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 :                                   875.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.71 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.

