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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin381
RA = 117.485, Dec = 18.387
tmin = 338083201, tmax = 338342401
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='931412', job_status='RUN', time_executed='2021-08-28 15:38:45.877939', time_epoch_executed='1630190325.88' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931412

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931412/ft1_4FGL_J0749.9+1823_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931412/ft2_4FGL_J0749.9+1823_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931412/ft1_4FGL_J0749.9+1823_daily_bin381.fits outfile=/scratch/kocevski/931412/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin381.fits ra=117.485 dec=18.387 rad=12.0 tmin=338083201.0 tmax=338342401.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 10.00
user 6.38
sys 3.58

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931412/ft2_4FGL_J0749.9+1823_daily_bin381.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/931412/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin381.fits evtable="EVENTS" outfile="/scratch/kocevski/931412/ft1_filtered_4FGL_J0749.9+1823_daily_bin381.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 3.79
user 0.32
sys 3.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931412/ft1_filtered_4FGL_J0749.9+1823_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/931412/ft2_4FGL_J0749.9+1823_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/931412/ltcube_338083201_338342401_4FGL_J0749.9+1823_daily_bin381.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/931412/ft2_4FGL_J0749.9+1823_daily_bin381.fits
.....................!
real 15.50
user 11.25
sys 4.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931412/ft1_filtered_4FGL_J0749.9+1823_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/931412/ft2_4FGL_J0749.9+1823_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/931412/ltcube_338083201_338342401_4FGL_J0749.9+1823_daily_bin381.fits outfile=/scratch/kocevski/931412/expmap_338083201_338342401_4FGL_J0749.9+1823_daily_bin381.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/931412/ltcube_338083201_338342401_4FGL_J0749.9+1823_daily_bin381.fits
.....................!
real 195.02
user 184.92
sys 9.58

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/931412/ft1_filtered_4FGL_J0749.9+1823_daily_bin381.fits scfile=/scratch/kocevski/931412/ft2_4FGL_J0749.9+1823_daily_bin381.fits outfile=/scratch/kocevski/931412/cmap_338083201_338342401_4FGL_J0749.9+1823_daily_bin381.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 3.76
user 0.39
sys 3.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931412/ft1_filtered_4FGL_J0749.9+1823_daily_bin381.fits scfile=/scratch/kocevski/931412/ft2_4FGL_J0749.9+1823_daily_bin381.fits outfile=/scratch/kocevski/931412/cmap_HighResolution_338083201_338342401_4FGL_J0749.9+1823_daily_bin381.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 3.76
user 0.36
sys 3.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.696       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9037       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8458       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59704       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.447       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.383       1.0000         .10000E-03   10000.    
    13 'norm      '    19.296       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10761E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.319       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.974       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .67268E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3670       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.691       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81940       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0947       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=   6386.985     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2945 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.478       -.32443E-06** at limit **
   2  Prefactor     .10000E-03    3.3305        .21009E-07** at limit **
   3  norm          14.698        11.252        .36520E-07    .36179E-04
   4  norm          1.9039        1.2299        .35313E-07    .43762E-03
   5  norm          1.8463        1.2143        .31921E-07    .16880E-04
   6  Prefactor     .10000E-03    4.2980        .11687E-06** at limit **
   7  norm          .10000E-03    2.1681       -.34104E-06** at limit **
   8  Prefactor     .10000E-03    15.491        .16759E-07** at limit **
   9  Prefactor     .63303        15.794        .74330E-05   -.27758E-04
  10  Prefactor     62.459        42.958       -.94931E-06   -.59088E-04
  11  Prefactor     .10000E-03    .71444        .41501E-07** at limit **
  12  Prefactor     22.378        24.340       -.17678E-06   -.52113E-04
  13  norm          19.310        17.136       -.12423E-05   -.45167E-04
  14  Prefactor     .10000E-03    41.580        .16793E-04** at limit **
  15  Prefactor     .10000E-03    110.75        .44292E-05** at limit **
  16  norm          .10000E-03    50.323        .34976E-05** at limit **
  17  Prefactor     10.920        23.224       -.33683E-06    .93811E-06
  18  Prefactor     71.308        53.720        .12746E-05    .13603E-04
  19  Prefactor     18.978        17.019        .12933E-06    .18094E-04
  20  Prefactor     .10000E-03    32.708        .10995E-04** at limit **
  21  norm          .10000E-03    .46667        .23613E-06** at limit **
  22  Prefactor     3.3667        9.0420       -.28167E-06    .20012E-03
  23  Prefactor     22.693        12.561       -.17714E-08    .31021E-04
  24  Normalizat    .81926        .20047       -.83108E-06   -.24853E-03
  25  Prefactor     1.0947        .13710       -.12911E-07   -.25706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6982
  norm       = 1.90391
  norm       = 1.84632
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.633031
  Prefactor  = 62.4592
  Prefactor  = 0.0001
  Prefactor  = 22.378
  norm       = 19.31
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9205
  Prefactor  = 71.3082
  Prefactor  = 18.9776
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 3.36666
  Prefactor  = 22.6927
  Normalizat = 0.819263
  Prefactor  = 1.09473
 **********
 **   18 **HESSE 
 **********

 FCN=   6386.985     FROM HESSE     STATUS=OK           433 CALLS     3378 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3451        .14243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.698        11.266        .10448E-03   -1.4941    
   4  norm          1.9039        1.2229        .68176E-04   -1.5432    
   5  norm          1.8463        1.2167        .69052E-04   -1.5436    
   6  Prefactor     .10000E-03    4.3343        .16162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.8612        .21927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .63303        58.479        .43662E-02   -1.5549    
  10  Prefactor     62.459        42.990        .50778E-04   -1.4126    
  11  Prefactor     .10000E-03    .71715        .65960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.378        24.273        .84663E-04   -1.4762    
  13  norm          19.310        17.168        .91180E-04   -1.4829    
  14  Prefactor     .10000E-03    57.312        .45570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    110.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    50.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.920        23.202        .12122E-03   -1.5047    
  18  Prefactor     71.308        53.698        .47536E-04   -1.4017    
  19  Prefactor     18.978        17.088        .91949E-04   -1.4836    
  20  Prefactor     .10000E-03    102.52        .59168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .59313        .10282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3667        8.9325        .22053E-03   -1.5341    
  23  Prefactor     22.693        12.559        .84088E-04   -1.4755    
  24  Normalizat    .81926        .22778        .31214E-03   -.99358    
  25  Prefactor     1.0947        .15767        .19556E-03   -.89635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49795e-08
Minuit parameter uncertainties:
  1  4.88248e-06
  2  4.22001e-07
  3  11.2676
  4  1.22295
  5  1.21669
  6  4.01051e-05
  7  0.000176646
  8  2.0072e-05
  9  12.1799
  10  43.0114
  11  6.93315e-07
  12  24.2839
  13  17.1723
  14  7.95447e-05
  15  0.000273589
  16  0.000180237
  17  23.2209
  18  53.7345
  19  17.0923
  20  0.00141241
  21  5.38445e-06
  22  8.93602
  23  12.5608
  24  0.228043
  25  0.157741
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  6.246e+01  4.301e+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.095e+00  1.577e-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.193e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.58
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.56e-08 +/- 4.51e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.28e-05

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

Saving results to:
/scratch/kocevski/931412/likelihoodResults_338083201_338342401_4FGL_J0749.9+1823_daily_bin381.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) = 6386.57351434
delta logL = 0.411549258247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6386.57261917
delta logL = 0.412444424688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.185       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0635       1.0000          .0000       10.000    
     3 'Normalizat'    .84022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0829       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=   6386.573     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      293 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.228        61.366        .21041E-03    .97257E-06
   2  Index         2.0639        .45186        .70570E-02    .10924E-04
   3  Normalizat    .84020        .21590        .30851E-03    .10248E-03
   4  Prefactor     1.0829        .15408        .19639E-03   -.91012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.2279
  Index      = 2.0639
  Normalizat = 0.840198
  Prefactor  = 1.08287
 **********
 **   18 **HESSE 
 **********

 FCN=   6386.573     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.228        60.942        .84164E-05   -1.3795    
   2  Index         2.0639        .44863        .28228E-03   -.62762    
   3  Normalizat    .84020        .21603        .12340E-04   -.98594    
   4  Prefactor     1.0829        .15416        .39278E-04   -.90016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45833e-10
Minuit parameter uncertainties:
  1  60.9834
  2  0.449555
  3  0.216251
  4  0.154228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931412': 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) = 6386.57261839
delta logL = 0.412445209935

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  9.123e+01  6.098e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.064e+00  4.496e-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.083e+00  1.542e-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.402e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 117.485 18.387
Photon Index (Free Index): 2.06 +/- 0.45
Photon Flux (Free Index): 5.45e-08 +/- 4.04e-08
Energy Flux (Free Index): 3.24e-05 +/- 3.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/931412/cmap_HighResolution_338083201_338342401_4FGL_J0749.9+1823_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='6.56e-08', energy_flux2='3.24e-05', photon_flux_error='4.51e-08', dlogl='4.12e-01', energy_flux='1.86e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-08-28 15:52:00.385413', photon_index_error2='0.45', photon_index2='2.06', ts='3.58', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='3.03e-05', EG='0.82', time_epoch_completed='1630191120.39', return_code='0', job_id='931412', GAL2='1.08', EG2='0.84', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='4.04e-08', ts2='4.38', photon_index='2.52' WHERE bin_id='381' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:52:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 931412: <4FGL_J0749.9+1823_daily_bin381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin381 117.485 18.387 338083201 338342401 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 :                                   833.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

