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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin703
RA = 117.485, Dec = 18.387
tmin = 421545601, tmax = 421804801
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='933256', job_status='RUN', time_executed='2021-08-28 15:43:15.419236', time_epoch_executed='1630190595.42' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933256/ft1_4FGL_J0749.9+1823_daily_bin703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933256/ft2_4FGL_J0749.9+1823_daily_bin703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933256/ft1_4FGL_J0749.9+1823_daily_bin703.fits outfile=/scratch/kocevski/933256/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin703.fits ra=117.485 dec=18.387 rad=12.0 tmin=421545601.0 tmax=421804801.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.91
user 3.35
sys 0.47

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933256/ft2_4FGL_J0749.9+1823_daily_bin703.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/933256/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin703.fits evtable="EVENTS" outfile="/scratch/kocevski/933256/ft1_filtered_4FGL_J0749.9+1823_daily_bin703.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.82
user 0.31
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933256/ft1_filtered_4FGL_J0749.9+1823_daily_bin703.fits" evtable="EVENTS" scfile=/scratch/kocevski/933256/ft2_4FGL_J0749.9+1823_daily_bin703.fits sctable="SC_DATA" outfile=/scratch/kocevski/933256/ltcube_421545601_421804801_4FGL_J0749.9+1823_daily_bin703.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/933256/ft2_4FGL_J0749.9+1823_daily_bin703.fits
.....................!
real 12.36
user 11.57
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933256/ft1_filtered_4FGL_J0749.9+1823_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/933256/ft2_4FGL_J0749.9+1823_daily_bin703.fits sctable="SC_DATA" expcube=/scratch/kocevski/933256/ltcube_421545601_421804801_4FGL_J0749.9+1823_daily_bin703.fits outfile=/scratch/kocevski/933256/expmap_421545601_421804801_4FGL_J0749.9+1823_daily_bin703.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/933256/ltcube_421545601_421804801_4FGL_J0749.9+1823_daily_bin703.fits
.....................!
real 193.40
user 186.04
sys 5.91

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/933256/ft1_filtered_4FGL_J0749.9+1823_daily_bin703.fits scfile=/scratch/kocevski/933256/ft2_4FGL_J0749.9+1823_daily_bin703.fits outfile=/scratch/kocevski/933256/cmap_421545601_421804801_4FGL_J0749.9+1823_daily_bin703.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.87
user 0.38
sys 0.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933256/ft1_filtered_4FGL_J0749.9+1823_daily_bin703.fits scfile=/scratch/kocevski/933256/ft2_4FGL_J0749.9+1823_daily_bin703.fits outfile=/scratch/kocevski/933256/cmap_HighResolution_421545601_421804801_4FGL_J0749.9+1823_daily_bin703.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.92
user 0.42
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3547       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5801       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    80.655       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7165       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.273       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.703       1.0000         .10000E-03   10000.    
    16 'norm      '    24.775       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4185       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .67362       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.757       1.0000         .10000E-03   10000.    
    21 'norm      '    .38544E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .85664       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2287       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95784       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=   6955.721     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2928 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.058        .14148E-05** at limit **
   2  Prefactor     .10000E-03    6.8257       -.11991E-06** at limit **
   3  norm          .10000E-03    20.674       -.34115E-05** at limit **
   4  norm          .10000E-03    .46337        .26292E-07** at limit **
   5  norm          3.3556        2.9953        .81354E-07   -.45738E-04
   6  Prefactor     2.5734        29.302        .23138E-05   -.90018E-04
   7  norm          3.8618        3.8606       -.68176E-06   -.33392E-03
   8  Prefactor     .10000E-03    21.170       -.34544E-05** at limit **
   9  Prefactor     .10000E-03    33.074       -.12093E-05** at limit **
  10  Prefactor     80.637        50.820       -.16103E-04    .19133E-04
  11  Prefactor     2.7164        3.9025       -.51071E-05   -.11388E-02
  12  Prefactor     .10000E-03    18.068        .13827E-05** at limit **
  13  norm          .10000E-03    5.8190        .31890E-08** at limit **
  14  Prefactor     29.277        14.580       -.26847E-06    .16092E-03
  15  Prefactor     12.804        385.03        .27799E-03    .22957E-04
  16  norm          24.754        55.348       -.35087E-04    .57761E-06
  17  Prefactor     2.4145        57.675       -.11265E-04   -.55726E-04
  18  Prefactor     .10000E-03    30.009        .83856E-05** at limit **
  19  Prefactor     .64486        9.7839       -.42930E-05    .55933E-03
  20  Prefactor     26.754        27.428       -.36351E-05   -.17265E-03
  21  norm          .10001E-03    .67541        .47433E-06** at limit **
  22  Prefactor     .84272        8.7121       -.11997E-05   -.26477E-03
  23  Prefactor     .10000E-03    5.4036       -.14856E-06** at limit **
  24  Normalizat    1.2285        .20697        .39965E-05    .69426E-04
  25  Prefactor     .95795        .12866       -.12521E-05    .45642E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.35563
  Prefactor  = 2.57338
  norm       = 3.86177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.6371
  Prefactor  = 2.71638
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.2772
  Prefactor  = 12.8043
  norm       = 24.7543
  Prefactor  = 2.41448
  Prefactor  = 0.0001
  Prefactor  = 0.644864
  Prefactor  = 26.754
  norm       = 0.000100012
  Prefactor  = 0.842715
  Prefactor  = 0.0001
  Normalizat = 1.22854
  Prefactor  = 0.957951
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.721     FROM HESSE     STATUS=OK           435 CALLS     3363 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    21.283        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .69485        .10958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3556        2.9002        .82185E-04   -1.5342    
   6  Prefactor     2.5734        27.103        .25408E-03   -1.5387    
   7  norm          3.8618        3.8636        .15466E-03   -1.5315    
   8  Prefactor     .10000E-03    21.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     80.637        50.189        .44721E-04   -1.3910    
  11  Prefactor     2.7164        3.9162        .17974E-03   -1.5378    
  12  Prefactor     .10000E-03    18.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.8203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.277        14.587        .74051E-04   -1.4625    
  15  Prefactor     12.804        383.16        .11239E-03   -1.4992    
  16  norm          24.754        55.315        .80479E-04   -1.4712    
  17  Prefactor     2.4145        58.008        .26320E-03   -1.5397    
  18  Prefactor     .10000E-03    30.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .64486        79.962        .50031E-02   -1.5547    
  20  Prefactor     26.754        27.715        .77446E-04   -1.4673    
  21  norm          .10001E-03    1.6525        .22423E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .84272        31.296        .45321E-02   -1.5524    
  23  Prefactor     .10000E-03    5.4537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2285        .24257        .28435E-03   -.85725    
  25  Prefactor     .95795        .14983        .21418E-03   -.94145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28929e-08
Minuit parameter uncertainties:
  1  7.46825e-06
  2  1.11653e-05
  3  1.21612e-05
  4  4.09532e-07
  5  2.90031
  6  16.7123
  7  3.86385
  8  2.18967e-05
  9  0.000243591
  10  50.2158
  11  3.91656
  12  1.77835e-05
  13  2.23105e-06
  14  14.5892
  15  141.09
  16  55.4296
  17  23.6947
  18  0.000116156
  19  14.3802
  20  27.7279
  21  0.000280962
  22  10.2762
  23  7.02047e-06
  24  0.242788
  25  0.149895
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  8.064e+01  5.022e+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:  9.580e-01  1.499e-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.229e+00  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.03
Ra Dec: 117.485 18.387
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 8.47e-08 +/- 5.27e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.49e-05

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) = 6955.6859924
delta logL = 0.034513231526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6955.68259221
delta logL = 0.0379134189516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.387       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3797       1.0000          .0000       10.000    
     3 'Normalizat'    1.2368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95377       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6955.683     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      260 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.387        1157.2        .10566E-02   -.82750E-04
   2  Index         2.3797        6.1897        .18453        .72125E-04
   3  Normalizat    1.2366        .95170E-01    .64109E-01    .97385E-05
   4  Prefactor     .95389        .59984E-01    .45687E-01    .72716E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.3869
  Index      = 2.37973
  Normalizat = 1.23663
  Prefactor  = 0.953892
 **********
 **   18 **HESSE 
 **********

 FCN=   6955.683     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.387        63.875        .42265E-04   -1.3804    
   2  Index         2.3797        .51331        .65729E-02   -.55160    
   3  Normalizat    1.2366        .22014        .28358E-03   -.85478    
   4  Prefactor     .95389        .14733        .21457E-03   -.94283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45753e-09
Minuit parameter uncertainties:
  1  63.9238
  2  0.51456
  3  0.220304
  4  0.147391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933256': 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) = 6955.68259183
delta logL = 0.0379137994587

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  9.039e+01  6.392e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.380e+00  5.146e-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:  9.539e-01  1.474e-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.237e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 117.485 18.387
Photon Index (Free Index): 2.38 +/- 0.51
Photon Flux (Free Index): 7.86e-08 +/- 5.28e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.93e-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/933256/cmap_HighResolution_421545601_421804801_4FGL_J0749.9+1823_daily_bin703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.47e-08', energy_flux2='2.65e-05', photon_flux_error='5.27e-08', dlogl='3.79e-02', energy_flux='2.40e-05', photon_flux2='7.86e-08', job_status='DONE', time_completed='2021-08-28 15:54:41.185298', photon_index_error2='0.51', photon_index2='2.38', ts='5.03', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='1.23', time_epoch_completed='1630191281.19', return_code='0', job_id='933256', GAL2='0.95', EG2='1.24', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.28e-08', ts2='5.11', photon_index='2.52' WHERE bin_id='703' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 15:54:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 933256: <4FGL_J0749.9+1823_daily_bin703> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin703> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 28 15:40:59 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:41:02 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:41:02 2021
Terminated at Sat Aug 28 15:54:42 2021
Results reported at Sat Aug 28 15:54:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin703 117.485 18.387 421545601 421804801 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 :                                   684.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            823 sec.

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

