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


Performing analysis on: 4FGL_J0749.9+1823_daily_bin800
RA = 117.485, Dec = 18.387
tmin = 446688001, tmax = 446947201
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='934617', job_status='RUN', time_executed='2021-08-28 15:49:40.415677', time_epoch_executed='1630190980.42' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='800'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934617/ft1_4FGL_J0749.9+1823_daily_bin800.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934617/ft2_4FGL_J0749.9+1823_daily_bin800.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934617/ft1_4FGL_J0749.9+1823_daily_bin800.fits outfile=/scratch/kocevski/934617/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin800.fits ra=117.485 dec=18.387 rad=12.0 tmin=446688001.0 tmax=446947201.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.06
user 3.18
sys 0.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934617/ft1_filtered_4FGL_J0749.9+1823_daily_bin800.fits" evtable="EVENTS" scfile=/scratch/kocevski/934617/ft2_4FGL_J0749.9+1823_daily_bin800.fits sctable="SC_DATA" outfile=/scratch/kocevski/934617/ltcube_446688001_446947201_4FGL_J0749.9+1823_daily_bin800.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/934617/ft2_4FGL_J0749.9+1823_daily_bin800.fits
.....................!
real 12.68
user 11.56
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934617/ft1_filtered_4FGL_J0749.9+1823_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/934617/ft2_4FGL_J0749.9+1823_daily_bin800.fits sctable="SC_DATA" expcube=/scratch/kocevski/934617/ltcube_446688001_446947201_4FGL_J0749.9+1823_daily_bin800.fits outfile=/scratch/kocevski/934617/expmap_446688001_446947201_4FGL_J0749.9+1823_daily_bin800.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/934617/ltcube_446688001_446947201_4FGL_J0749.9+1823_daily_bin800.fits
.....................!
real 193.63
user 186.41
sys 6.05

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/934617/ft1_filtered_4FGL_J0749.9+1823_daily_bin800.fits scfile=/scratch/kocevski/934617/ft2_4FGL_J0749.9+1823_daily_bin800.fits outfile=/scratch/kocevski/934617/cmap_446688001_446947201_4FGL_J0749.9+1823_daily_bin800.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.19
user 0.36
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934617/ft1_filtered_4FGL_J0749.9+1823_daily_bin800.fits scfile=/scratch/kocevski/934617/ft2_4FGL_J0749.9+1823_daily_bin800.fits outfile=/scratch/kocevski/934617/cmap_HighResolution_446688001_446947201_4FGL_J0749.9+1823_daily_bin800.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.20
user 0.39
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6314       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.4140       1.0000         .10000E-03   10000.    
     4 'norm      '    .72284       1.0000         .10000E-03   10000.    
     5 'norm      '    6.1700       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0557       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.849       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   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 '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.843       1.0000         .10000E-03   10000.    
    16 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.632       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.500       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1036       1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3261       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0064       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89404       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=   6515.573     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2903 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6323        59.030        .51720E-06   -.21043E-05
   2  Prefactor     .10000E-03    16.055        .11648E-05** at limit **
   3  norm          6.4140        12.769        .64413E-06   -.21002E-04
   4  norm          .72279        .71588       -.36375E-08   -.71768E-05
   5  norm          6.1701        3.0645       -.65493E-08   -.10364E-04
   6  Prefactor     5.0551        16.147        .12745E-06   -.54516E-05
   7  norm          3.8629        4.2859        .28645E-06    .15515E-04
   8  Prefactor     16.856        29.507       -.65755E-06   -.32114E-05
   9  Prefactor     .10000E-03    5.7826        .88306E-08** at limit **
  10  Prefactor     .10000E-03    41.776        .83300E-06** at limit **
  11  Prefactor     .10000E-03    1.2294        .63717E-07** at limit **
  12  Prefactor     .10000E-03    25.541       -.66555E-06** at limit **
  13  norm          .10000E-03    6.1393       -.12054E-06** at limit **
  14  Prefactor     .10000E-03    5.0190       -.21665E-07** at limit **
  15  Prefactor     42.937        127.89       -.10589E-04   -.78042E-05
  16  norm          .10000E-03    26.366       -.92504E-06** at limit **
  17  Prefactor     38.637        31.128       -.29200E-06   -.25751E-05
  18  Prefactor     .10000E-03    13.158       -.82540E-06** at limit **
  19  Prefactor     24.500        19.640        .13053E-06    .39337E-06
  20  Prefactor     3.1053        19.352        .13363E-05   -.42340E-04
  21  norm          .10000E-03    .52331        .64662E-07** at limit **
  22  Prefactor     .10000E-03    8.1586        .11274E-06** at limit **
  23  Prefactor     7.3267        7.9587        .33392E-06   -.19120E-04
  24  Normalizat    1.0064        .19717       -.17930E-06   -.40831E-04
  25  Prefactor     .89408        .12623        .54295E-08   -.61912E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.63232
  Prefactor  = 0.0001
  norm       = 6.41403
  norm       = 0.722786
  norm       = 6.1701
  Prefactor  = 5.05511
  norm       = 3.86285
  Prefactor  = 16.8563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.9366
  norm       = 0.0001
  Prefactor  = 38.6369
  Prefactor  = 0.0001
  Prefactor  = 24.5001
  Prefactor  = 3.10527
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.32672
  Normalizat = 1.00636
  Prefactor  = 0.894078
 **********
 **   18 **HESSE 
 **********

 FCN=   6515.573     FROM HESSE     STATUS=OK           433 CALLS     3336 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6323        58.956        .72583E-03   -1.5155    
   2  Prefactor     .10000E-03    16.481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.4140        12.734        .79239E-03   -1.5201    
   4  norm          .72279        .73297        .65712E-03   -1.5538    
   5  norm          6.1701        3.1230        .67707E-04   -1.5211    
   6  Prefactor     5.0551        16.459        .17883E-03   -1.5258    
   7  norm          3.8629        4.2718        .16121E-03   -1.5315    
   8  Prefactor     16.856        29.425        .97573E-04   -1.4887    
   9  Prefactor     .10000E-03    5.7867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2389        .87399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.1443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0270        .17659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.937        128.06        .30623E-03   -1.4397    
  16  norm          .10000E-03    26.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.637        31.119        .64486E-04   -1.4464    
  18  Prefactor     .10000E-03    13.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.500        19.743        .80928E-04   -1.4718    
  20  Prefactor     3.1053        19.786        .11509E-02   -1.5356    
  21  norm          .10000E-03    1.0505        .11138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3267        7.9387        .74093E-03   -1.5167    
  24  Normalizat    1.0064        .22620        .28627E-03   -.92817    
  25  Prefactor     .89408        .14567        .20134E-03   -.96348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15915e-11
Minuit parameter uncertainties:
  1  42.4828
  2  1.63305e-05
  3  12.7393
  4  0.732983
  5  3.12313
  6  16.4738
  7  4.27215
  8  29.4508
  9  1.9999e-06
  10  1.64494e-05
  11  2.86429e-06
  12  1.15547e-05
  13  4.68822e-07
  14  2.27542e-06
  15  128.896
  16  1.13047e-05
  17  31.1316
  18  5.50213e-06
  19  19.7481
  20  15.6843
  21  1.41716e-05
  22  4.32623e-06
  23  7.93987
  24  0.226416
  25  0.145732
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.645e-05  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:  8.941e-01  1.457e-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.006e+00  2.264e-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: 9.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934617/likelihoodResults_446688001_446947201_4FGL_J0749.9+1823_daily_bin800.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) = 6515.57316949
delta logL = -0.00011355040715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6515.57305474
delta logL = 1.19572177937e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19996E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2712       1.0000          .0000       10.000    
     3 'Normalizat'    1.0064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89408       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6515.565     FROM MIGRAD    STATUS=FAILED       171 CALLS      371 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72829        2068.7        .18142E-02   -.61423E-04
   2  Index         4.0366        7.4124        .88965E-02   -.21920E-04
   3  Normalizat    .99733        .29389        .28743E-03   -.15061E-03
   4  Prefactor     .89740        .13942        .20101E-03   -.49077E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6515.565     FROM SIMPLEX   STATUS=UNCHANGED    102 CALLS      473 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72829        2068.7        .36707E-03   -.61423E-04
   2  Index         4.0366        7.4124        .35339E-02   -.21920E-04
   3  Normalizat    .99733        .29389        .26217E-03   -.15061E-03
   4  Prefactor     .89740        .13942        .52207E-04   -.49077E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6515.565     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      505 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72819        23.879        .72569E-04   -.17092E-03
   2  Index         4.0367        6.8833        .35586E-03   -.15526E-04
   3  Normalizat    .99733        .22208        .11497E-04   -.14793E-03
   4  Prefactor     .89740        .14318        .40202E-04   -.48244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.728189
  Index      = 4.03666
  Normalizat = 0.997326
  Prefactor  = 0.897401
 **********
 **   18 **HESSE 
 **********

 FCN=   6515.565     FROM HESSE     STATUS=OK            23 CALLS      528 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72819        23.065        .29028E-05   -1.5537    
   2  Index         4.0367        6.8670        .14234E-04   -.19388    
   3  Normalizat    .99733        .22208        .22995E-05   -.93120    
   4  Prefactor     .89740        .14320        .80404E-05   -.96232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40582e-10
Minuit parameter uncertainties:
  1  8.19932
  2  5.03989
  3  0.222288
  4  0.143264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934617': 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) = 6515.56546294
delta logL = 0.00759299520541

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  7.282e-01  8.199e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  4.037e+00  5.040e+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.974e-01  1.433e-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.973e-01  2.223e-01  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/934617/cmap_HighResolution_446688001_446947201_4FGL_J0749.9+1823_daily_bin800.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', job_status='DONE', photon_flux_upper_limit='9.17e-08', time_completed='2021-08-28 16:01:54.730415', job_id='934617', GAL2='0.90', fit_tolerance='1e-08', EG2='1.00', EG='1.01', time_epoch_completed='1630191714.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.59e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='800' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 16:01:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 934617: <4FGL_J0749.9+1823_daily_bin800> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin800> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Aug 28 15:45:28 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 15:45:29 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:29 2021
Terminated at Sat Aug 28 16:01:55 2021
Results reported at Sat Aug 28 16:01:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin800 117.485 18.387 446688001 446947201 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 :                                   740.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

