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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1754
RA = 192.46, Dec = 37.1306
tmin = 693964801, tmax = 694224001
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='642059', job_status='RUN', time_executed='2023-01-01 01:07:55.078972', time_epoch_executed='1672564075.08' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642059/ft1_4FGL_J1249.8+3707_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642059/ft1_4FGL_J1249.8+3707_daily_bin1754.fits outfile=/scratch/kocevski/642059/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1754.fits ra=192.46 dec=37.1306 rad=12.0 tmin=693964801.0 tmax=694224001.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.04
user 3.74
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.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/642059/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/642059/ft1_filtered_4FGL_J1249.8+3707_daily_bin1754.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.54
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 561

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642059/ft1_filtered_4FGL_J1249.8+3707_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/642059/ltcube_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.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/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits
.....................!
real 16.78
user 16.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642059/ft1_filtered_4FGL_J1249.8+3707_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/642059/ltcube_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.fits outfile=/scratch/kocevski/642059/expmap_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.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/642059/ltcube_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.fits
.....................!
real 195.16
user 188.61
sys 5.28

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
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/642059/ft1_filtered_4FGL_J1249.8+3707_daily_bin1754.fits scfile=/scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits outfile=/scratch/kocevski/642059/cmap_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.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=192.46 yref=37.1306 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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642059/ft1_filtered_4FGL_J1249.8+3707_daily_bin1754.fits scfile=/scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits outfile=/scratch/kocevski/642059/cmap_HighResolution_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.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=192.46 yref=37.1306 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.59
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642059/ft1_filtered_4FGL_J1249.8+3707_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642059/Model_4FGL_J1249.8+3707_daily_bin1754.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
Working on...
/scratch/kocevski/642059/ft1_filtered_4FGL_J1249.8+3707_daily_bin1754.fits.....................!
real 51.71
user 50.00
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/642059/ft1_filtered_4FGL_J1249.8+3707_daily_bin1754.fits', '/scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits', expMap='/scratch/kocevski/642059/expmap_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.fits', expCube='/scratch/kocevski/642059/ltcube_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/642059/Model_4FGL_J1249.8+3707_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.8+3707'

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.229e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/642059/ft1_filtered_4FGL_J1249.8+3707_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/642059/ft2_4FGL_J1249.8+3707_daily_bin1754.fits
Exposure map: /scratch/kocevski/642059/expmap_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.fits
Exposure cube: /scratch/kocevski/642059/ltcube_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/642059/Model_4FGL_J1249.8+3707_daily_bin1754.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) = 6001.76878858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.737       1.0000          .0000       .10000E+07
     2 'norm      '    2.7601       1.0000          .0000       .10000E+07
     3 'Prefactor '    .48786E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .86597E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7001       1.0000          .0000       .10000E+07
     6 'Prefactor '    .57110E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .49217E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .47678E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24144E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .10358E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11412E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.3180       1.0000          .0000       .10000E+07
    13 'norm      '    5.4629       1.0000          .0000       .10000E+07
    14 'norm      '    21.673       1.0000          .0000       .10000E+07
    15 'norm      '    18.555       1.0000          .0000       .10000E+07
    16 'norm      '    8.6413       1.0000          .0000       .10000E+07
    17 'Prefactor '    .16036E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .87074E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .78038E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    13.179       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.5171       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .43078       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6001.587     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1434 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.376        17.618        .61576E-07    .67696E-01
   2  norm          2.7605        3.1774       -.23301E-07   -.59003E-03
   3  Prefactor      .0000        2.2807        .25753E-07** at limit **
   4  Prefactor      .0000        1.1438        .38917E-07** at limit **
   5  Prefactor     1.6996        1.8008        .31136E-07    .11052E-02
   6  Prefactor      .0000        3.3616        .91371E-07** at limit **
   7  Prefactor     .14453E-05    17.855        .21751E-06** at limit **
   8  Prefactor     .11102E-09    6.5821       -.59317E-07** at limit **
   9  Prefactor      .0000        1.8558       -.20736E-07** at limit **
  10  norm           .0000        1.9736       -.36850E-07** at limit **
  11  Prefactor     .21817E-05    35.231        .32901E-06** at limit **
  12  Prefactor     7.2652        2.1551       -.31563E-08   -.29682E-01
  13  norm          5.4901        4.6823       -.69282E-07    .75100E-03
  14  norm          21.788        1.2172        .33775E-08   -.14707E-01
  15  norm          18.539        6.6766       -.74473E-07   -.49691E-02
  16  norm          8.6347        10.001        .94133E-08    .72647E-03
  17  Prefactor     .20539E-08    15.028       -.69426E-07** at limit **
  18  Prefactor     .34928E-06    23.844       -.13435E-06** at limit **
  19  Prefactor     .35091E-05    15.862        .90167E-07** at limit **
  20  Prefactor     13.525        13.246       -.17573E-07    .95688E-02
  21  Normalizat    1.5168        .19991        .42147E-06   -.96833E-04
  22  Prefactor     .43111        .23672       -.20412E-05   -.51686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3762
  norm       = 2.7605
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.69962
  Prefactor  = 0
  Prefactor  = 1.44534e-06
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.1817e-06
  Prefactor  = 7.26521
  norm       = 5.49014
  norm       = 21.7882
  norm       = 18.5389
  norm       = 8.63466
  Prefactor  = 2.05391e-09
  Prefactor  = 3.49276e-07
  Prefactor  = 3.50914e-06
  Prefactor  = 13.5245
  Normalizat = 1.51678
  Prefactor  = 0.431108
 **********
 **   18 **HESSE 
 **********

 FCN=   6001.587     FROM HESSE     STATUS=OK           390 CALLS     1824 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.376        34.432        .22517E-03   -1.5622    
   2  norm          2.7605        3.2065        .61241E-03   -1.5675    
   3  Prefactor      .0000        2.2823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.1439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6996        1.8168        .80647E-03   -1.5682    
   6  Prefactor      .0000        3.3705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14453E-05    35.420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    6.6153        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.8566        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.9723        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .21817E-05    46.866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.2652        15.639        .37053E-03   -1.5654    
  13  norm          5.4901        4.8818        .42967E-03   -1.5661    
  14  norm          21.788        12.798        .21486E-03   -1.5615    
  15  norm          18.539        6.6523        .23223E-03   -1.5622    
  16  norm          8.6347        9.8994        .34075E-03   -1.5649    
  17  Prefactor     .20539E-08    2.4626        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .34928E-06    24.804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .35091E-05    30.188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.525        13.280        .27566E-03   -1.5634    
  21  Normalizat    1.5168        .18443        .45403E-01   -.77308    
  22  Prefactor     .43111        .21943        .95697E-01   -1.1525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42501e-07
Minuit parameter uncertainties:
  1  34.432
  2  3.20651
  3  6.38055e-06
  4  4.48482e-06
  5  1.81678
  6  1.8584e-05
  7  0.0143102
  8  5.03363e-05
  9  6.48679e-07
  10  1.4911e-06
  11  0.0202236
  12  15.6386
  13  4.8818
  14  12.7976
  15  6.65232
  16  9.89941
  17  0.000142435
  18  0.00588697
  19  0.0205848
  20  13.2801
  21  0.184513
  22  0.219857
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.110e-10  5.034e-05  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  4.311e-01  2.199e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.517e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 3.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642059/likelihoodResults_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6001.65943493
delta logL = -0.072274536984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6001.58716047
delta logL = -8.0666723079e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22782E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .36458       1.0000          .0000       10.000    
     3 'Normalizat'    1.5167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43114       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6001.587     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      200 TOTAL
                     EDM=   .17E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.8022        .10707E-06** at limit **
   2  Index         1.7186        3.0182       -.59830E-05     .0000    
   3  Normalizat    1.5168        .19664       -.50675E-05    .50299E-05
   4  Prefactor     .43111        .23498        .76717E-05    .76520E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.71861
  Normalizat = 1.51678
  Prefactor  = 0.431109
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6001.587     FROM HESSE     STATUS=FAILED        11 CALLS      211 TOTAL
                     EDM=   .17E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.9281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .29449        1.6550       -.59830E-05   -.71587    
   3  Normalizat    1.5168        1.0480       -.50675E-05   -.77308    
   4  Prefactor     .43111        .76652        .76717E-05   -1.1525    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.68234e-13
Minuit parameter uncertainties:
  1  7.2238e-06
  2  1.42374
  3  1.06362
  4  0.785996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642059': 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): 101
logL (Free Index) = 6001.58716039
delta logL = 1.1823431123e-11

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  0.000e+00  7.224e-06  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.719e+00  1.424e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  4.311e-01  7.860e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.517e+00  1.064e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/642059/cmap_HighResolution_693964801_694224001_4FGL_J1249.8+3707_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-03', job_status='DONE', photon_flux_upper_limit='3.19e-08', time_completed='2023-01-01 01:18:26.509501', job_id='642059', GAL2='0.43', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1672564706.51', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='1.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1754' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:18:26 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 642059: <4FGL_J1249.8+3707_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:23 2023
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:07:06 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:07:06 2023
Terminated at Sun Jan  1 01:18:27 2023
Results reported at Sun Jan  1 01:18:27 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1754 192.46 37.1306 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            784 sec.

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

