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


Performing analysis on: 4FGL_J0945.2+5200_daily_bin1755
RA = 146.316, Dec = 52.0053
tmin = 694224001, tmax = 694483201
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='819174', job_status='RUN', time_executed='2023-01-04 00:47:19.062600', time_epoch_executed='1672822039.06' WHERE source_name='4FGL J0945.2+5200' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819174

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819174/ft1_4FGL_J0945.2+5200_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819174/ft2_4FGL_J0945.2+5200_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819174/ft1_4FGL_J0945.2+5200_daily_bin1755.fits outfile=/scratch/kocevski/819174/ft1_filteredMKT_4FGL_J0945.2+5200_daily_bin1755.fits ra=146.316 dec=52.0053 rad=12.0 tmin=694224001.0 tmax=694483201.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.07
user 2.79
sys 0.22

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

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

Number of photons that the gtmktime cut: 33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/819174/ft1_filtered_4FGL_J0945.2+5200_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/819174/ft2_4FGL_J0945.2+5200_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/819174/ltcube_694224001_694483201_4FGL_J0945.2+5200_daily_bin1755.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/819174/ft2_4FGL_J0945.2+5200_daily_bin1755.fits
.....................!
real 17.43
user 16.85
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819174/ft1_filtered_4FGL_J0945.2+5200_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/819174/ft2_4FGL_J0945.2+5200_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/819174/ltcube_694224001_694483201_4FGL_J0945.2+5200_daily_bin1755.fits outfile=/scratch/kocevski/819174/expmap_694224001_694483201_4FGL_J0945.2+5200_daily_bin1755.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/819174/ltcube_694224001_694483201_4FGL_J0945.2+5200_daily_bin1755.fits
.....................!
real 197.45
user 190.21
sys 6.00

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/819174/ft1_filtered_4FGL_J0945.2+5200_daily_bin1755.fits scfile=/scratch/kocevski/819174/ft2_4FGL_J0945.2+5200_daily_bin1755.fits outfile=/scratch/kocevski/819174/cmap_694224001_694483201_4FGL_J0945.2+5200_daily_bin1755.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/819174/ft1_filtered_4FGL_J0945.2+5200_daily_bin1755.fits scfile=/scratch/kocevski/819174/ft2_4FGL_J0945.2+5200_daily_bin1755.fits outfile=/scratch/kocevski/819174/cmap_HighResolution_694224001_694483201_4FGL_J0945.2+5200_daily_bin1755.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.57
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79751       1.0000          .0000       .10000E+07
     2 'norm      '    .99535E+06   1.0000          .0000       .10000E+07
     3 'norm      '    .99925E+06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .81111       1.0000          .0000       .10000E+07
     5 'Prefactor '    .99624E+06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .99945E+06   1.0000          .0000       .10000E+07
     7 'norm      '    .59581       1.0000          .0000       .10000E+07
     8 'norm      '    .11783E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.162       1.0000          .0000       .10000E+07
    10 'Prefactor '    .17939E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .13443E+06   1.0000          .0000       .10000E+07
    12 'Prefactor '    8003.6       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25001       1.0000          .0000       .10000E+07
    14 'norm      '    .22001E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .37651       1.0000          .0000       .10000E+07
    16 'Prefactor '    .13350       1.0000          .0000       .10000E+07
    17 'Prefactor '    .51979       1.0000          .0000       .10000E+07
    18 'norm      '    692.93       1.0000          .0000       .10000E+07
    19 'Prefactor '    .35909       1.0000          .0000       .10000E+07
    20 'Prefactor '    .90277       1.0000          .0000       .10000E+07
    21 'norm      '    .26610E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .10016E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .17777       1.0000          .0000       .10000E+07
    24 'norm      '    .15009E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .81108E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    .22893E-02   1.0000          .0000       .10000E+07
    27 'norm      '    1.3293       1.0000          .0000       .10000E+07
    28 'norm      '    .21672E-06   1.0000          .0000       .10000E+07
    29 'Prefactor '    3.8015       1.0000          .0000       .10000E+07
    30 'norm      '    .11796E-05   1.0000          .0000       .10000E+07
    31 'Prefactor '    19.013       1.0000          .0000       .10000E+07
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .11004E-06   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=   302.2551     FROM MIGRAD    STATUS=CONVERGED    288 CALLS     3552 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77735E-03    1057.3        .22314E-05** at limit **
   2  norm          .99535E+06    25.631        .10327E-07   -.21722    
   3  norm          .99925E+06    41.683        .41782E-07   -.14245    
   4  Prefactor     .16407E-02    1164.9       -.18729E-05** at limit **
   5  Prefactor     .99624E+06    34.095        .15269E-07   -.26019    
   6  Prefactor     .99946E+06    93.266        .10975E-06   -.27306    
   7  norm          .11175E-04    483.55       -.26122E-05** at limit **
   8  norm           .0000        2.8023       -.29445E-07** at limit **
   9  Prefactor     .25664        3751.0       -.62460E-05   -.67453E-01
  10  Prefactor      .0000        353.57       -.34950E-06** at limit **
  11  Prefactor     .13443E+06    1.6797        .10557E-09   -.57849E-01
  12  Prefactor     7990.0        250.29       -.77165E-07    2.7807    
  13  Prefactor     .15719E-03    1340.4        .11821E-05** at limit **
  14  norm          .14050E-06    161.99       -.61232E-07** at limit **
  15  Prefactor      .0000        224.07        .38997E-06** at limit **
  16  Prefactor      .0000        123.81        .21070E-07** at limit **
  17  Prefactor      .0000        330.23       -.15719E-06** at limit **
  18  norm          697.05        76.059        .79163E-07   -.24757    
  19  Prefactor      .0000        214.84       -.15822E-06** at limit **
  20  Prefactor     .10411        3386.9       -.46870E-05** at limit **
  21  norm           .0000        4.7738        .44221E-08** at limit **
  22  norm           .0000        55.994        .82984E-07** at limit **
  23  Prefactor      .0000        30.916       -.13269E-07** at limit **
  24  norm           .0000        4.0681        .27740E-07** at limit **
  25  Prefactor      .0000        104.68       -.52419E-08** at limit **
  26  Prefactor      .0000        10.676       -.13514E-07** at limit **
  27  norm          1.3246        3.0220       -.35355E-07    .40532E-04
  28  norm           .0000        1.5656       -.28843E-07** at limit **
  29  Prefactor     .14022E-06    384.47       -.10861E-05** at limit **
  30  norm           .0000        5.5123        .19976E-07** at limit **
  31  Prefactor     21.585        57.581       -.54085E-05    .24150E-03
  32  Normalizat    .10000E-01    .47478E-01   -.12065E-05** at limit **
  33  Prefactor     .27756E-14    .72496E-01    .22247E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000777346
  norm       = 995352
  norm       = 999251
  Prefactor  = 0.0016407
  Prefactor  = 996238
  Prefactor  = 999455
  norm       = 1.11748e-05
  norm       = 0
  Prefactor  = 0.256641
  Prefactor  = 0
  Prefactor  = 134427
  Prefactor  = 7990.01
  Prefactor  = 0.000157194
  norm       = 1.40499e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 697.046
  Prefactor  = 0
  Prefactor  = 0.104106
  norm       = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.32463
  norm       = 0
  Prefactor  = 1.40221e-07
  norm       = 0
  Prefactor  = 21.5845
  Normalizat = 0.01
  Prefactor  = 2.77556e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   302.2551     FROM HESSE     STATUS=OK           735 CALLS     4287 TOTAL
                     EDM=   .54E+00    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77735E-03    1057.2        .53120E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .99535E+06    .14833E+06    .14700E-04    1.4343    
   3  norm          .99925E+06    92972.        .36492E-04    1.5160    
   4  Prefactor     .16407E-02    1164.8        .52111E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .99624E+06    .11296E+06    .16332E-04    1.4481    
   6  Prefactor     .99946E+06    42109.        .42662E-04    1.5241    
   7  norm          .11175E-04    483.66        .69604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2.8023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .25664        3750.5        .25696E-03   -1.5718    
  10  Prefactor      .0000        353.54        .17176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13443E+06    .14777E+06    .39101E-04   -.82000    
  12  Prefactor     7990.0        20593.        .11223E-04   -1.3918    
  13  Prefactor     .15719E-03    1340.4        .10946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .14050E-06    162.09        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        224.15        .92261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        123.78        .13105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        330.31        .76743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          697.05        13716.        .38002E-04   -1.5180    
  19  Prefactor      .0000        214.96        .94388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10411        3386.0        .45569E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        4.7751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        56.007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        30.899        .12186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        4.0662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        104.67        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        10.678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.3246        3.2682        .95238E-03   -1.5685    
  28  norm           .0000        1.5641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .14022E-06    385.37        .51747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm           .0000        5.3351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     21.585        58.236        .22942E-03   -1.5615    
  32  Normalizat    .10000E-01    .47492E-01    .52994E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .27756E-14    .72443E-01    .65516E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.537146
Minuit parameter uncertainties:
  1  1.81339
  2  54047.1
  3  16969.5
  4  2.76541
  5  42130.3
  6  9649.59
  7  0.147046
  8  2.37972e-07
  9  62.0882
  10  8.48878e-06
  11  152837
  12  20780.7
  13  0.918239
  14  0.00954387
  15  5.7328e-05
  16  3.76782e-06
  17  1.33109e-05
  18  6200.53
  19  1.89422e-05
  20  37.5711
  21  1.25934e-07
  22  3.42126e-06
  23  2.66984e-07
  24  1.29515e-07
  25  7.46875e-07
  26  5.24419e-07
  27  3.26824
  28  2.2545e-07
  29  0.0147033
  30  5.49324e-07
  31  58.2377
  32  1.27967e-08
  33  2.92158e-08
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  0.000e+00  1.331e-05  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.776e-15  2.922e-08  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.000e-02  1.280e-08  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.08e-05 ph cm-2 s-1
Energy Flux Upper Limit: 8.50e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/819174/likelihoodResults_694224001_694483201_4FGL_J0945.2+5200_daily_bin1755.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) = 302.256591489
delta logL = -0.00144933826357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 302.255142416
delta logL = -2.6606113579e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68980E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.7125       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34607E-07   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=   302.2551     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      249 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19484E-07    3669.2        .42118E-03** at limit **
   2  Index         1.2816        5.2165        .50000       -.18332E-09
   3  Normalizat    .10000E-01    .14394E-02    .52994E-01** at limit **
   4  Prefactor     .30514E-11    .21993E-02    .65516E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94844e-08
  Index      = 1.28156
  Normalizat = 0.01
  Prefactor  = 3.05145e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   302.2551     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19484E-07    16258.        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2816        7.8181        .50000       -.83857    
   3  Normalizat    .10000E-01    .72254E-02    .11675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30514E-11    .11040E-01    .14424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.05863e-09
Minuit parameter uncertainties:
  1  0.0356745
  2  420484
  3  3.98567e-07
  4  3.67154e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819174': 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) = 302.25514215
delta logL = -6.03108674113e-11

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.948e-08  3.567e-02  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  1.282e+00  4.205e+05  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:  3.051e-12  3.672e-07  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.000e-02  3.986e-07  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/819174/cmap_HighResolution_694224001_694483201_4FGL_J0945.2+5200_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.50e-01', job_status='DONE', photon_flux_upper_limit='1.08e-05', time_completed='2023-01-04 00:53:50.083673', job_id='819174', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1672822430.08', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-6.03e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1755' AND source_name='4FGL J0945.2+5200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 00:53:50 PST 2023


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

Job <4FGL_J0945.2+5200_daily_bin1755> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jan  4 00:45:40 2023
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:47:05 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:47:05 2023
Terminated at Wed Jan  4 00:53:50 2023
Results reported at Wed Jan  4 00:53:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0945.2+5200_daily_bin1755 146.316 52.0053 694224001 694483201 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 :                                   391.47 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             292.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   405 sec.
    Turnaround time :                            490 sec.

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

