aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 202 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7626
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0749.9+1823_daily_bin1778
RA = 117.485, Dec = 18.387
tmin = 700185601, tmax = 700444801
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='950598', job_status='RUN', time_executed='2023-03-14 00:11:39.415875', time_epoch_executed='1678777899.42' WHERE source_name='4FGL J0749.9+1823' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950598

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950598/ft1_4FGL_J0749.9+1823_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950598/ft2_4FGL_J0749.9+1823_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950598/ft1_4FGL_J0749.9+1823_daily_bin1778.fits outfile=/scratch/kocevski/950598/ft1_filteredMKT_4FGL_J0749.9+1823_daily_bin1778.fits ra=117.485 dec=18.387 rad=12.0 tmin=700185601.0 tmax=700444801.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.98
user 3.72
sys 0.23

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

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

Number of photons that the gtmktime cut: 642

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950598/ft1_filtered_4FGL_J0749.9+1823_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/950598/ft2_4FGL_J0749.9+1823_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/950598/ltcube_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.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/950598/ft2_4FGL_J0749.9+1823_daily_bin1778.fits
.....................!
real 11.78
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950598/ft1_filtered_4FGL_J0749.9+1823_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/950598/ft2_4FGL_J0749.9+1823_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/950598/ltcube_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.fits outfile=/scratch/kocevski/950598/expmap_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.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/950598/ltcube_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.fits
.....................!
real 189.50
user 184.87
sys 4.31

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/950598/ft1_filtered_4FGL_J0749.9+1823_daily_bin1778.fits scfile=/scratch/kocevski/950598/ft2_4FGL_J0749.9+1823_daily_bin1778.fits outfile=/scratch/kocevski/950598/cmap_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950598/ft1_filtered_4FGL_J0749.9+1823_daily_bin1778.fits scfile=/scratch/kocevski/950598/ft2_4FGL_J0749.9+1823_daily_bin1778.fits outfile=/scratch/kocevski/950598/cmap_HighResolution_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950598/ft1_filtered_4FGL_J0749.9+1823_daily_bin1778.fits', '/scratch/kocevski/950598/ft2_4FGL_J0749.9+1823_daily_bin1778.fits', expMap='/scratch/kocevski/950598/expmap_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.fits', expCube='/scratch/kocevski/950598/ltcube_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950598/Model_4FGL_J0749.9+1823_daily_bin1778.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  0.000e+00  1.000e+06 ( 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/950598/ft1_filtered_4FGL_J0749.9+1823_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/950598/ft2_4FGL_J0749.9+1823_daily_bin1778.fits
Exposure map: /scratch/kocevski/950598/expmap_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.fits
Exposure cube: /scratch/kocevski/950598/ltcube_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950598/Model_4FGL_J0749.9+1823_daily_bin1778.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) = 6976.27973939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.525       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5080       1.0000          .0000       .10000E+07
     3 'norm      '    .92200E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
     5 'norm      '    5.3550       1.0000          .0000       .10000E+07
     6 'norm      '    .67724E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13297E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    26.040       1.0000          .0000       .10000E+07
     9 'Prefactor '    .76445E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.1595       1.0000          .0000       .10000E+07
    11 'norm      '    .23130E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.4093       1.0000          .0000       .10000E+07
    13 'norm      '    .17987       1.0000          .0000       .10000E+07
    14 'Prefactor '    .34223E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    17.280       1.0000          .0000       .10000E+07
    16 'Prefactor '    11.433       1.0000          .0000       .10000E+07
    17 'norm      '    1.8125       1.0000          .0000       .10000E+07
    18 'Prefactor '    .15845E-05   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0438       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6976.276     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     1536 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.506        1.2795       -.26923E-06    .30665E-01
   2  Prefactor     3.5069        4.7123        .49995E-06    .19067E-02
   3  norm          .55511E-10    12.449        .34483E-05** at limit **
   4  norm          .16653E-09    1.1981        .75999E-06** at limit **
   5  norm          5.3545        1.9004       -.25321E-07   -.10436E-01
   6  norm          .55511E-10    1.0773        .33525E-06** at limit **
   7  Prefactor     .55511E-10    10.408       -.20791E-05** at limit **
   8  Prefactor     26.033        1.0272        .40235E-07    .92110E-03
   9  Prefactor     .27700E-07    150.08        .44038E-05** at limit **
  10  Prefactor     5.1598        2.9835       -.21335E-06    .31849E-02
  11  norm          .61062E-09    19.216        .10800E-04** at limit **
  12  Prefactor     3.3971        7.9924        .21096E-05    .89606E-04
  13  norm          .81601E-08    64.045        .49828E-05** at limit **
  14  Prefactor      .0000        17.623       -.99114E-05** at limit **
  15  Prefactor     17.271        2.5471        .94595E-06    .49025E-02
  16  Prefactor     11.468        1.0981       -.17747E-06    .44845E-02
  17  norm          1.8116        1.4083        .67476E-06    .12477E-01
  18  Prefactor     .55511E-10    4.5403       -.30799E-05** at limit **
  19  Normalizat    1.0438        .21989       -.95782E-04    .30125E-03
  20  Prefactor     1.0795        .15057        .40572E-04    .44884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.5061
  Prefactor  = 3.50688
  norm       = 5.55112e-11
  norm       = 1.66533e-10
  norm       = 5.35451
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 26.0332
  Prefactor  = 2.77001e-08
  Prefactor  = 5.15982
  norm       = 6.10623e-10
  Prefactor  = 3.39712
  norm       = 8.16014e-09
  Prefactor  = 0
  Prefactor  = 17.2713
  Prefactor  = 11.4684
  norm       = 1.81163
  Prefactor  = 5.55112e-11
  Normalizat = 1.0438
  Prefactor  = 1.07946
 **********
 **   18 **HESSE 
 **********

 FCN=   6976.276     FROM HESSE     STATUS=OK           333 CALLS     1869 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.506        48.683        .18407E-03   -1.5599    
   2  Prefactor     3.5069        4.7252        .53954E-03   -1.5671    
   3  norm          .55511E-10    12.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .16653E-09    1.1616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3545        1.9017        .43405E-03   -1.5662    
   6  norm          .55511E-10    1.0755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    10.416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     26.033        17.066        .19600E-03   -1.5606    
   9  Prefactor     .27700E-07    150.69        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1598        2.9863        .44235E-03   -1.5663    
  11  norm          .61062E-09    19.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3971        8.0166        .54764E-03   -1.5671    
  13  norm          .81601E-08    64.580        .12146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        17.720        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.271        19.967        .24067E-03   -1.5625    
  16  Prefactor     11.468        29.145        .29603E-03   -1.5640    
  17  norm          1.8116        1.6521        .77565E-03   -1.5681    
  18  Prefactor     .55511E-10    4.5318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0438        .19708        .68119E-01   -.91577    
  20  Prefactor     1.0795        .13202        .38428E-01   -.90126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79695e-08
Minuit parameter uncertainties:
  1  48.6841
  2  4.72521
  3  5.00716e-05
  4  2.81503e-05
  5  1.90166
  6  1.26194e-05
  7  3.57498e-05
  8  17.0661
  9  0.00408448
  10  2.98628
  11  0.00022047
  12  8.01667
  13  0.00145232
  14  2.14752e-05
  15  19.9669
  16  29.1455
  17  1.65208
  18  3.37862e-05
  19  0.197219
  20  0.13206
Done.

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

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  2.770e-08  4.084e-03  0.000e+00  1.000e+06 ( 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.079e+00  1.321e-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.044e+00  1.972e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950598/likelihoodResults_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.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) = 6976.27986992
delta logL = -0.00352932709666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6976.27634223
delta logL = -1.63781351148e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36879E-03   1.0000          .0000       .10000E+07
     2 'Index     '    2.4413       1.0000          .0000       10.000    
     3 'Normalizat'    1.0436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0795       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=   6976.276     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      252 TOTAL
                     EDM=   .25E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    4.0371        .42118E-03** at limit **
   2  Index         2.1741        8.7685        .50000       -.45475E-11
   3  Normalizat    1.0438        .58433E-03    .68119E-01    .14971E-03
   4  Prefactor     1.0795        .40636E-03    .38423E-01    .13033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Index      = 2.17406
  Normalizat = 1.0438
  Prefactor  = 1.07946
 **********
 **   18 **HESSE 
 **********

 FCN=   6976.276     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      279 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    20.665        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1741        5.9799        .50000       -.60066    
   3  Normalizat    1.0438        .13136E-02    .30136E-03   -.91577    
   4  Prefactor     1.0795        .91468E-03    .20550E-03   -.90126    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27736e-13
Minuit parameter uncertainties:
  1  0.000188157
  2  34990.7
  3  0.00131363
  4  0.000914682
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950598': 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) = 6976.2763406
delta logL = 1.44609657582e-10

Extracting fit parameters...

4FGL J0749.9+1823
   Spectrum: PowerLaw
256    Prefactor:  4.441e-10  1.882e-04  0.000e+00  1.000e+06 ( 1.000e-13)
257        Index:  2.174e+00  3.499e+04  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.079e+00  9.147e-04  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.044e+00  1.314e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/950598/cmap_HighResolution_700185601_700444801_4FGL_J0749.9+1823_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.26e-08', time_completed='2023-03-14 00:21:09.616500', job_id='950598', GAL2='1.08', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1678778469.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.45e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1778' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:21:09 PDT 2023

CCESS', return_code='0', GAL='1.08', dlogl='1.45e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1778' AND source_name='4FGL J0749.9+1823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:20:18 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 950546: <4FGL_J0749.9+1823_daily_bin1778> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin1778> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar 14 00:06:35 2023
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:08:02 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:08:02 2023
Terminated at Tue Mar 14 00:20:19 2023
Results reported at Tue Mar 14 00:20:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin1778 117.485 18.387 700185601 700444801 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 :                                   590.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            824 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 950598: <4FGL_J0749.9+1823_daily_bin1778> in cluster <slac> Done

Job <4FGL_J0749.9+1823_daily_bin1778> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Mar 14 00:06:38 2023
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:08:08 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:08:08 2023
Terminated at Tue Mar 14 00:21:10 2023
Results reported at Tue Mar 14 00:21:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0749.9+1823_daily_bin1778 117.485 18.387 700185601 700444801 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 :                                   572.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            872 sec.

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

