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


Performing analysis on: 4FGL_J0945.7+5759_daily_bin1694
RA = 146.432, Dec = 57.9871
tmin = 678412801, tmax = 678672001
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='639541', job_status='RUN', time_executed='2022-07-05 03:19:12.767860', time_epoch_executed='1657016352.77' WHERE source_name='4FGL J0945.7+5759' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639541/ft1_4FGL_J0945.7+5759_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639541/ft1_4FGL_J0945.7+5759_daily_bin1694.fits outfile=/scratch/kocevski/639541/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1694.fits ra=146.432 dec=57.9871 rad=12.0 tmin=678412801.0 tmax=678672001.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.72
user 3.43
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.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/639541/ft1_filteredMKT_4FGL_J0945.7+5759_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/639541/ft1_filtered_4FGL_J0945.7+5759_daily_bin1694.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.36
sys 0.16

Number of photons that the gtmktime cut: 678

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639541/ft1_filtered_4FGL_J0945.7+5759_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/639541/ltcube_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.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/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits
.....................!
real 16.19
user 15.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639541/ft1_filtered_4FGL_J0945.7+5759_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/639541/ltcube_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.fits outfile=/scratch/kocevski/639541/expmap_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.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/639541/ltcube_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.fits
.....................!
real 194.82
user 188.18
sys 5.66

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

Setting source of interest to:
4FGL J0945.7+5759 @ 146.432 57.9871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639541/ft1_filtered_4FGL_J0945.7+5759_daily_bin1694.fits scfile=/scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits outfile=/scratch/kocevski/639541/cmap_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.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=146.432 yref=57.9871 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639541/ft1_filtered_4FGL_J0945.7+5759_daily_bin1694.fits scfile=/scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits outfile=/scratch/kocevski/639541/cmap_HighResolution_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.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=146.432 yref=57.9871 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639541/ft1_filtered_4FGL_J0945.7+5759_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639541/Model_4FGL_J0945.7+5759_daily_bin1694.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/639541/ft1_filtered_4FGL_J0945.7+5759_daily_bin1694.fits.....................!
real 73.91
user 71.01
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639541/ft1_filtered_4FGL_J0945.7+5759_daily_bin1694.fits', '/scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits', expMap='/scratch/kocevski/639541/expmap_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.fits', expCube='/scratch/kocevski/639541/ltcube_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639541/Model_4FGL_J0945.7+5759_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.7+5759'

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.030e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639541/ft1_filtered_4FGL_J0945.7+5759_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/639541/ft2_4FGL_J0945.7+5759_daily_bin1694.fits
Exposure map: /scratch/kocevski/639541/expmap_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.fits
Exposure cube: /scratch/kocevski/639541/ltcube_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639541/Model_4FGL_J0945.7+5759_daily_bin1694.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) = 7409.1786019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9414       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.243       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0963       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2288       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16231E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.850       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0950       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8973       1.0000         .10000E-03   10000.    
    21 'norm      '    9.5449       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5609       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0197       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.089       1.0000         .10000E-03   10000.    
    26 'norm      '    13.305       1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.325       1.0000         .10000E-03   10000.    
    28 'norm      '    2.5524       1.0000         .10000E-03   10000.    
    29 'norm      '    .36874       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    71.351       1.0000         .10000E-03   10000.    
    32 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    27.855       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .76270       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1320       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7409.164     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     5060 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9410        7.5552       -.63735E-07   -.26641E-04
   2  Prefactor     8.2571        6.5204       -.57101E-07   -.10503E-03
   3  Prefactor     .10000E-03    2.2918       -.67077E-07** at limit **
   4  Prefactor     13.234        28.998       -.81689E-06   -.57478E-04
   5  norm          .10000E-03    1.4090       -.15307E-08** at limit **
   6  Prefactor     6.0951        8.4511        .22188E-05   -.14766E-03
   7  Prefactor     .10000E-03    2.7594       -.48542E-07** at limit **
   8  Prefactor     .10000E-03    6.4962        .43026E-06** at limit **
   9  Prefactor     .10000E-03    17.779        .17454E-06** at limit **
  10  norm          1.6473        .92434        .17318E-07   -.97928E-04
  11  Prefactor     3.2286        4.4575        .16952E-07   -.37565E-04
  12  Prefactor     .10000E-03    6.4185        .36015E-06** at limit **
  13  Prefactor     .10000E-03    1.1880       -.18649E-08** at limit **
  14  Prefactor     11.850        12.847        .71091E-07   -.13235E-05
  15  Prefactor     .10000E-03    6.5235       -.43947E-06** at limit **
  16  Prefactor     6.3114        8.8129        .24165E-06   -.45476E-04
  17  Prefactor     7.0954        5.5779        .11148E-06    .41141E-04
  18  norm          .10000E-03    2.1724       -.28182E-07** at limit **
  19  Prefactor     .10000E-03    11.601        .85075E-07** at limit **
  20  norm          1.8974        .57386        .38358E-08   -.14632E-03
  21  norm          9.5447        9.4212        .61204E-07   -.59493E-06
  22  Prefactor     3.5606        4.8509        .43195E-06    .15759E-04
  23  norm          1.0199        .63055        .37035E-07   -.93393E-04
  24  norm          .10000E-03    1.4776        .14047E-07** at limit **
  25  Prefactor     11.092        24.847        .26567E-06   -.92976E-05
  26  norm          13.304        13.055        .47316E-07   -.15450E-05
  27  Prefactor     15.326        19.987       -.21655E-06   -.74883E-04
  28  norm          2.5523        2.5660        .10807E-06   -.10260E-03
  29  norm          .36954        1.0261        .44844E-06   -.37375E-03
  30  Prefactor     .10000E-03    93.674        .33393E-06** at limit **
  31  Prefactor     71.388        95.414        .53195E-05    .12365E-03
  32  norm          .10000E-03    1.3165        .45965E-06** at limit **
  33  Prefactor     27.866        24.004       -.33597E-07   -.33156E-04
  34  Normalizat    .76241        .15859       -.14261E-05   -.66770E-04
  35  Prefactor     1.1323        .14968        .48095E-06   -.13879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.941
  Prefactor  = 8.25712
  Prefactor  = 0.0001
  Prefactor  = 13.2342
  norm       = 0.0001
  Prefactor  = 6.09506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64726
  Prefactor  = 3.22855
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.85
  Prefactor  = 0.0001
  Prefactor  = 6.31139
  Prefactor  = 7.09536
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89737
  norm       = 9.54473
  Prefactor  = 3.56061
  norm       = 1.01994
  norm       = 0.0001
  Prefactor  = 11.0921
  norm       = 13.3042
  Prefactor  = 15.3264
  norm       = 2.55231
  norm       = 0.369541
  Prefactor  = 0.0001
  Prefactor  = 71.3876
  norm       = 0.0001
  Prefactor  = 27.8658
  Normalizat = 0.762413
  Prefactor  = 1.13233
 **********
 **   18 **HESSE 
 **********

 FCN=   7409.164     FROM HESSE     STATUS=OK           780 CALLS     5840 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9410        7.5518        .15227E-03   -1.5181    
   2  Prefactor     8.2571        6.5168        .13951E-03   -1.5133    
   3  Prefactor     .10000E-03    2.3038        .12727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.234        29.176        .11007E-03   -1.4980    
   5  norm          .10000E-03    1.4115        .99780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0951        8.7353        .81304E-03   -1.5214    
   7  Prefactor     .10000E-03    2.7676        .13960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.5407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6473        .91560        .56417E-04   -1.5451    
  11  Prefactor     3.2286        4.4479        .20727E-03   -1.5349    
  12  Prefactor     .10000E-03    39.317        .41147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2040        .91569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.850        12.833        .11637E-03   -1.5019    
  15  Prefactor     .10000E-03    6.5570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3114        8.7662        .15981E-03   -1.5205    
  17  Prefactor     7.0954        5.5658        .15060E-03   -1.5175    
  18  norm          .10000E-03    2.1730        .12390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8974        .57490        .34205E-04   -1.5432    
  21  norm          9.5447        9.4173        .12971E-03   -1.5090    
  22  Prefactor     3.5606        4.8352        .20660E-03   -1.5331    
  23  norm          1.0199        .62326        .50517E-04   -1.5506    
  24  norm          .10000E-03    1.5006        .10210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.092        24.855        .12031E-03   -1.5042    
  26  norm          13.304        13.052        .10981E-03   -1.4978    
  27  Prefactor     15.326        20.142        .10231E-03   -1.4925    
  28  norm          2.5523        2.5670        .10523E-03   -1.5388    
  29  norm          .36954        1.0949        .13830E-02   -1.5586    
  30  Prefactor     .10000E-03    93.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     71.388        100.65        .23763E-03   -1.4016    
  32  norm          .10000E-03    1.3353        .19060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     27.866        23.991        .75908E-04   -1.4652    
  34  Normalizat    .76241        .17873        .27703E-03   -1.0148    
  35  Prefactor     1.1323        .16960        .23710E-03   -.88440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37412e-08
Minuit parameter uncertainties:
  1  7.55285
  2  6.51737
  3  3.58043e-06
  4  29.2077
  5  1.43192e-07
  6  8.7371
  7  9.6036e-07
  8  4.12815e-05
  9  2.88524e-05
  10  0.915611
  11  4.44838
  12  0.000606668
  13  1.57717e-07
  14  12.836
  15  3.97755e-05
  16  8.76799
  17  5.56616
  18  1.38395e-06
  19  1.4234e-05
  20  0.574904
  21  9.41877
  22  4.8357
  23  0.623268
  24  5.55376e-07
  25  24.8787
  26  13.055
  27  20.1512
  28  2.56712
  29  1.09496
  30  0.000124178
  31  100.891
  32  1.34172e-05
  33  23.9994
  34  0.178868
  35  0.169678
Done.

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

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.000e-04  1.384e-06  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.875e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.132e+00  1.697e-01  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  7.624e-01  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.432 57.987
Photon Flux Upper Limit: 1.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639541/likelihoodResults_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.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) = 7409.1663458
delta logL = -0.00188119880931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7409.16446451
delta logL = 8.89303919394e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8643       1.0000          .0000       5.0000    
     3 'Normalizat'    .76240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1323       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+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=   7409.164     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    114.73        .12458E-01** at limit **
   2  alpha         1.3971        3.1352        .17189        .18439E-06
   3  Normalizat    .76241        .27973E-01    .27703E-03    .37303E-04
   4  Prefactor     1.1323        .28804E-01    .23710E-03    .47517E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.39707
  Normalizat = 0.762413
  Prefactor  = 1.13233
 **********
 **   18 **HESSE 
 **********

 FCN=   7409.164     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4656        .13178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3971        4.2930        .68758E-02   -.45691    
   3  Normalizat    .76241        .15823        .11081E-04   -1.0148    
   4  Prefactor     1.1323        .16296        .94840E-05   -.88440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09708e-10
Minuit parameter uncertainties:
  1  5.86676e-05
  2  207.162
  3  0.158326
  4  0.163033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639541': 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) = 7409.16446194
delta logL = 2.66692495643e-06

Extracting fit parameters...

4FGL J0945.7+5759
   Spectrum: LogParabola
394         norm:  1.000e-04  5.867e-05  1.000e-04  1.000e+04 ( 1.000e-13)
395        alpha:  1.397e+00  2.072e+02  0.000e+00  5.000e+00 ( 1.000e+00)
396         beta:  2.282e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
397           Eb:  1.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.132e+00  1.630e-01  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  7.624e-01  1.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.432 57.987

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/639541/cmap_HighResolution_678412801_678672001_4FGL_J0945.7+5759_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.84e-05', job_status='DONE', photon_flux_upper_limit='1.65e-08', time_completed='2022-07-05 03:43:30.244353', job_id='639541', GAL2='1.13', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1657017810.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.87' WHERE bin_id='1694' AND source_name='4FGL J0945.7+5759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 03:43:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 639491: <4FGL_J0945.7+5759_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0945.7+5759_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:00 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:15:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:15:47 2022
Terminated at Tue Jul  5 03:43:11 2022
Results reported at Tue Jul  5 03:43:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_daily_bin1694 146.432 57.9871 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.7+5759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1455.17 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             316.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1644 sec.
    Turnaround time :                            13031 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 639541: <4FGL_J0945.7+5759_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0945.7+5759_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:03 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:17:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:17:52 2022
Terminated at Tue Jul  5 03:43:31 2022
Results reported at Tue Jul  5 03:43:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.7+5759_daily_bin1694 146.432 57.9871 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.7+5759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1454.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1538 sec.
    Turnaround time :                            13048 sec.

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

