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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin27
RA = 117.485, Dec = 18.387
tmin = 246326401, tmax = 246585601
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='929514', job_status='RUN', time_executed='2021-08-28 15:31:04.095747', time_epoch_executed='1630189864.1' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='27'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929514

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929514/ft1_4FGL_J0749.9+1823_daily_bin27.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929514/ft2_4FGL_J0749.9+1823_daily_bin27.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929514/ft1_4FGL_J0749.9+1823_daily_bin27.fits outfile=/scratch/kocevski/929514/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin27.fits ra=117.485 dec=18.387 rad=12.0 tmin=246326401.0 tmax=246585601.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 1.75
user 1.25
sys 0.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929514/ft1_filtered_4FGL_J0749.9+1823_daily_bin27.fits" evtable="EVENTS" scfile=/scratch/kocevski/929514/ft2_4FGL_J0749.9+1823_daily_bin27.fits sctable="SC_DATA" outfile=/scratch/kocevski/929514/ltcube_246326401_246585601_4FGL_J0749.9+1823_daily_bin27.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/929514/ft2_4FGL_J0749.9+1823_daily_bin27.fits
.....................!
real 13.13
user 12.44
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929514/ft1_filtered_4FGL_J0749.9+1823_daily_bin27.fits evtable="EVENTS" scfile=/scratch/kocevski/929514/ft2_4FGL_J0749.9+1823_daily_bin27.fits sctable="SC_DATA" expcube=/scratch/kocevski/929514/ltcube_246326401_246585601_4FGL_J0749.9+1823_daily_bin27.fits outfile=/scratch/kocevski/929514/expmap_246326401_246585601_4FGL_J0749.9+1823_daily_bin27.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/929514/ltcube_246326401_246585601_4FGL_J0749.9+1823_daily_bin27.fits
.....................!
real 192.12
user 186.50
sys 4.62

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/929514/ft1_filtered_4FGL_J0749.9+1823_daily_bin27.fits scfile=/scratch/kocevski/929514/ft2_4FGL_J0749.9+1823_daily_bin27.fits outfile=/scratch/kocevski/929514/cmap_246326401_246585601_4FGL_J0749.9+1823_daily_bin27.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.91
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929514/ft1_filtered_4FGL_J0749.9+1823_daily_bin27.fits scfile=/scratch/kocevski/929514/ft2_4FGL_J0749.9+1823_daily_bin27.fits outfile=/scratch/kocevski/929514/cmap_HighResolution_246326401_246585601_4FGL_J0749.9+1823_daily_bin27.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.84
user 0.39
sys 0.44

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25700E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    64.878       1.0000         .10000E-03   10000.    
     4 'norm      '    .15195E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7907       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9948       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.786       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    29.952       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.627       1.0000         .10000E-03   10000.    
    15 'Prefactor '    82.019       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.258       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.388       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6974       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.670       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82950       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0811       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=   7942.289     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2889 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    164.34       -.12559E-03** at limit **
   2  Prefactor     .10000E-03    4.4172       -.80215E-06** at limit **
   3  norm          64.873        15.383       -.69700E-06    .47344E-03
   4  norm          .10001E-03    .40984        .38487E-07** at limit **
   5  norm          .10000E-03    .49962        .57117E-07** at limit **
   6  Prefactor     .10000E-03    4.5977        .23675E-05** at limit **
   7  norm          3.7914        3.2005       -.11415E-05   -.56237E-03
   8  Prefactor     8.0044        28.953        .21909E-04   -.83249E-05
   9  Prefactor     .10000E-03    9.4491        .13705E-05** at limit **
  10  Prefactor     40.778        34.833       -.86681E-05   -.37861E-04
  11  Prefactor     .10000E-03    1.2145        .24143E-07** at limit **
  12  Prefactor     .10000E-03    17.773       -.19647E-06** at limit **
  13  norm          29.953        21.680        .37169E-06   -.53744E-05
  14  Prefactor     29.628        14.880       -.72868E-07   -.75263E-05
  15  Prefactor     82.025        100.14        .62652E-05   -.60103E-06
  16  norm          .10000E-03    21.642        .67544E-05** at limit **
  17  Prefactor     22.264        30.489        .76229E-05    .69364E-05
  18  Prefactor     .10000E-03    16.655       -.56515E-05** at limit **
  19  Prefactor     9.0674        13.934       -.37627E-06   -.45568E-04
  20  Prefactor     11.391        22.472        .29872E-05   -.21675E-04
  21  norm          2.6976        1.4040       -.20211E-06   -.11673E-03
  22  Prefactor     .10000E-03    4.8299       -.13786E-05** at limit **
  23  Prefactor     14.672        9.9091        .13582E-07   -.18371E-04
  24  Normalizat    .82951        .18307       -.91499E-06    .24245E-03
  25  Prefactor     1.0810        .12342        .49732E-06    .51121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100086
  Prefactor  = 0.0001
  norm       = 64.8734
  norm       = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.79144
  Prefactor  = 8.00441
  Prefactor  = 0.0001
  Prefactor  = 40.778
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.9526
  Prefactor  = 29.6279
  Prefactor  = 82.0246
  norm       = 0.0001
  Prefactor  = 22.2639
  Prefactor  = 0.0001
  Prefactor  = 9.06737
  Prefactor  = 11.3906
  norm       = 2.6976
  Prefactor  = 0.0001
  Prefactor  = 14.6724
  Normalizat = 0.829512
  Prefactor  = 1.08105
 **********
 **   18 **HESSE 
 **********

 FCN=   7942.289     FROM HESSE     STATUS=OK           427 CALLS     3316 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    164.46        .42908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          64.873        15.379        .49824E-04   -1.4095    
   4  norm          .10001E-03    12.155        .10942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .50985        .61459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7914        3.1904        .13525E-03   -1.5319    
   8  Prefactor     8.0044        28.913        .14180E-03   -1.5142    
   9  Prefactor     .10000E-03    9.5205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.778        34.985        .62766E-04   -1.4430    
  11  Prefactor     .10000E-03    1.2424        .19159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          29.953        21.684        .73208E-04   -1.4613    
  14  Prefactor     29.628        14.903        .73607E-04   -1.4619    
  15  Prefactor     82.025        100.11        .44351E-04   -1.3894    
  16  norm          .10000E-03    21.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.264        30.492        .84900E-04   -1.4764    
  18  Prefactor     .10000E-03    16.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.0674        13.968        .13310E-03   -1.5106    
  20  Prefactor     11.391        22.609        .11871E-03   -1.5033    
  21  norm          2.6976        1.4102        .66585E-04   -1.5379    
  22  Prefactor     .10000E-03    4.9029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.672        9.9229        .10457E-03   -1.4942    
  24  Normalizat    .82951        .20839        .32053E-03   -.98983    
  25  Prefactor     1.0810        .14030        .20148E-03   -.90075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6243e-09
Minuit parameter uncertainties:
  1  0.00753878
  2  7.93204e-06
  3  15.3799
  4  0.000679638
  5  4.53233e-06
  6  5.32772e-05
  7  3.19054
  8  28.9634
  9  5.83047e-06
  10  35.0026
  11  1.09879e-08
  12  0.000186242
  13  21.6893
  14  14.9053
  15  100.317
  16  3.64072e-06
  17  30.5132
  18  6.03843e-05
  19  13.973
  20  22.6256
  21  1.4102
  22  4.2591e-06
  23  9.92396
  24  0.20859
  25  0.14035
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  4.078e+01  3.500e+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.081e+00  1.403e-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.295e-01  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/929514/likelihoodResults_246326401_246585601_4FGL_J0749.9+1823_daily_bin27.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) = 7942.28867765
delta logL = 0.000487730849272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7942.28841602
delta logL = 0.000749354587242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.678       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4963       1.0000          .0000       10.000    
     3 'Normalizat'    .83045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0805       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=   7942.288     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      271 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.698        44.501        .62093E-04    .62617E-04
   2  Index         2.4962        .68996        .89637E-02   -.14290E-04
   3  Normalizat    .83029        .19677        .32039E-03   -.57839E-05
   4  Prefactor     1.0807        .13888        .20151E-03   -.24127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.6977
  Index      = 2.4962
  Normalizat = 0.830293
  Prefactor  = 1.08066
 **********
 **   18 **HESSE 
 **********

 FCN=   7942.288     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.698        42.540        .12419E-04   -1.4416    
   2  Index         2.4962        .65944        .35855E-03   -.52448    
   3  Normalizat    .83029        .19688        .12815E-04   -.98955    
   4  Prefactor     1.0807        .13893        .40301E-04   -.90087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74131e-10
Minuit parameter uncertainties:
  1  42.5708
  2  0.662022
  3  0.197045
  4  0.13898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929514': 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) = 7942.28841532
delta logL = 0.000750055882236

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  4.170e+01  4.257e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.496e+00  6.620e-01  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.081e+00  1.390e-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.303e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 117.485 18.387
Photon Index (Free Index): 2.50 +/- 0.66
Photon Flux (Free Index): 4.23e-08 +/- 3.88e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.17e-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/929514/cmap_HighResolution_246326401_246585601_4FGL_J0749.9+1823_daily_bin27.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='1.23e-05', photon_flux_error='3.67e-08', dlogl='7.50e-04', energy_flux='1.21e-05', photon_flux2='4.23e-08', job_status='DONE', time_completed='2021-08-28 15:44:19.697549', photon_index_error2='0.66', photon_index2='2.50', ts='1.91', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.17e-05', EG='0.83', time_epoch_completed='1630190659.7', return_code='0', job_id='929514', GAL2='1.08', EG2='0.83', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.88e-08', ts2='1.90', photon_index='2.52' WHERE bin_id='27' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:44:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 929514: <4FGL_J0749.9+1823_daily_bin27> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin27 117.485 18.387 246326401 246585601 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 :                                   795.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

