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 74 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_J0945.2+5200_daily_bin1769
RA = 146.316, Dec = 52.0053
tmin = 697852801, tmax = 698112001
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='430907', job_status='RUN', time_executed='2023-02-15 00:32:03.305667', time_epoch_executed='1676449923.31' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430907

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430907/ft1_4FGL_J0945.2+5200_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430907/ft2_4FGL_J0945.2+5200_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430907/ft1_4FGL_J0945.2+5200_daily_bin1769.fits outfile=/scratch/kocevski/430907/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1769.fits ra=146.316 dec=52.0053 rad=12.0 tmin=697852801.0 tmax=698112001.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.39
user 4.13
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430907/ft2_4FGL_J0945.2+5200_daily_bin1769.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/430907/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/430907/ft1_filtered_4FGL_J0945.2+5200_daily_bin1769.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.48
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 744

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430907/ft1_filtered_4FGL_J0945.2+5200_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/430907/ft2_4FGL_J0945.2+5200_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/430907/ltcube_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.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/430907/ft2_4FGL_J0945.2+5200_daily_bin1769.fits
.....................!
real 11.64
user 11.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430907/ft1_filtered_4FGL_J0945.2+5200_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/430907/ft2_4FGL_J0945.2+5200_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/430907/ltcube_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.fits outfile=/scratch/kocevski/430907/expmap_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.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/430907/ltcube_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.fits
.....................!
real 189.46
user 185.21
sys 3.95

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/430907/ft1_filtered_4FGL_J0945.2+5200_daily_bin1769.fits scfile=/scratch/kocevski/430907/ft2_4FGL_J0945.2+5200_daily_bin1769.fits outfile=/scratch/kocevski/430907/cmap_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430907/ft1_filtered_4FGL_J0945.2+5200_daily_bin1769.fits scfile=/scratch/kocevski/430907/ft2_4FGL_J0945.2+5200_daily_bin1769.fits outfile=/scratch/kocevski/430907/cmap_HighResolution_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430907/ft1_filtered_4FGL_J0945.2+5200_daily_bin1769.fits', '/scratch/kocevski/430907/ft2_4FGL_J0945.2+5200_daily_bin1769.fits', expMap='/scratch/kocevski/430907/expmap_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.fits', expCube='/scratch/kocevski/430907/ltcube_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430907/Model_4FGL_J0945.2+5200_daily_bin1769.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/430907/ft1_filtered_4FGL_J0945.2+5200_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/430907/ft2_4FGL_J0945.2+5200_daily_bin1769.fits
Exposure map: /scratch/kocevski/430907/expmap_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.fits
Exposure cube: /scratch/kocevski/430907/ltcube_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430907/Model_4FGL_J0945.2+5200_daily_bin1769.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1594       1.0000          .0000       .10000E+07
     2 'norm      '    2.2140       1.0000          .0000       .10000E+07
     3 'norm      '    .30244E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    14.667       1.0000          .0000       .10000E+07
     5 'Prefactor '    .34057E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.8291       1.0000          .0000       .10000E+07
     7 'norm      '    .44187E-07   1.0000          .0000       .10000E+07
     8 'norm      '    4.2871       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12768E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.2015       1.0000          .0000       .10000E+07
    11 'Prefactor '    .52411       1.0000          .0000       .10000E+07
    12 'Prefactor '    .52464E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .33767E-06   1.0000          .0000       .10000E+07
    14 'norm      '    13.135       1.0000          .0000       .10000E+07
    15 'Prefactor '    35.347       1.0000          .0000       .10000E+07
    16 'Prefactor '    .38408E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    9.8446       1.0000          .0000       .10000E+07
    18 'norm      '    .26090E-08   1.0000          .0000       .10000E+07
    19 'Prefactor '    .72612E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .14744E-02   1.0000          .0000       .10000E+07
    21 'norm      '    1.1830       1.0000          .0000       .10000E+07
    22 'norm      '    37.273       1.0000          .0000       .10000E+07
    23 'Prefactor '    .36082E-07   1.0000          .0000       .10000E+07
    24 'norm      '    3.9315       1.0000          .0000       .10000E+07
    25 'Prefactor '    .83996E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    35.354       1.0000          .0000       .10000E+07
    27 'norm      '    1.8754       1.0000          .0000       .10000E+07
    28 'norm      '    1.4882       1.0000          .0000       .10000E+07
    29 'Prefactor '    .13187E-02   1.0000          .0000       .10000E+07
    30 'norm      '    3.4460       1.0000          .0000       .10000E+07
    31 'Prefactor '    38.339       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.0572       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .91598       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=   7959.574     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1917 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2239        6.4691        .12248E-06   -.15371E-02
   2  norm          2.2152        4.2447        .12890E-06   -.26713E-03
   3  norm          .72164E-09    3.6924        .25691E-06** at limit **
   4  Prefactor     14.697        1.1989        .16103E-07    .81745E-02
   5  Prefactor     .28891E-05    1.6826        .55050E-09** at limit **
   6  Prefactor     3.7351        5.1238        .11967E-06   -.35970E-04
   7  norm           .0000        .22324        .58005E-07** at limit **
   8  norm          4.2873        1.0236        .60575E-07   -.48272E-02
   9  Prefactor      .0000        1.3577        .10010E-06** at limit **
  10  Prefactor     5.2185        2.7275        .34826E-07    .84643E-03
  11  Prefactor     .53619        2.0234        .58523E-07   -.30018E-01
  12  Prefactor     .44409E-09    3.2697       -.48004E-07** at limit **
  13  Prefactor     .27200E-08    3.5250        .19180E-07** at limit **
  14  norm          13.609        2.9050        .11301E-07    .63398E-01
  15  Prefactor     35.133        5.0056       -.44983E-07   -.14782    
  16  Prefactor     .31641E-08    6.1006       -.14016E-06** at limit **
  17  Prefactor     9.8134        6.0611       -.12075E-07    .58912E-02
  18  norm          .38858E-09    5.1725        .61174E-06** at limit **
  19  Prefactor     .56066E-08    10.114        .64389E-06** at limit **
  20  Prefactor     .91843E-06    7.0847       -.17306E-06** at limit **
  21  norm          1.1831        .46809        .41964E-07   -.64219E-02
  22  norm          37.281        1.0548        .21634E-08    .10941E-01
  23  Prefactor      .0000        1.7061       -.32114E-07** at limit **
  24  norm          3.9309        2.6191        .59459E-07   -.48215E-03
  25  Prefactor     .10372E-05    7.0708       -.17832E-06** at limit **
  26  Prefactor     35.192        1.5446       -.10611E-08    .60985E-01
  27  norm          1.8834        1.7555       -.83522E-07   -.52145E-04
  28  norm          1.4884        1.0012       -.69288E-07    .18727E-02
  29  Prefactor     .40190E-07    26.337        .11550E-06** at limit **
  30  norm          3.4457        1.7877       -.78248E-08    .33456E-03
  31  Prefactor     39.228        45.290        .52350E-06   -.27245E-01
  32  Normalizat    1.0580        .17391       -.52234E-05   -.31834E-05
  33  Prefactor     .91502        .19832        .65097E-05   -.25916E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.22385
  norm       = 2.21517
  norm       = 7.21645e-10
  Prefactor  = 14.6975
  Prefactor  = 2.88908e-06
  Prefactor  = 3.73514
  norm       = 0
  norm       = 4.28733
  Prefactor  = 0
  Prefactor  = 5.21845
  Prefactor  = 0.536187
  Prefactor  = 4.44089e-10
  Prefactor  = 2.72005e-09
  norm       = 13.6089
  Prefactor  = 35.133
  Prefactor  = 3.16414e-09
  Prefactor  = 9.81337
  norm       = 3.88578e-10
  Prefactor  = 5.60663e-09
  Prefactor  = 9.18432e-07
  norm       = 1.18313
  norm       = 37.2808
  Prefactor  = 0
  norm       = 3.93092
  Prefactor  = 1.03717e-06
  Prefactor  = 35.1922
  norm       = 1.88339
  norm       = 1.48841
  Prefactor  = 4.01901e-08
  norm       = 3.44567
  Prefactor  = 39.2275
  Normalizat = 1.05799
  Prefactor  = 0.915022
 **********
 **   18 **HESSE 
 **********

 FCN=   7959.574     FROM HESSE     STATUS=OK           771 CALLS     2688 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2239        6.5421        .49396E-03   -1.5667    
   2  norm          2.2152        4.2744        .69095E-03   -1.5678    
   3  norm          .72164E-09    3.9678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.697        10.175        .26127E-03   -1.5631    
   5  Prefactor     .28891E-05    12.527        .10554E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7351        5.1578        .51553E-03   -1.5669    
   7  norm           .0000        .21484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2873        1.0248        .48633E-04   -1.5667    
   9  Prefactor      .0000        1.3475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2185        2.7515        .44052E-03   -1.5662    
  11  Prefactor     .53619        10.845        .76320E-03   -1.5693    
  12  Prefactor     .44409E-09    3.2083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .27200E-08    3.8702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.609        18.295        .27613E-03   -1.5634    
  15  Prefactor     35.133        27.070        .16822E-03   -1.5589    
  16  Prefactor     .31641E-08    6.0990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.8134        6.0927        .31913E-03   -1.5645    
  18  norm          .38858E-09    5.1649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .56066E-08    10.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .91843E-06    14.254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1831        .46945        .83723E-03   -1.5686    
  22  norm          37.281        12.990        .16381E-03   -1.5586    
  23  Prefactor      .0000        1.7049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9309        2.6276        .50853E-03   -1.5668    
  25  Prefactor     .10372E-05    13.865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     35.192        19.619        .16820E-03   -1.5589    
  27  norm          1.8834        2.0130        .76008E-03   -1.5681    
  28  norm          1.4884        .99052        .87869E-03   -1.5684    
  29  Prefactor     .40190E-07    26.460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          3.4457        1.7849        .54459E-03   -1.5671    
  31  Prefactor     39.228        46.270        .16152E-03   -1.5583    
  32  Normalizat    1.0580        .15648        .40098E-01   -.91112    
  33  Prefactor     .91502        .17408        .67562E-01   -.95618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14309e-06
Minuit parameter uncertainties:
  1  6.5421
  2  4.27436
  3  0.00010693
  4  10.1751
  5  0.0120318
  6  5.1578
  7  4.67712e-07
  8  1.02477
  9  4.83492e-06
  10  2.7515
  11  4.82291
  12  7.38186e-05
  13  0.000205341
  14  18.2951
  15  27.0697
  16  0.000278994
  17  6.09274
  18  9.2441e-05
  19  0.000478324
  20  0.00723638
  21  0.469448
  22  12.9901
  23  4.50183e-06
  24  2.62761
  25  0.00758429
  26  19.6189
  27  2.01297
  28  0.990521
  29  0.00206271
  30  1.78491
  31  46.2704
  32  0.156553
  33  0.174187
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  9.813e+00  6.093e+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

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  9.150e-01  1.742e-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.058e+00  1.566e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.33
Ra Dec: 146.316 52.005
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 7.89e-06

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) = 7958.96318902
delta logL = 0.610473615593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7958.95468636
delta logL = 0.618976279409

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7958.955     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      240 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6693        49.764        .42165E-03    .43661E-02
   2  Index         3.4807        3.5229        .16340        .13041E-03
   3  Normalizat    1.0267        .57645E-01    .42515E-01    .13025E-04
   4  Prefactor     .93920        .65434E-01    .66801E-01    .17793E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66926
  Index      = 3.4807
  Normalizat = 1.02665
  Prefactor  = 0.939201
 **********
 **   18 **HESSE 
 **********

 FCN=   7958.955     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6693        6.3400        .10498E-04   -1.5660    
   2  Index         3.4807        .87130        .61865E-02   -.30874    
   3  Normalizat    1.0267        .17322        .24437E-03   -.92143    
   4  Prefactor     .93920        .19765        .29547E-03   -.94784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75694e-09
Minuit parameter uncertainties:
  1  6.34
  2  0.876236
  3  0.173318
  4  0.1978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430907': 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) = 7958.95468633
delta logL = 0.618976303625

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  5.669e+00  6.340e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  3.481e+00  8.762e-01  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:  9.392e-01  1.978e-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.027e+00  1.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.66
Ra Dec: 146.316 52.005
Photon Index (Free Index): 3.48 +/- 0.88
Photon Flux (Free Index): 7.67e-08 +/- 4.15e-08
Energy Flux (Free Index): 1.28e-05 +/- 6.92e-06

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/430907/cmap_HighResolution_697852801_698112001_4FGL_J0945.2+5200_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='1.28e-05', photon_flux_error='3.32e-08', dlogl='6.19e-01', energy_flux='1.27e-05', photon_flux2='7.67e-08', job_status='DONE', time_completed='2023-02-15 00:45:29.557058', photon_index_error2='0.88', photon_index2='3.48', ts='4.33', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='6.92e-06', EG='1.06', time_epoch_completed='1676450729.56', return_code='0', job_id='430907', GAL2='0.94', EG2='1.03', return_code2='0', energy_flux_error='7.89e-06', photon_flux_error2='4.15e-08', ts2='5.66', photon_index='2.72' WHERE bin_id='1769' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 00:45:29 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 430907: <4FGL_J0945.2+5200_daily_bin1769> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1769> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Feb 15 00:30:22 2023
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:30:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:30:23 2023
Terminated at Wed Feb 15 00:45:30 2023
Results reported at Wed Feb 15 00:45:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1769 146.316 52.0053 697852801 698112001 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 :                                   808.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

