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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin282
RA = 117.485, Dec = 18.387
tmin = 312422401, tmax = 312681601
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='931250', job_status='RUN', time_executed='2021-08-28 15:38:48.681651', time_epoch_executed='1630190328.68' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931250/ft1_4FGL_J0749.9+1823_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931250/ft2_4FGL_J0749.9+1823_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931250/ft1_4FGL_J0749.9+1823_daily_bin282.fits outfile=/scratch/kocevski/931250/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin282.fits ra=117.485 dec=18.387 rad=12.0 tmin=312422401.0 tmax=312681601.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 4.75
user 3.59
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931250/ft2_4FGL_J0749.9+1823_daily_bin282.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/931250/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin282.fits evtable="EVENTS" outfile="/scratch/kocevski/931250/ft1_filtered_4FGL_J0749.9+1823_daily_bin282.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.53
user 0.32
sys 1.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931250/ft1_filtered_4FGL_J0749.9+1823_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/931250/ft2_4FGL_J0749.9+1823_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/931250/ltcube_312422401_312681601_4FGL_J0749.9+1823_daily_bin282.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/931250/ft2_4FGL_J0749.9+1823_daily_bin282.fits
.....................!
real 12.89
user 11.35
sys 1.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931250/ft1_filtered_4FGL_J0749.9+1823_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/931250/ft2_4FGL_J0749.9+1823_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/931250/ltcube_312422401_312681601_4FGL_J0749.9+1823_daily_bin282.fits outfile=/scratch/kocevski/931250/expmap_312422401_312681601_4FGL_J0749.9+1823_daily_bin282.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/931250/ltcube_312422401_312681601_4FGL_J0749.9+1823_daily_bin282.fits
.....................!
real 191.06
user 184.98
sys 5.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/931250/ft1_filtered_4FGL_J0749.9+1823_daily_bin282.fits scfile=/scratch/kocevski/931250/ft2_4FGL_J0749.9+1823_daily_bin282.fits outfile=/scratch/kocevski/931250/cmap_312422401_312681601_4FGL_J0749.9+1823_daily_bin282.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=117.485 yref=18.387 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.47
user 0.39
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931250/ft1_filtered_4FGL_J0749.9+1823_daily_bin282.fits scfile=/scratch/kocevski/931250/ft2_4FGL_J0749.9+1823_daily_bin282.fits outfile=/scratch/kocevski/931250/cmap_HighResolution_312422401_312681601_4FGL_J0749.9+1823_daily_bin282.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=117.485 yref=18.387 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.55
user 0.38
sys 1.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.132       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3964       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.955       1.0000         .10000E-03   10000.    
     7 'norm      '    .61439E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.260       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.646       1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.291       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.161       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.071       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .68144E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14759E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .39089E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2427       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74526       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=   7170.075     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2948 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.165       -.47943E-04** at limit **
   2  Prefactor     .10000E-03    6.6630       -.19285E-07** at limit **
   3  norm          13.131        9.1738       -.41085E-06    .78212E-04
   4  norm          1.3965        1.1173       -.29311E-07   -.78834E-05
   5  norm          1.7867        1.7195       -.12076E-06   -.48952E-03
   6  Prefactor     22.953        14.081       -.22828E-06   -.56002E-04
   7  norm          .10000E-03    2.3717        .79823E-06** at limit **
   8  Prefactor     18.271        36.415       -.62582E-05   -.14135E-03
   9  Prefactor     18.642        16.983        .48607E-06   -.22205E-03
  10  Prefactor     93.304        61.423        .46775E-05   -.17721E-04
  11  Prefactor     .10000E-03    1.9931       -.17557E-07** at limit **
  12  Prefactor     .10000E-03    22.011        .41777E-05** at limit **
  13  norm          .10000E-03    6.4089       -.29684E-07** at limit **
  14  Prefactor     22.160        12.830        .21320E-06   -.43166E-04
  15  Prefactor     .10000E-03    62.872        .51938E-04** at limit **
  16  norm          .10000E-03    30.934        .10167E-04** at limit **
  17  Prefactor     .10000E-03    24.096       -.91344E-05** at limit **
  18  Prefactor     11.064        37.367        .10164E-04    .31971E-04
  19  Prefactor     .10000E-03    5.4774        .81212E-07** at limit **
  20  Prefactor     .10068E-03    17.280       -.12097E-05** at limit **
  21  norm          .10000E-03    .53146        .16614E-07** at limit **
  22  Prefactor     .10000E-03    6.2922        .24497E-06** at limit **
  23  Prefactor     .10072E-03    5.1122       -.13243E-05** at limit **
  24  Normalizat    1.2429        .19126       -.76589E-06    .13768E-03
  25  Prefactor     .74514        .11681        .30099E-06    .11950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1314
  norm       = 1.39648
  norm       = 1.78673
  Prefactor  = 22.953
  norm       = 0.0001
  Prefactor  = 18.2708
  Prefactor  = 18.6422
  Prefactor  = 93.3042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.1599
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0637
  Prefactor  = 0.0001
  Prefactor  = 0.000100682
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100724
  Normalizat = 1.24294
  Prefactor  = 0.745145
 **********
 **   18 **HESSE 
 **********

 FCN=   7170.075     FROM HESSE     STATUS=OK           439 CALLS     3387 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.131        9.1788        .11054E-03   -1.4983    
   4  norm          1.3965        1.1178        .36741E-04   -1.5472    
   5  norm          1.7867        1.7282        .88527E-04   -1.5441    
   6  Prefactor     22.953        14.290        .83604E-04   -1.4749    
   7  norm          .10000E-03    8.8270        .22973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.271        34.813        .93727E-04   -1.4853    
   9  Prefactor     18.642        16.492        .92753E-04   -1.4844    
  10  Prefactor     93.304        61.739        .41609E-04   -1.3773    
  11  Prefactor     .10000E-03    2.0272        .11655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.4130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.160        12.839        .85086E-04   -1.4766    
  15  Prefactor     .10000E-03    62.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    30.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.064        37.367        .12041E-03   -1.5043    
  19  Prefactor     .10000E-03    5.4910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10068E-03    20.274        .99074E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .75269        .11608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    73.268        .39933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10072E-03    63.936        .36559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2429        .21865        .27104E-03   -.85286    
  25  Prefactor     .74514        .13490        .22000E-03   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.103e-08
Minuit parameter uncertainties:
  1  0.000151936
  2  5.33023e-06
  3  9.17978
  4  1.11784
  5  1.72822
  6  14.2924
  7  1.88603e-06
  8  34.8517
  9  16.4958
  10  61.7815
  11  5.19594e-06
  12  5.63193e-05
  13  2.26339e-06
  14  12.8401
  15  2.06505e-05
  16  7.54301e-06
  17  0.000152745
  18  37.4459
  19  8.06193e-07
  20  0.00744165
  21  3.05134e-06
  22  0.000863765
  23  0.0136265
  24  0.218817
  25  0.134964
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  9.330e+01  6.178e+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:  7.451e-01  1.350e-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.243e+00  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 9.80e-08 +/- 6.48e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 1.84e-05

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

Saving results to:
/scratch/kocevski/931250/likelihoodResults_312422401_312681601_4FGL_J0749.9+1823_daily_bin282.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) = 7168.5309035
delta logL = 1.54417759318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7168.49467503
delta logL = 1.5804060623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.284       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3168       1.0000          .0000       10.000    
     3 'Normalizat'    1.1278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80069       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=   7168.495     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      294 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.287        103.77        .11790E-03    .31277E-02
   2  Index         4.3169        3.2502        .37805E-02    .93482E-03
   3  Normalizat    1.1280        .20105        .28171E-03    .10073E-02
   4  Prefactor     .80068        .12845        .21320E-03    .11225E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2869
  Index      = 4.31686
  Normalizat = 1.12796
  Prefactor  = 0.800679
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.495     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.287        27.543        .47159E-05   -1.5036    
   2  Index         4.3169        1.4041        .15122E-03   -.13706    
   3  Normalizat    1.1280        .21739        .56342E-04   -.88859    
   4  Prefactor     .80068        .13670        .42639E-04   -.99703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57583e-09
Minuit parameter uncertainties:
  1  27.5738
  2  1.42357
  3  0.217564
  4  0.13676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931250': 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) = 7168.4946732
delta logL = 1.58040789943

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.129e+01  2.757e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  4.317e+00  1.424e+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.007e-01  1.368e-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.128e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.35
Ra Dec: 117.485 18.387
Photon Index (Free Index): 4.32 +/- 1.42
Photon Flux (Free Index): 2.02e-07 +/- 9.24e-08
Energy Flux (Free Index): 2.88e-05 +/- 1.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/931250/cmap_HighResolution_312422401_312681601_4FGL_J0749.9+1823_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', photon_flux='9.80e-08', energy_flux2='2.88e-05', photon_flux_error='6.48e-08', dlogl='1.58e+00', energy_flux='2.78e-05', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-08-28 15:51:32.926120', photon_index_error2='1.42', photon_index2='4.32', ts='3.53', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='1.39e-05', EG='1.24', time_epoch_completed='1630191092.93', return_code='0', job_id='931250', GAL2='0.80', EG2='1.13', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='9.24e-08', ts2='7.35', photon_index='2.52' WHERE bin_id='282' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 931250: <4FGL_J0749.9+1823_daily_bin282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin282 117.485 18.387 312422401 312681601 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 :                                   773.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

