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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin767
RA = 117.485, Dec = 18.387
tmin = 438134401, tmax = 438393601
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='934567', job_status='RUN', time_executed='2021-08-28 15:48:48.543424', time_epoch_executed='1630190928.54' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934567

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934567/ft1_4FGL_J0749.9+1823_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934567/ft2_4FGL_J0749.9+1823_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934567/ft1_4FGL_J0749.9+1823_daily_bin767.fits outfile=/scratch/kocevski/934567/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin767.fits ra=117.485 dec=18.387 rad=12.0 tmin=438134401.0 tmax=438393601.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 6.54
user 5.96
sys 0.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934567/ft1_filtered_4FGL_J0749.9+1823_daily_bin767.fits" evtable="EVENTS" scfile=/scratch/kocevski/934567/ft2_4FGL_J0749.9+1823_daily_bin767.fits sctable="SC_DATA" outfile=/scratch/kocevski/934567/ltcube_438134401_438393601_4FGL_J0749.9+1823_daily_bin767.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/934567/ft2_4FGL_J0749.9+1823_daily_bin767.fits
.....................!
real 12.72
user 11.98
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934567/ft1_filtered_4FGL_J0749.9+1823_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/934567/ft2_4FGL_J0749.9+1823_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/934567/ltcube_438134401_438393601_4FGL_J0749.9+1823_daily_bin767.fits outfile=/scratch/kocevski/934567/expmap_438134401_438393601_4FGL_J0749.9+1823_daily_bin767.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/934567/ltcube_438134401_438393601_4FGL_J0749.9+1823_daily_bin767.fits
.....................!
real 190.29
user 184.78
sys 5.15

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/934567/ft1_filtered_4FGL_J0749.9+1823_daily_bin767.fits scfile=/scratch/kocevski/934567/ft2_4FGL_J0749.9+1823_daily_bin767.fits outfile=/scratch/kocevski/934567/cmap_438134401_438393601_4FGL_J0749.9+1823_daily_bin767.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.82
user 0.36
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934567/ft1_filtered_4FGL_J0749.9+1823_daily_bin767.fits scfile=/scratch/kocevski/934567/ft2_4FGL_J0749.9+1823_daily_bin767.fits outfile=/scratch/kocevski/934567/cmap_HighResolution_438134401_438393601_4FGL_J0749.9+1823_daily_bin767.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.87
user 0.37
sys 0.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.9525       1.0000         .10000E-03   10000.    
     4 'norm      '    .11549E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3272       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0967       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.485       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9058       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.496       1.0000         .10000E-03   10000.    
    13 'norm      '    39.199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    87.970       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .85649       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2199       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96341       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0984       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=   6233.184     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3587 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.484       -.28112E-06** at limit **
   2  Prefactor     .10000E-03    5.2874       -.15998E-05** at limit **
   3  norm          4.9510        13.246        .17809E-05   -.54665E-03
   4  norm          .10000E-03    .66861        .87934E-07** at limit **
   5  norm          2.3273        1.4357        .27171E-07    .48516E-04
   6  Prefactor     .10000E-03    4.7093        .10777E-06** at limit **
   7  norm          1.0929        3.9884       -.22385E-05   -.69965E-03
   8  Prefactor     20.460        52.781        .16516E-05    .19221E-03
   9  Prefactor     .10000E-03    6.5179       -.10924E-05** at limit **
  10  Prefactor     .10000E-03    390.64       -.68623E-05** at limit **
  11  Prefactor     4.9058        3.8662        .65335E-07   -.13375E-03
  12  Prefactor     28.493        57.313        .12577E-04    .26241E-03
  13  norm          39.197        22.355        .13007E-05    .56021E-04
  14  Prefactor     .10000E-03    7.4981        .22889E-05** at limit **
  15  Prefactor     .10000E-03    47.900        .55747E-06** at limit **
  16  norm          87.963        81.358       -.27984E-05   -.38653E-04
  17  Prefactor     .10000E-03    8.3870       -.36172E-05** at limit **
  18  Prefactor     .10000E-03    8.7685        .28364E-05** at limit **
  19  Prefactor     .10000E-03    8.5916       -.66869E-06** at limit **
  20  Prefactor     .10000E-03    5.4193        .18697E-05** at limit **
  21  norm          .85614        1.0819       -.12512E-06   -.50194E-03
  22  Prefactor     3.2199        5.8781        .23277E-05   -.16558E-02
  23  Prefactor     .10000E-03    2.1911       -.34656E-07** at limit **
  24  Normalizat    .96333        .19868       -.12091E-05    .86735E-04
  25  Prefactor     1.0985        .13586       -.24994E-06    .56298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.95099
  norm       = 0.0001
  norm       = 2.32726
  Prefactor  = 0.0001
  norm       = 1.09285
  Prefactor  = 20.4599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.90578
  Prefactor  = 28.4933
  norm       = 39.1968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 87.9631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.856144
  Prefactor  = 3.21991
  Prefactor  = 0.0001
  Normalizat = 0.963331
  Prefactor  = 1.09854
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.184     FROM HESSE     STATUS=OK           419 CALLS     4006 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3161        .17714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.9510        14.122        .90360E-03   -1.5263    
   4  norm          .10000E-03    2.9389        .12329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3273        1.4382        .71864E-04   -1.5403    
   6  Prefactor     .10000E-03    4.7325        .16718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0929        3.9639        .25106E-03   -1.5499    
   8  Prefactor     20.460        51.737        .88496E-04   -1.4803    
   9  Prefactor     .10000E-03    6.5168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    401.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9058        3.8869        .12939E-03   -1.5265    
  12  Prefactor     28.493        57.558        .75051E-04   -1.4640    
  13  norm          39.197        22.292        .64019E-04   -1.4455    
  14  Prefactor     .10000E-03    7.4932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          87.963        81.381        .21419E-03   -1.3829    
  17  Prefactor     .10000E-03    8.3754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4258        .17943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .85614        .98567        .88309E-03   -1.5523    
  22  Prefactor     3.2199        8.5482        .11288E-02   -1.5349    
  23  Prefactor     .10000E-03    2.1920        .11413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96333        .22771        .29573E-03   -.94269    
  25  Prefactor     1.0985        .15552        .19644E-03   -.89513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59799e-09
Minuit parameter uncertainties:
  1  8.24792e-06
  2  3.27561e-05
  3  14.1318
  4  1.36533e-05
  5  1.4382
  6  8.62857e-06
  7  3.96488
  8  51.8511
  9  1.28267e-05
  10  0.000522984
  11  3.8871
  12  57.6708
  13  22.2972
  14  5.00264e-05
  15  4.43316e-05
  16  81.4839
  17  0.000109724
  18  8.70322e-05
  19  1.61748e-05
  20  4.59415e-05
  21  0.985685
  22  8.55141
  23  2.2341e-07
  24  0.227939
  25  0.155584
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  5.230e-04  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.099e+00  1.556e-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:  9.633e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/934567/likelihoodResults_438134401_438393601_4FGL_J0749.9+1823_daily_bin767.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) = 6233.1844375
delta logL = -1.17455429063e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6233.18442579
delta logL = -3.86926330975e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4989       1.0000          .0000       10.000    
     3 'Normalizat'    .96333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0986       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=   6233.184     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      304 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67403E-02    57.398        .14650       -.31908E-02
   2  Index         2.6233        6.3059        .50000       -.50235E-03
   3  Normalizat    .96332        .57450E-02    .29573E-03    .80462E-03
   4  Prefactor     1.0985        .40725E-02    .19644E-03    .10223E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00674025
  Index      = 2.62327
  Normalizat = 0.963325
  Prefactor  = 1.09854
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.184     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      343 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67403E-02    79.078        .12836       -1.5692    
   2  Index         2.6233        6.2940        .50000       -.49536    
   3  Normalizat    .96332        .60033E-02    .59146E-04   -.94269    
   4  Prefactor     1.0985        .42555E-02    .39288E-04   -.89513    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72084e-09
Minuit parameter uncertainties:
  1  1.45119
  2  5.25332
  3  0.00600326
  4  0.00425551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934567': 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): 102
logL (Free Index) = 6233.18442297
delta logL = 2.78257994069e-06

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  6.740e-03  1.451e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.623e+00  5.253e+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:  1.099e+00  4.256e-03  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:  9.633e-01  6.003e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 117.485 18.387

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/934567/cmap_HighResolution_438134401_438393601_4FGL_J0749.9+1823_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-08-28 16:01:51.184134', job_id='934567', GAL2='1.10', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630191711.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.78e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='767' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:01:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 934567: <4FGL_J0749.9+1823_daily_bin767> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin767> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 15:45:25 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:45:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 15:45:26 2021
Terminated at Sat Aug 28 16:01:52 2021
Results reported at Sat Aug 28 16:01:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin767 117.485 18.387 438134401 438393601 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 :                                   774.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             238.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

