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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin835
RA = 117.485, Dec = 18.387
tmin = 455760001, tmax = 456019201
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='934671', job_status='RUN', time_executed='2021-08-28 15:48:24.885440', time_epoch_executed='1630190904.89' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='835'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934671/ft1_4FGL_J0749.9+1823_daily_bin835.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934671/ft2_4FGL_J0749.9+1823_daily_bin835.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934671/ft1_4FGL_J0749.9+1823_daily_bin835.fits outfile=/scratch/kocevski/934671/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin835.fits ra=117.485 dec=18.387 rad=12.0 tmin=455760001.0 tmax=456019201.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.35
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934671/ft1_filtered_4FGL_J0749.9+1823_daily_bin835.fits" evtable="EVENTS" scfile=/scratch/kocevski/934671/ft2_4FGL_J0749.9+1823_daily_bin835.fits sctable="SC_DATA" outfile=/scratch/kocevski/934671/ltcube_455760001_456019201_4FGL_J0749.9+1823_daily_bin835.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/934671/ft2_4FGL_J0749.9+1823_daily_bin835.fits
.....................!
real 11.70
user 11.37
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934671/ft1_filtered_4FGL_J0749.9+1823_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/934671/ft2_4FGL_J0749.9+1823_daily_bin835.fits sctable="SC_DATA" expcube=/scratch/kocevski/934671/ltcube_455760001_456019201_4FGL_J0749.9+1823_daily_bin835.fits outfile=/scratch/kocevski/934671/expmap_455760001_456019201_4FGL_J0749.9+1823_daily_bin835.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/934671/ltcube_455760001_456019201_4FGL_J0749.9+1823_daily_bin835.fits
.....................!
real 191.32
user 187.45
sys 3.53

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/934671/ft1_filtered_4FGL_J0749.9+1823_daily_bin835.fits scfile=/scratch/kocevski/934671/ft2_4FGL_J0749.9+1823_daily_bin835.fits outfile=/scratch/kocevski/934671/cmap_455760001_456019201_4FGL_J0749.9+1823_daily_bin835.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.60
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934671/ft1_filtered_4FGL_J0749.9+1823_daily_bin835.fits scfile=/scratch/kocevski/934671/ft2_4FGL_J0749.9+1823_daily_bin835.fits outfile=/scratch/kocevski/934671/cmap_HighResolution_455760001_456019201_4FGL_J0749.9+1823_daily_bin835.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3942       1.0000         .10000E-03   10000.    
     3 'norm      '    20.958       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5914       1.0000         .10000E-03   10000.    
     5 'norm      '    5.4915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11407E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.044       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0232       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .58518E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22384E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    90.668       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2981       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1747       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2892       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83592       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=   7001.837     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2866 TOTAL
                     EDM=   .81E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.726        .61761E-06** at limit **
   2  Prefactor     5.3964        12.224       -.15385E-05   -.10434E-04
   3  norm          20.959        13.877       -.67243E-07   -.28890E-05
   4  norm          1.5916        1.1720       -.19957E-07   -.20985E-04
   5  norm          5.4925        2.0843       -.77628E-07    .15634E-05
   6  Prefactor     .10000E-03    19.881       -.33653E-06** at limit **
   7  norm          .10000E-03    1.4356        .25066E-07** at limit **
   8  Prefactor     .10000E-03    10.111        .50860E-08** at limit **
   9  Prefactor     6.0586        13.203       -.85763E-07   -.51356E-06
  10  Prefactor     56.066        49.784        .20542E-05    .81479E-05
  11  Prefactor     4.0184        4.2215       -.26059E-06   -.27513E-04
  12  Prefactor     .10000E-03    8.1829        .20663E-07** at limit **
  13  norm          .10000E-03    112.51       -.14578E-04** at limit **
  14  Prefactor     .10000E-03    40.308        .40849E-06** at limit **
  15  Prefactor     .10000E-03    50.361       -.30663E-06** at limit **
  16  norm          90.606        129.26       -.66039E-05   -.66317E-06
  17  Prefactor     .10000E-03    39.148        .67426E-06** at limit **
  18  Prefactor     .10000E-03    48.424        .31081E-06** at limit **
  19  Prefactor     .10000E-03    5.0416        .20730E-07** at limit **
  20  Prefactor     .10000E-03    32.606       -.12457E-05** at limit **
  21  norm          1.2980        1.0980       -.56723E-08    .96196E-04
  22  Prefactor     5.1768        9.1485       -.10889E-06    .10224E-04
  23  Prefactor     .10000E-03    3.5944        .31912E-07** at limit **
  24  Normalizat    1.2888        .20626        .52164E-06   -.33705E-04
  25  Prefactor     .83608        .13237       -.27305E-06    .24154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.39636
  norm       = 20.959
  norm       = 1.59157
  norm       = 5.49249
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.05859
  Prefactor  = 56.0658
  Prefactor  = 4.0184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 90.6059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29804
  Prefactor  = 5.17679
  Prefactor  = 0.0001
  Normalizat = 1.28876
  Prefactor  = 0.836077
 **********
 **   18 **HESSE 
 **********

 FCN=   7001.837     FROM HESSE     STATUS=OK           427 CALLS     3293 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.3964        12.334        .86512E-03   -1.5243    
   3  norm          20.959        13.885        .43746E-03   -1.4792    
   4  norm          1.5916        1.1687        .74392E-04   -1.5456    
   5  norm          5.4925        2.0690        .70749E-04   -1.5239    
   6  Prefactor     .10000E-03    20.130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4537        .97830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0586        13.187        .16317E-03   -1.5216    
  10  Prefactor     56.066        50.058        .53584E-04   -1.4209    
  11  Prefactor     4.0184        4.1815        .16144E-03   -1.5307    
  12  Prefactor     .10000E-03    8.1838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    110.11        .65103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.028        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    50.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          90.606        129.43        .21100E-03   -1.3801    
  17  Prefactor     .10000E-03    39.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    48.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2980        1.0972        .19401E-03   -1.5480    
  22  Prefactor     5.1768        9.1476        .17672E-03   -1.5253    
  23  Prefactor     .10000E-03    3.6073        .15493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2888        .23751        .28242E-03   -.83902    
  25  Prefactor     .83608        .15401        .22478E-03   -.98412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75349e-11
Minuit parameter uncertainties:
  1  5.87569e-06
  2  12.3396
  3  13.8876
  4  1.16871
  5  2.06904
  6  5.43663e-05
  7  5.70755e-07
  8  9.73624e-07
  9  13.193
  10  50.0956
  11  4.18177
  12  1.03027e-07
  13  5.36881e-05
  14  3.84117e-05
  15  3.28355e-06
  16  129.838
  17  1.81343e-05
  18  9.34541e-06
  19  1.05321e-06
  20  1.84709e-05
  21  1.09717
  22  9.15002
  23  5.33905e-07
  24  0.237711
  25  0.154091
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  5.607e+01  5.010e+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:  8.361e-01  1.541e-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.289e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 5.26e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/934671/likelihoodResults_455760001_456019201_4FGL_J0749.9+1823_daily_bin835.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) = 7001.27214549
delta logL = 0.565188032751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7001.24985616
delta logL = 0.587477364273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4554       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2901       1.0000          .0000       10.000    
     3 'Normalizat'    1.2019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87829       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7001.250     FROM MIGRAD    STATUS=FAILED       104 CALLS      339 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4351        143.06        .68745E-03   -.17851E-03
   2  Index         4.2918        6.9716        .49436E-02    .57549E-03
   3  Normalizat    1.2005        .20126        .29077E-03   -.24945E-04
   4  Prefactor     .87909        .13102        .21992E-03    .61155E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7001.250     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      424 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4351        143.06        .50940E-03   -.17851E-03
   2  Index         4.2918        6.9716        .22147E-02    .57549E-03
   3  Normalizat    1.2005        .20126        .26331E-03   -.24945E-04
   4  Prefactor     .87909        .13102        .26063E-03    .61155E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7001.250     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      455 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4351        56.938        .27498E-04   -.13065E-03
   2  Index         4.2918        3.0484        .98872E-03   -.32770E-04
   3  Normalizat    1.2005        .23801        .11631E-04   -.19354E-04
   4  Prefactor     .87909        .15293        .87968E-05    .51178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.43514
  Index      = 4.29181
  Normalizat = 1.20045
  Prefactor  = 0.879088
 **********
 **   18 **HESSE 
 **********

 FCN=   7001.250     FROM HESSE     STATUS=OK            23 CALLS      478 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4351        25.440        .10999E-05   -1.5163    
   2  Index         4.2918        1.9735        .39549E-04   -.14212    
   3  Normalizat    1.2005        .23760        .23262E-05   -.86589    
   4  Prefactor     .87909        .15197        .17594E-05   -.96876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93257e-11
Minuit parameter uncertainties:
  1  25.4775
  2  2.02989
  3  0.237818
  4  0.152041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934671': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7001.2498343
delta logL = 0.587499220546

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  7.435e+00  2.548e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  4.292e+00  2.030e+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:  8.791e-01  1.520e-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.200e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 117.485 18.387
Photon Index (Free Index): 4.29 +/- 2.03
Photon Flux (Free Index): 1.27e-07 +/- 8.52e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/934671/cmap_HighResolution_455760001_456019201_4FGL_J0749.9+1823_daily_bin835.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='1.83e-05', photon_flux_error='5.26e-08', dlogl='5.87e-01', energy_flux='1.67e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-08-28 16:00:42.286013', photon_index_error2='2.03', photon_index2='4.29', ts='1.83', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.24e-05', EG='1.29', time_epoch_completed='1630191642.29', return_code='0', job_id='934671', GAL2='0.88', EG2='1.20', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='8.52e-08', ts2='3.27', photon_index='2.52' WHERE bin_id='835' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:00:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 934671: <4FGL_J0749.9+1823_daily_bin835> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin835> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 15:45:33 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:45:34 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:45:34 2021
Terminated at Sat Aug 28 16:00:42 2021
Results reported at Sat Aug 28 16:00:42 2021

Your job looked like:

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

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

