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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1751
RA = 146.316, Dec = 52.0053
tmin = 693187201, tmax = 693446401
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='75073', job_status='RUN', time_executed='2022-12-23 00:33:01.069859', time_epoch_executed='1671784381.07' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75073

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75073/ft1_4FGL_J0945.2+5200_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75073/ft2_4FGL_J0945.2+5200_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75073/ft1_4FGL_J0945.2+5200_daily_bin1751.fits outfile=/scratch/kocevski/75073/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1751.fits ra=146.316 dec=52.0053 rad=12.0 tmin=693187201.0 tmax=693446401.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.63
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75073/ft2_4FGL_J0945.2+5200_daily_bin1751.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/75073/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/75073/ft1_filtered_4FGL_J0945.2+5200_daily_bin1751.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 618

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75073/ft1_filtered_4FGL_J0945.2+5200_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/75073/ft2_4FGL_J0945.2+5200_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/75073/ltcube_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.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/75073/ft2_4FGL_J0945.2+5200_daily_bin1751.fits
.....................!
real 12.64
user 12.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75073/ft1_filtered_4FGL_J0945.2+5200_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/75073/ft2_4FGL_J0945.2+5200_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/75073/ltcube_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.fits outfile=/scratch/kocevski/75073/expmap_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.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/75073/ltcube_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.fits
.....................!
real 190.55
user 184.85
sys 5.35

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/75073/ft1_filtered_4FGL_J0945.2+5200_daily_bin1751.fits scfile=/scratch/kocevski/75073/ft2_4FGL_J0945.2+5200_daily_bin1751.fits outfile=/scratch/kocevski/75073/cmap_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.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/75073/ft1_filtered_4FGL_J0945.2+5200_daily_bin1751.fits scfile=/scratch/kocevski/75073/ft2_4FGL_J0945.2+5200_daily_bin1751.fits outfile=/scratch/kocevski/75073/cmap_HighResolution_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.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.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75073/ft1_filtered_4FGL_J0945.2+5200_daily_bin1751.fits', '/scratch/kocevski/75073/ft2_4FGL_J0945.2+5200_daily_bin1751.fits', expMap='/scratch/kocevski/75073/expmap_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.fits', expCube='/scratch/kocevski/75073/ltcube_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75073/Model_4FGL_J0945.2+5200_daily_bin1751.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/75073/ft1_filtered_4FGL_J0945.2+5200_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/75073/ft2_4FGL_J0945.2+5200_daily_bin1751.fits
Exposure map: /scratch/kocevski/75073/expmap_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.fits
Exposure cube: /scratch/kocevski/75073/ltcube_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75073/Model_4FGL_J0945.2+5200_daily_bin1751.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) = 6694.36685314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14873E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .37476E-05   1.0000          .0000       .10000E+07
     3 'norm      '    6.1661       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.1505       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.2888       1.0000          .0000       .10000E+07
     6 'Prefactor '    .21829E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .47735       1.0000          .0000       .10000E+07
     8 'norm      '    1.5503       1.0000          .0000       .10000E+07
     9 'Prefactor '    .49508       1.0000          .0000       .10000E+07
    10 'Prefactor '    .82604E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .87535E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .65786E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    25.022       1.0000          .0000       .10000E+07
    14 'norm      '    2.5995       1.0000          .0000       .10000E+07
    15 'Prefactor '    12.835       1.0000          .0000       .10000E+07
    16 'Prefactor '    .26501E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    13.763       1.0000          .0000       .10000E+07
    18 'norm      '    .46639E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    46.468       1.0000          .0000       .10000E+07
    20 'Prefactor '    18.646       1.0000          .0000       .10000E+07
    21 'norm      '    1.7569       1.0000          .0000       .10000E+07
    22 'norm      '    .23340E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.5727       1.0000          .0000       .10000E+07
    24 'norm      '    3.2732       1.0000          .0000       .10000E+07
    25 'Prefactor '    6.9130       1.0000          .0000       .10000E+07
    26 'Prefactor '    .30738E-01   1.0000          .0000       .10000E+07
    27 'norm      '    2.1920       1.0000          .0000       .10000E+07
    28 'norm      '    .84543E-07   1.0000          .0000       .10000E+07
    29 'Prefactor '    .14658E-04   1.0000          .0000       .10000E+07
    30 'norm      '    3.8338       1.0000          .0000       .10000E+07
    31 'Prefactor '    .20244       1.0000          .0000       .10000E+07
    32 'Normalizat'    .81161       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0057       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=   6694.297     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2550 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.7778        .18539E-07** at limit **
   2  norm          .49960E-09    5.3735       -.17217E-06** at limit **
   3  norm          6.1557        4.5986       -.30601E-07    .13773E-03
   4  Prefactor     9.1587        7.4231        .22850E-07    .35410E-01
   5  Prefactor     7.3515        1.1323        .38365E-08    .68866E-03
   6  Prefactor     .27200E-08    2.6385       -.13686E-06** at limit **
   7  norm          .47706        .49796       -.38922E-07   -.77134E-03
   8  norm          1.5522        .87478       -.42865E-07   -.92674E-03
   9  Prefactor     .49954        5.5990        .50026E-07    .10171E-02
  10  Prefactor     .55511E-10    2.8905       -.15614E-06** at limit **
  11  Prefactor     .29421E-08    10.520       -.30347E-06** at limit **
  12  Prefactor      .0000        .94000       -.74355E-07** at limit **
  13  Prefactor     24.919        8.3197        .90917E-07   -.27123E-01
  14  norm          2.5321        6.1521       -.17876E-06    .29220E-01
  15  Prefactor     13.002        3.2539       -.20895E-07    .14086E-01
  16  Prefactor     .55511E-10    3.9023       -.17355E-06** at limit **
  17  Prefactor     13.790        6.1290        .14582E-06    .52134E-01
  18  norm          .55511E-10    2.2845        .22088E-06** at limit **
  19  Prefactor     47.897        33.986        .16469E-06   -.86250E-03
  20  Prefactor     18.484        2.5597       -.25085E-07   -.16358E-02
  21  norm          1.7565        .53806       -.91381E-09    .19842E-03
  22  norm          .33862E-08    8.1871       -.48079E-06** at limit **
  23  Prefactor     3.5919        4.3653        .13018E-07   -.51819E-02
  24  norm          3.2736        2.0026        .44346E-08    .32941E-03
  25  Prefactor     7.1377        3.6683        .35296E-07    .10765E-02
  26  Prefactor     .55511E-10    24.173        .80983E-06** at limit **
  27  norm          2.1956        1.4584       -.42407E-07   -.57418E-03
  28  norm           .0000        .76296       -.15096E-07** at limit **
  29  Prefactor     .55511E-08    30.439       -.53150E-06** at limit **
  30  norm          3.8356        2.3816        .16710E-07    .44085E-03
  31  Prefactor     .80713E-07    74.185       -.86153E-06** at limit **
  32  Normalizat    .81047        .17319       -.52104E-05    .32060E-05
  33  Prefactor     1.0064        .19541        .61305E-05    .14039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.996e-10
  norm       = 6.15573
  Prefactor  = 9.1587
  Prefactor  = 7.35154
  Prefactor  = 2.72005e-09
  norm       = 0.477056
  norm       = 1.55222
  Prefactor  = 0.499539
  Prefactor  = 5.55112e-11
  Prefactor  = 2.94209e-09
  Prefactor  = 0
  Prefactor  = 24.9186
  norm       = 2.53208
  Prefactor  = 13.0024
  Prefactor  = 5.55112e-11
  Prefactor  = 13.7897
  norm       = 5.55112e-11
  Prefactor  = 47.8967
  Prefactor  = 18.4845
  norm       = 1.75648
  norm       = 3.38618e-09
  Prefactor  = 3.59189
  norm       = 3.27364
  Prefactor  = 7.13766
  Prefactor  = 5.55112e-11
  norm       = 2.19559
  norm       = 0
  Prefactor  = 5.55112e-09
  norm       = 3.83556
  Prefactor  = 8.07132e-08
  Normalizat = 0.810474
  Prefactor  = 1.00639
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.297     FROM HESSE     STATUS=OK           775 CALLS     3325 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.7794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .49960E-09    5.3762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.1557        4.6326        .40405E-03   -1.5658    
   4  Prefactor     9.1587        8.0893        .33108E-03   -1.5647    
   5  Prefactor     7.3515        15.051        .37128E-03   -1.5654    
   6  Prefactor     .27200E-08    6.5512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .47706        .55872        .81021E-03   -1.5694    
   8  norm          1.5522        .88376        .85515E-03   -1.5683    
   9  Prefactor     .49954        7.0755        .79206E-03   -1.5694    
  10  Prefactor     .55511E-10    2.8287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29421E-08    10.730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .94108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.919        19.869        .19995E-03   -1.5608    
  14  norm          2.5321        9.7876        .63253E-03   -1.5676    
  15  Prefactor     13.002        16.090        .27934E-03   -1.5636    
  16  Prefactor     .55511E-10    6.3315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.790        7.0442        .26973E-03   -1.5634    
  18  norm          .55511E-10    2.2861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     47.897        34.177        .14671E-03   -1.5570    
  20  Prefactor     18.484        17.325        .23167E-03   -1.5622    
  21  norm          1.7565        .54854        .72530E-03   -1.5681    
  22  norm          .33862E-08    8.2296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.5919        4.4263        .53442E-03   -1.5670    
  24  norm          3.2736        2.0033        .55946E-03   -1.5672    
  25  Prefactor     7.1377        29.505        .38134E-03   -1.5655    
  26  Prefactor     .55511E-10    6.0758        .10293E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.1956        1.5157        .69482E-03   -1.5678    
  28  norm           .0000        .75829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .55511E-08    30.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          3.8356        2.3828        .51520E-03   -1.5669    
  31  Prefactor     .80713E-07    101.72        .11733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .81047        .15967        .43762E-01   -.99681    
  33  Prefactor     1.0064        .17275        .44044E-01   -.92517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25606e-07
Minuit parameter uncertainties:
  1  1.8733e-06
  2  0.000105601
  3  4.6326
  4  8.0893
  5  15.0512
  6  0.000267054
  7  0.558723
  8  0.883756
  9  3.76006
  10  2.40529e-05
  11  0.000353812
  12  8.2826e-07
  13  19.8689
  14  9.78764
  15  16.0898
  16  3.43306e-05
  17  7.04418
  18  2.74054e-05
  19  34.1772
  20  17.3247
  21  0.548538
  22  0.000334118
  23  4.42632
  24  2.00328
  25  29.0241
  26  3.79347e-05
  27  1.51571
  28  1.44336e-06
  29  0.000823863
  30  2.38278
  31  0.00573168
  32  0.159762
  33  0.17284
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.379e+01  7.044e+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:  1.006e+00  1.728e-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:  8.105e-01  1.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.04
Ra Dec: 146.316 52.005
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 7.53e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.79e-05 +/- 9.13e-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) = 6694.29635962
delta logL = 0.000630810823168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6694.29596926
delta logL = 0.00102117192091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.985       1.0000          .0000       .10000E+07
     2 'Index     '    2.6866       1.0000          .0000       10.000    
     3 'Normalizat'    .81252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0047       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6694.296     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      248 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.985        8.2568        .10703E-04    .26024E-02
   2  Index         2.6867        .71413        .81820E-02    .71252E-04
   3  Normalizat    .81251        .17057        .24267E-03   -.47317E-05
   4  Prefactor     1.0047        .19534        .25906E-03   -.26857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9849
  Index      = 2.6867
  Normalizat = 0.812506
  Prefactor  = 1.00473
 **********
 **   18 **HESSE 
 **********

 FCN=   6694.296     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.985        7.9507        .42812E-06   -1.5633    
   2  Index         2.6867        .68670        .32728E-03   -.48099    
   3  Normalizat    .81251        .17038        .97068E-05   -.99606    
   4  Prefactor     1.0047        .19526        .10362E-04   -.92572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70379e-11
Minuit parameter uncertainties:
  1  7.95073
  2  0.689481
  3  0.170495
  4  0.195397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75073': 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) = 6694.29596925
delta logL = 0.00102118073755

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.398e+01  7.951e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.687e+00  6.895e-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:  1.005e+00  1.954e-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:  8.125e-01  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.11
Ra Dec: 146.316 52.005
Photon Index (Free Index): 2.69 +/- 0.69
Photon Flux (Free Index): 7.38e-08 +/- 4.84e-08
Energy Flux (Free Index): 1.80e-05 +/- 8.90e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/75073/cmap_HighResolution_693187201_693446401_4FGL_J0945.2+5200_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.53e-08', energy_flux2='1.80e-05', photon_flux_error='3.84e-08', dlogl='1.02e-03', energy_flux='1.79e-05', photon_flux2='7.38e-08', job_status='DONE', time_completed='2022-12-23 00:46:19.288279', photon_index_error2='0.69', photon_index2='2.69', ts='9.04', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='8.90e-06', EG='0.81', time_epoch_completed='1671785179.29', return_code='0', job_id='75073', GAL2='1.00', EG2='0.81', return_code2='0', energy_flux_error='9.13e-06', photon_flux_error2='4.84e-08', ts2='9.11', photon_index='2.72' WHERE bin_id='1751' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:46:19 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 75073: <4FGL_J0945.2+5200_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0945.2+5200_daily_bin1751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 23 00:30:11 2022
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:30:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:30:13 2022
Terminated at Fri Dec 23 00:46:20 2022
Results reported at Fri Dec 23 00:46:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1751 146.316 52.0053 693187201 693446401 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 :                                   800.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             286.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

