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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1756
RA = 146.316, Dec = 52.0053
tmin = 694483201, tmax = 694742401
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='10385', job_status='RUN', time_executed='2023-01-07 00:43:52.607172', time_epoch_executed='1673081032.61' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10385/ft1_4FGL_J0945.2+5200_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10385/ft1_4FGL_J0945.2+5200_daily_bin1756.fits outfile=/scratch/kocevski/10385/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1756.fits ra=146.316 dec=52.0053 rad=12.0 tmin=694483201.0 tmax=694742401.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.00
user 2.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.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/10385/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1756.fits evtable="EVENTS" outfile="/scratch/kocevski/10385/ft1_filtered_4FGL_J0945.2+5200_daily_bin1756.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.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 203

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10385/ft1_filtered_4FGL_J0945.2+5200_daily_bin1756.fits" evtable="EVENTS" scfile=/scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits sctable="SC_DATA" outfile=/scratch/kocevski/10385/ltcube_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.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/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits
.....................!
real 14.79
user 14.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10385/ft1_filtered_4FGL_J0945.2+5200_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/10385/ltcube_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.fits outfile=/scratch/kocevski/10385/expmap_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.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/10385/ltcube_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.fits
.....................!
real 195.36
user 187.63
sys 5.97

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

Setting source of interest to:
4FGL J0945.2+5200 @ 146.316 52.0053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10385/ft1_filtered_4FGL_J0945.2+5200_daily_bin1756.fits scfile=/scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits outfile=/scratch/kocevski/10385/cmap_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.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.316 yref=52.0053 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10385/ft1_filtered_4FGL_J0945.2+5200_daily_bin1756.fits scfile=/scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits outfile=/scratch/kocevski/10385/cmap_HighResolution_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.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.316 yref=52.0053 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10385/ft1_filtered_4FGL_J0945.2+5200_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10385/Model_4FGL_J0945.2+5200_daily_bin1756.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/10385/ft1_filtered_4FGL_J0945.2+5200_daily_bin1756.fits.....................!
real 30.78
user 29.19
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10385/ft1_filtered_4FGL_J0945.2+5200_daily_bin1756.fits', '/scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits', expMap='/scratch/kocevski/10385/expmap_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.fits', expCube='/scratch/kocevski/10385/ltcube_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10385/Model_4FGL_J0945.2+5200_daily_bin1756.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.2+5200'

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10385/ft1_filtered_4FGL_J0945.2+5200_daily_bin1756.fits
Spacecraft file(s): /scratch/kocevski/10385/ft2_4FGL_J0945.2+5200_daily_bin1756.fits
Exposure map: /scratch/kocevski/10385/expmap_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.fits
Exposure cube: /scratch/kocevski/10385/ltcube_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10385/Model_4FGL_J0945.2+5200_daily_bin1756.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) = 2265.19879761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2265.07551959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8740       1.0000          .0000       .10000E+07
     2 'norm      '    139.19       1.0000          .0000       .10000E+07
     3 'norm      '    4.0144       1.0000          .0000       .10000E+07
     4 'Prefactor '    288.85       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13150E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    20.508       1.0000          .0000       .10000E+07
     7 'norm      '    .27006E-06   1.0000          .0000       .10000E+07
     8 'norm      '    5.2462       1.0000          .0000       .10000E+07
     9 'Prefactor '    .86853E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .39239E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .13914       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82182E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.4978       1.0000          .0000       .10000E+07
    14 'norm      '    22.054       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11739E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    11.987       1.0000          .0000       .10000E+07
    17 'Prefactor '    .63838E-08   1.0000          .0000       .10000E+07
    18 'norm      '    .48076E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .84637E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .41057E-02   1.0000          .0000       .10000E+07
    21 'norm      '    1.6175       1.0000          .0000       .10000E+07
    22 'norm      '    .16026E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    12.378       1.0000          .0000       .10000E+07
    24 'norm      '    5.2016       1.0000          .0000       .10000E+07
    25 'Prefactor '    .33463E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    12.752       1.0000          .0000       .10000E+07
    27 'norm      '    6.8024       1.0000          .0000       .10000E+07
    28 'norm      '    .90427E-04   1.0000          .0000       .10000E+07
    29 'Prefactor '    7.2891       1.0000          .0000       .10000E+07
    30 'norm      '    1.3839       1.0000          .0000       .10000E+07
    31 'Prefactor '    .49102       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .23957       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2265.046     FROM MIGRAD    STATUS=CONVERGED    361 CALLS     3425 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    593.10       -.54666E-05** at limit **
   2  norm          143.15        136.74        .90645E-08    .13031E-03
   3  norm          .42188E-08    271.15       -.53030E-05** at limit **
   4  Prefactor     331.43        333.07       -.25905E-05   -.96637E-05
   5  Prefactor     .11102E-09    85.136       -.18191E-05** at limit **
   6  Prefactor     20.206        20.345       -.58062E-06    .27401E-03
   7  norm           .0000        .51034        .20064E-07** at limit **
   8  norm          5.2367        2.0927        .33513E-07   -.34758E-03
   9  Prefactor      .0000        2.7269        .59335E-07** at limit **
  10  Prefactor      .0000        5.5089       -.14392E-06** at limit **
  11  Prefactor     .22204E-09    59.115        .14336E-05** at limit **
  12  Prefactor      .0000        3.6670       -.11243E-06** at limit **
  13  Prefactor     9.7451        32.211        .77411E-06   -.11940E-03
  14  norm          22.787        32.938       -.23982E-06   -.30247E-03
  15  Prefactor     .33307E-09    33.638        .22873E-05** at limit **
  16  Prefactor     11.982        9.8280       -.37249E-07   -.22434E-03
  17  Prefactor      .0000        6.9089        .19794E-06** at limit **
  18  norm           .0000        7.6525       -.83351E-07** at limit **
  19  Prefactor     .55511E-10    41.306       -.33434E-07** at limit **
  20  Prefactor      .0000        19.522       -.22748E-06** at limit **
  21  norm          1.6179        .75685       -.79663E-08   -.96879E-03
  22  norm           .0000        12.482       -.28385E-06** at limit **
  23  Prefactor     12.452        10.128        .14000E-06   -.30984E-03
  24  norm          5.2470        4.4891       -.15839E-06   -.47618E-03
  25  Prefactor      .0000        19.122        .62707E-06** at limit **
  26  Prefactor     13.296        28.800       -.16084E-06   -.17817E-05
  27  norm          6.7666        4.2172       -.10334E-07   -.26546E-03
  28  norm          .11102E-09    5.0190       -.15163E-05** at limit **
  29  Prefactor     24.540        262.09       -.74157E-06   -.53011E-04
  30  norm          1.2957        1.8223        .16334E-06   -.94292E-03
  31  Prefactor     .20539E-08    128.46        .39785E-05** at limit **
  32  Normalizat    1.0731        .28389        .85572E-05   -.12316E-03
  33  Prefactor     .23881        .30861        .16145E-04   -.57491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  norm       = 143.146
  norm       = 4.21885e-09
  Prefactor  = 331.432
  Prefactor  = 1.11022e-10
  Prefactor  = 20.2061
  norm       = 0
  norm       = 5.23669
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 9.74511
  norm       = 22.7867
  Prefactor  = 3.33067e-10
  Prefactor  = 11.9823
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 1.61786
  norm       = 0
  Prefactor  = 12.4523
  norm       = 5.24697
  Prefactor  = 0
  Prefactor  = 13.2957
  norm       = 6.76659
  norm       = 1.11022e-10
  Prefactor  = 24.54
  norm       = 1.29573
  Prefactor  = 2.05391e-09
  Normalizat = 1.07314
  Prefactor  = 0.238812
 **********
 **   18 **HESSE 
 **********

 FCN=   2265.046     FROM HESSE     STATUS=OK           767 CALLS     4192 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    596.07        .41412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          143.15        136.72        .84768E-04   -1.5469    
   3  norm          .42188E-08    273.62        .50308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     331.43        333.17        .58847E-04   -1.5344    
   5  Prefactor     .11102E-09    84.045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.206        20.359        .22089E-03   -1.5618    
   7  norm           .0000        .51053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.2367        2.0972        .43861E-03   -1.5662    
   9  Prefactor      .0000        2.7297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        5.5220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22204E-09    58.868        .12978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        3.6534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7451        32.477        .32493E-03   -1.5646    
  14  norm          22.787        32.996        .21300E-03   -1.5612    
  15  Prefactor     .33307E-09    33.686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.982        9.8128        .28909E-03   -1.5639    
  17  Prefactor      .0000        6.8936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        7.6538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    41.249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        19.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6179        .75478        .61849E-03   -1.5683    
  22  norm           .0000        12.476        .17314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.452        10.085        .28447E-03   -1.5637    
  24  norm          5.2470        4.5079        .44052E-03   -1.5662    
  25  Prefactor      .0000        19.108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     13.296        27.877        .28025E-03   -1.5635    
  27  norm          6.7666        4.1165        .38446E-03   -1.5656    
  28  norm          .11102E-09    1.0232        .25821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     24.540        257.33        .37127E-03   -1.5609    
  30  norm          1.2957        1.8321        .92440E-03   -1.5685    
  31  Prefactor     .20539E-08    127.56        .79618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0731        .28114        .38872E-01   -.90619    
  33  Prefactor     .23881        .32139        .10520       -1.2605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1285e-09
Minuit parameter uncertainties:
  1  0.000503308
  2  136.722
  3  0.00215076
  4  333.184
  5  0.000208188
  6  20.3586
  7  6.23232e-07
  8  2.09715
  9  1.21389e-06
  10  2.99643e-06
  11  0.000236292
  12  1.8952e-06
  13  32.4775
  14  32.9959
  15  0.000205849
  16  9.81282
  17  5.029e-06
  18  3.00792e-06
  19  8.51096e-05
  20  2.79579e-05
  21  0.754782
  22  3.01046e-05
  23  10.085
  24  4.50791
  25  2.27993e-05
  26  27.8772
  27  4.11655
  28  2.13314e-05
  29  158.942
  30  1.83214
  31  0.00102601
  32  0.281536
  33  0.323815
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  0.000e+00  5.029e-06  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  2.388e-01  3.238e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.073e+00  2.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 146.316 52.005
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10385/likelihoodResults_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.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) = 2265.04587792
delta logL = -0.000154040130838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2265.04572388
delta logL = -4.00950739277e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58287E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.1131       1.0000          .0000       10.000    
     3 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .23879       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2265.046     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      241 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    4.2865       -.59669E-06** at limit **
   2  Index         3.7915        6.8186        .85239E-04    .71679E-10
   3  Normalizat    1.0731        .25945       -.19028E-04    .16630E-03
   4  Prefactor     .23881        .30102       -.20430E-04    .22003E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Index      = 3.79149
  Normalizat = 1.07314
  Prefactor  = 0.238811
 **********
 **   18 **HESSE 
 **********

 FCN=   2265.046     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .98E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    .66999E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7915        5.0016        .37110       -.24412    
   3  Normalizat    1.0731        .73726E-03    .39216E-01   -.90619    
   4  Prefactor     .23881        .86256E-03    .10520       -1.2605    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.79564e-13
Minuit parameter uncertainties:
  1  6.13437e-06
  2  20864.2
  3  0.000737258
  4  0.000862562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10385': 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) = 2265.04572388
delta logL = -5.82076609135e-11

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.665e-10  6.134e-06  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  3.791e+00  2.086e+04  0.000e+00  1.000e+01 (-1.000e+00)
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  2.388e-01  8.626e-04  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  1.073e+00  7.373e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 146.316 52.005

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/10385/cmap_HighResolution_694483201_694742401_4FGL_J0945.2+5200_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', job_status='DONE', photon_flux_upper_limit='1.75e-07', time_completed='2023-01-07 00:53:52.225817', job_id='10385', GAL2='0.24', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1673081632.23', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.24', dlogl='-5.82e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1756' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 00:53:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 10385: <4FGL_J0945.2+5200_daily_bin1756> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:40:14 2023
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:41:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:41:13 2023
Terminated at Sat Jan  7 00:53:52 2023
Results reported at Sat Jan  7 00:53:52 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1756 146.316 52.0053 694483201 694742401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0945.2+5200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   597.50 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             290.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            818 sec.

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

