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


Performing analysis on: 4FGL_J0941.7+4125_daily_bin1778
RA = 145.45, Dec = 41.4216
tmin = 700185601, tmax = 700444801
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='956098', job_status='RUN', time_executed='2023-03-14 00:31:13.046598', time_epoch_executed='1678779073.05' WHERE source_name='4FGL J0941.7+4125' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956098

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956098/ft1_4FGL_J0941.7+4125_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956098/ft1_4FGL_J0941.7+4125_daily_bin1778.fits outfile=/scratch/kocevski/956098/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin1778.fits ra=145.45 dec=41.4216 rad=12.0 tmin=700185601.0 tmax=700444801.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.94
user 3.72
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.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/956098/ft1_filteredMKT_4FGL_J0941.7+4125_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/956098/ft1_filtered_4FGL_J0941.7+4125_daily_bin1778.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.33
sys 0.14

Number of photons that the gtmktime cut: 523

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956098/ft1_filtered_4FGL_J0941.7+4125_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/956098/ltcube_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.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/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits
.....................!
real 11.72
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956098/ft1_filtered_4FGL_J0941.7+4125_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/956098/ltcube_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.fits outfile=/scratch/kocevski/956098/expmap_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.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/956098/ltcube_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.fits
.....................!
real 190.75
user 186.52
sys 3.93

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

Setting source of interest to:
4FGL J0941.7+4125 @ 145.45 41.4216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/956098/ft1_filtered_4FGL_J0941.7+4125_daily_bin1778.fits scfile=/scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits outfile=/scratch/kocevski/956098/cmap_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.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=145.45 yref=41.4216 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956098/ft1_filtered_4FGL_J0941.7+4125_daily_bin1778.fits scfile=/scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits outfile=/scratch/kocevski/956098/cmap_HighResolution_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.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=145.45 yref=41.4216 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/956098/ft1_filtered_4FGL_J0941.7+4125_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/956098/Model_4FGL_J0941.7+4125_daily_bin1778.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/956098/ft1_filtered_4FGL_J0941.7+4125_daily_bin1778.fits.....................!
real 50.39
user 49.09
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956098/ft1_filtered_4FGL_J0941.7+4125_daily_bin1778.fits', '/scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits', expMap='/scratch/kocevski/956098/expmap_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.fits', expCube='/scratch/kocevski/956098/ltcube_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956098/Model_4FGL_J0941.7+4125_daily_bin1778.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.7+4125'

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  1.978e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/956098/ft1_filtered_4FGL_J0941.7+4125_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/956098/ft2_4FGL_J0941.7+4125_daily_bin1778.fits
Exposure map: /scratch/kocevski/956098/expmap_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.fits
Exposure cube: /scratch/kocevski/956098/ltcube_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956098/Model_4FGL_J0941.7+4125_daily_bin1778.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) = 5691.92320423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1801       1.0000          .0000       .10000E+07
     2 'Prefactor '    37.119       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10890       1.0000          .0000       .10000E+07
     4 'Prefactor '    .34654E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .50798E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5279       1.0000          .0000       .10000E+07
     7 'norm      '    2.7738       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9882       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27049E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .75335E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10426E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .14829E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .44908E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .83478E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    36.541       1.0000          .0000       .10000E+07
    16 'Prefactor '    .21620E-03   1.0000          .0000       .10000E+07
    17 'norm      '    12.225       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13806E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .75381E-04   1.0000          .0000       .10000E+07
    20 'norm      '    3.5186       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.0894       1.0000          .0000       .10000E+07
    22 'norm      '    19.833       1.0000          .0000       .10000E+07
    23 'Prefactor '    61.099       1.0000          .0000       .10000E+07
    24 'Prefactor '    .34472E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .96708       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85507       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5691.885     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     2265 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2326        5.3355        .50012E-06   -.43203E-03
   2  Prefactor     37.208        7.9313        .31288E-07   -.71532E-01
   3  Prefactor     .95385E-01    20.480        .20049E-05** at limit **
   4  Prefactor     .40856E-07    11.927       -.77129E-06** at limit **
   5  norm           .0000        .52744       -.32237E-07** at limit **
   6  Prefactor     2.5266        2.2315       -.61607E-07    .15189E-03
   7  norm          2.7484        2.5690        .18490E-06   -.36677E-01
   8  Prefactor     2.9916        1.9999       -.55857E-07    .13601E-02
   9  Prefactor     .61062E-09    2.1346       -.58719E-07** at limit **
  10  Prefactor     .34417E-07    3.2759       -.15714E-06** at limit **
  11  Prefactor     .29587E-07    14.224       -.12547E-06** at limit **
  12  norm          .27994E-06    1.9178       -.17731E-07** at limit **
  13  Prefactor     .39413E-08    6.9064       -.27854E-06** at limit **
  14  Prefactor     .33307E-09    2.1454        .12722E-06** at limit **
  15  Prefactor     37.129        32.304        .38395E-07    .53485E-02
  16  Prefactor     .63172E-07    3.2294       -.30487E-07** at limit **
  17  norm          12.223        1.1839       -.17499E-07    .23664E-02
  18  Prefactor     .45852E-06    1.7942       -.29196E-07** at limit **
  19  Prefactor     .22204E-09    1.7603        .20134E-06** at limit **
  20  norm          3.5190        2.0118        .43324E-07   -.65394E-03
  21  Prefactor     5.0950        4.0771       -.64535E-07   -.15621E-02
  22  norm          19.817        1.2702       -.10157E-07   -.23933E-01
  23  Prefactor     61.025        4.7649       -.38944E-08   -.14389E-01
  24  Prefactor     .55511E-10    2.8190        .24667E-06** at limit **
  25  Normalizat    .96653        .18610        .16211E-06    .20334E-04
  26  Prefactor     .85539        .21711       -.21772E-05    .26474E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.23261
  Prefactor  = 37.2077
  Prefactor  = 0.0953855
  Prefactor  = 4.08562e-08
  norm       = 0
  Prefactor  = 2.52661
  norm       = 2.74841
  Prefactor  = 2.99162
  Prefactor  = 6.10623e-10
  Prefactor  = 3.44169e-08
  Prefactor  = 2.95874e-08
  norm       = 2.79943e-07
  Prefactor  = 3.94129e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 37.1287
  Prefactor  = 6.31717e-08
  norm       = 12.2228
  Prefactor  = 4.58522e-07
  Prefactor  = 2.22045e-10
  norm       = 3.51901
  Prefactor  = 5.09497
  norm       = 19.8175
  Prefactor  = 61.0251
  Prefactor  = 5.55112e-11
  Normalizat = 0.966532
  Prefactor  = 0.855385
 **********
 **   18 **HESSE 
 **********

 FCN=   5691.885     FROM HESSE     STATUS=OK           518 CALLS     2783 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2326        5.3365        .69696E-03   -1.5678    
   2  Prefactor     37.208        38.912        .16415E-03   -1.5586    
   3  Prefactor     .95385E-01    1.4876        .65256E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .40856E-07    12.149        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .26180        .12255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.5266        2.4326        .64218E-03   -1.5676    
   7  norm          2.7484        8.0923        .61079E-03   -1.5675    
   8  Prefactor     2.9916        2.0264        .58701E-03   -1.5673    
   9  Prefactor     .61062E-09    4.5905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .34417E-07    3.5770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29587E-07    14.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .27994E-06    4.2920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .39413E-08    6.9199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .33307E-09    2.1427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.129        33.232        .16545E-03   -1.5586    
  16  Prefactor     .63172E-07    3.7320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.223        9.6660        .28625E-03   -1.5638    
  18  Prefactor     .45852E-06    5.0824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .22204E-09    1.7645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5190        2.0091        .53869E-03   -1.5670    
  21  Prefactor     5.0950        4.0865        .44544E-03   -1.5663    
  22  norm          19.817        11.013        .22462E-03   -1.5619    
  23  Prefactor     61.025        33.665        .12794E-03   -1.5552    
  24  Prefactor     .55511E-10    2.8048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96653        .16180        .45753E-01   -.94160    
  26  Prefactor     .85539        .18585        .44430E-01   -.97718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22603e-07
Minuit parameter uncertainties:
  1  5.33655
  2  38.9119
  3  0.753371
  4  0.00140954
  5  7.08891e-07
  6  2.43261
  7  8.09236
  8  2.02642
  9  0.000104275
  10  0.000701544
  11  0.00130617
  12  0.00219235
  13  0.000330008
  14  5.38539e-05
  15  33.2325
  16  0.000971242
  17  9.666
  18  0.00305319
  19  3.8139e-05
  20  2.00906
  21  4.08655
  22  11.0131
  23  33.6647
  24  2.48977e-05
  25  0.161878
  26  0.18599
Done.

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

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  2.799e-07  2.192e-03  0.000e+00  1.000e+06 ( 1.000e-13)
320        alpha:  2.820e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
321         beta:  6.575e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.554e-01  1.860e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.665e-01  1.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 145.450 41.422
Photon Flux Upper Limit: 2.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/956098/likelihoodResults_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.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): 0
logL (Free Index) = 5691.88507196
delta logL = -0.000295009466754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5691.88477701
delta logL = -6.72007445246e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41633E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    .60252       1.0000          .0000       5.0000    
     3 'Normalizat'    .96646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5691.885     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      259 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.5398        .42118E-03** at limit **
   2  alpha         4.5938        .77225        .35893E-03     .0000    
   3  Normalizat    .96653        1.2983        .18553E-04    .10197E-04
   4  Prefactor     .85538        1.2023       -.23405E-04   -.22177E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 4.59379
  Normalizat = 0.966532
  Prefactor  = 0.855385
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5691.885     FROM HESSE     STATUS=FAILED         7 CALLS      266 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.5398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.6605        .77225        .35893E-03    .99272    
   3  Normalizat    .96653        1.2983        .18553E-04   -.94160    
   4  Prefactor     .85538        1.2023       -.23405E-04   -.97718    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.90002e-12
Minuit parameter uncertainties:
  1  4.9567e-07
  2  0.820748
  3  1.3447
  4  1.24275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956098': 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): 101
logL (Free Index) = 5691.88477691
delta logL = 3.26081135427e-08

Extracting fit parameters...

4FGL J0941.7+4125
   Spectrum: LogParabola
319         norm:  0.000e+00  4.957e-07  0.000e+00  1.000e+06 ( 1.000e-13)
320        alpha:  4.594e+00  8.207e-01  0.000e+00  5.000e+00 ( 1.000e+00)
321         beta:  6.575e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
322           Eb:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.554e-01  1.243e+00  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  9.665e-01  1.345e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 145.450 41.422

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/956098/cmap_HighResolution_700185601_700444801_4FGL_J0941.7+4125_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-05', job_status='DONE', photon_flux_upper_limit='2.16e-08', time_completed='2023-03-14 00:43:05.750214', job_id='956098', GAL2='0.86', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1678779785.75', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.26e-08', ts2='0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='1778' AND source_name='4FGL J0941.7+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:43:05 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0146>
Subject: Job 956098: <4FGL_J0941.7+4125_daily_bin1778> in cluster <slac> Done

Job <4FGL_J0941.7+4125_daily_bin1778> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 00:30:23 2023
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:30:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:30:24 2023
Terminated at Tue Mar 14 00:43:06 2023
Results reported at Tue Mar 14 00:43:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.7+4125_daily_bin1778 145.45 41.4216 700185601 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.7+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   714.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            763 sec.

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

