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


Performing analysis on: 4FGL_J0912.2+4127_daily_bin1759
RA = 138.056, Dec = 41.4563
tmin = 695260801, tmax = 695520001
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='554298', job_status='RUN', time_executed='2023-01-16 00:59:27.278262', time_epoch_executed='1673859567.28' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554298

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554298/ft1_4FGL_J0912.2+4127_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554298/ft1_4FGL_J0912.2+4127_daily_bin1759.fits outfile=/scratch/kocevski/554298/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1759.fits ra=138.056 dec=41.4563 rad=12.0 tmin=695260801.0 tmax=695520001.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 2.80
user 2.55
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.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/554298/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/554298/ft1_filtered_4FGL_J0912.2+4127_daily_bin1759.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.34
sys 0.16

Number of photons that the gtmktime cut: 78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554298/ft1_filtered_4FGL_J0912.2+4127_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/554298/ltcube_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.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/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits
.....................!
real 17.56
user 17.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554298/ft1_filtered_4FGL_J0912.2+4127_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/554298/ltcube_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.fits outfile=/scratch/kocevski/554298/expmap_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.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/554298/ltcube_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.fits
.....................!
real 197.37
user 190.94
sys 5.49

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

Setting source of interest to:
4FGL J0912.2+4127 @ 138.056 41.4563

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/554298/ft1_filtered_4FGL_J0912.2+4127_daily_bin1759.fits scfile=/scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits outfile=/scratch/kocevski/554298/cmap_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.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=138.056 yref=41.4563 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554298/ft1_filtered_4FGL_J0912.2+4127_daily_bin1759.fits scfile=/scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits outfile=/scratch/kocevski/554298/cmap_HighResolution_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.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=138.056 yref=41.4563 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/554298/ft1_filtered_4FGL_J0912.2+4127_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/554298/Model_4FGL_J0912.2+4127_daily_bin1759.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/554298/ft1_filtered_4FGL_J0912.2+4127_daily_bin1759.fits..........................!
real 20.67
user 19.35
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/554298/ft1_filtered_4FGL_J0912.2+4127_daily_bin1759.fits', '/scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits', expMap='/scratch/kocevski/554298/expmap_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.fits', expCube='/scratch/kocevski/554298/ltcube_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/554298/Model_4FGL_J0912.2+4127_daily_bin1759.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0912.2+4127'

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  1.422e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
330        Index:  2.461e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  7.992e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/554298/ft1_filtered_4FGL_J0912.2+4127_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/554298/ft2_4FGL_J0912.2+4127_daily_bin1759.fits
Exposure map: /scratch/kocevski/554298/expmap_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.fits
Exposure cube: /scratch/kocevski/554298/ltcube_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/554298/Model_4FGL_J0912.2+4127_daily_bin1759.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) = 960.388516659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55710       1.0000          .0000       .10000E+07
     2 'norm      '    .25592E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .36049       1.0000          .0000       .10000E+07
     4 'Prefactor '    74.882       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19379       1.0000          .0000       .10000E+07
     6 'Prefactor '    .40260E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .73681E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .63162E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    88.769       1.0000          .0000       .10000E+07
    10 'Prefactor '    .92815E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    42.132       1.0000          .0000       .10000E+07
    12 'norm      '    .29215E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .81638E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .15815E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .86942E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .14438E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .32870E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .18996E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .90384E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .89182E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    83.826       1.0000          .0000       .10000E+07
    22 'Prefactor '    23.712       1.0000          .0000       .10000E+07
    23 'Prefactor '    19.730       1.0000          .0000       .10000E+07
    24 'Prefactor '    48.646       1.0000          .0000       .10000E+07
    25 'norm      '    54.965       1.0000          .0000       .10000E+07
    26 'Normalizat'    .97796       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .70401E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   960.3417     FROM MIGRAD    STATUS=CONVERGED    314 CALLS     3191 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58230E-05    266.17       -.23110E-07** at limit **
   2  norm           .0000        3.3129       -.27780E-08** at limit **
   3  Prefactor     .54753E-05    20.039       -.21285E-06** at limit **
   4  Prefactor     75.019        30.234       -.14830E-06   -.14935    
   5  Prefactor     .21649E-08    102.88       -.65077E-06** at limit **
   6  Prefactor     .21649E-07    27.896       -.19882E-06** at limit **
   7  norm          .17597E-07    21.124        .33859E-06** at limit **
   8  norm          .16653E-09    9.5300       -.11789E-06** at limit **
   9  Prefactor     88.669        58.356       -.28742E-06    .10486    
  10  Prefactor     .55511E-10    75.071        .10908E-06** at limit **
  11  Prefactor     41.927        5.0045       -.54876E-09    .84928E-01
  12  norm          .11102E-09    7.5139       -.72874E-09** at limit **
  13  Prefactor     .61062E-09    23.301        .12627E-06** at limit **
  14  norm          .55511E-10    7.1349       -.53553E-06** at limit **
  15  Prefactor     .46074E-08    13.742       -.75254E-07** at limit **
  16  norm          .27756E-09    8.0706       -.32787E-06** at limit **
  17  Prefactor      .0000        3.3741       -.25852E-08** at limit **
  18  Prefactor     .55511E-10    8.1408        .34162E-06** at limit **
  19  Prefactor     .14100E-07    16.278       -.34382E-06** at limit **
  20  norm          .74440E-07    42.021       -.27386E-06** at limit **
  21  Prefactor     91.313        78.513        .48175E-06    .72260E-01
  22  Prefactor     23.541        19.098        .13721E-06   -.15014E-01
  23  Prefactor     .16735E-01    1855.0       -.39470E-05** at limit **
  24  Prefactor     48.977        4.1710       -.18596E-08    .49441E-01
  25  norm          54.697        29.011       -.38640E-07   -.38763E-01
  26  Normalizat    .99123        .49210        .45976E-05    .92988E-05
  27  Prefactor     .67848E-01    .85209        .36800E-05    .14432E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.82295e-06
  norm       = 0
  Prefactor  = 5.47534e-06
  Prefactor  = 75.0189
  Prefactor  = 2.16493e-09
  Prefactor  = 2.16493e-08
  norm       = 1.7597e-08
  norm       = 1.66533e-10
  Prefactor  = 88.6686
  Prefactor  = 5.55112e-11
  Prefactor  = 41.9268
  norm       = 1.11022e-10
  Prefactor  = 6.10623e-10
  norm       = 5.55112e-11
  Prefactor  = 4.60743e-09
  norm       = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 1.40998e-08
  norm       = 7.44405e-08
  Prefactor  = 91.3131
  Prefactor  = 23.5406
  Prefactor  = 0.0167351
  Prefactor  = 48.9765
  norm       = 54.6965
  Normalizat = 0.991228
  Prefactor  = 0.0678481
 **********
 **   18 **HESSE 
 **********

 FCN=   960.3417     FROM HESSE     STATUS=OK           530 CALLS     3721 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58230E-05    274.84        .73162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        3.3194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .54753E-05    158.12        .94214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     75.019        58.992        .11557E-03   -1.5535    
   5  Prefactor     .21649E-08    102.43        .11887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .21649E-07    30.325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .17597E-07    21.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .16653E-09    9.5632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     88.669        67.868        .10614E-03   -1.5520    
  10  Prefactor     .55511E-10    75.129        .14126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.927        19.720        .15408E-03   -1.5578    
  12  norm          .11102E-09    7.5317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .61062E-09    23.796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    1.1752        .19774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .46074E-08    13.445        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .27756E-09    8.0677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.3719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .55511E-10    8.1530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14100E-07    16.589        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .74440E-07    42.126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     91.313        82.656        .10923E-03   -1.5517    
  22  Prefactor     23.541        19.139        .20541E-03   -1.5611    
  23  Prefactor     .16735E-01    9220.9        .22521E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     48.977        38.871        .14339E-03   -1.5568    
  25  norm          54.697        29.970        .13489E-03   -1.5560    
  26  Normalizat    .99123        .29207        .45890E-01   -.93325    
  27  Prefactor     .67848E-01    .22432        .19342       -1.7357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87287e-06
Minuit parameter uncertainties:
  1  0.0800138
  2  8.87821e-06
  3  0.0588495
  4  58.9928
  5  0.000943011
  6  0.0016211
  7  0.00121923
  8  8.2323e-05
  9  67.8683
  10  0.000108271
  11  19.7197
  12  5.78424e-05
  13  0.000238192
  14  1.4539e-05
  15  0.000497321
  16  9.70831e-05
  17  7.65777e-06
  18  3.87202e-05
  19  0.000967722
  20  0.00354158
  21  82.6567
  22  19.1395
  23  24.8829
  24  38.871
  25  29.9702
  26  0.292543
  27  0.227205
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  4.193e+01  1.972e+01  0.000e+00  1.000e+06 ( 1.000e-12)
330        Index:  2.461e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  7.992e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  6.785e-02  2.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  9.912e-01  2.925e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.83
Ra Dec: 138.056 41.456
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.78e-07 +/- 2.25e-07
Energy Flux (Fixed Index): 1.45e-04 +/- 6.83e-05

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) = 958.566231767
delta logL = 1.77549225868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 958.097375456
delta logL = 2.24434856953

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   958.0974     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      259 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.078        28.562        .12216E-03    .30060E-04
   2  Index         1.6411        .30096        .56193E-01   -.90290E-05
   3  Normalizat    1.0437        .30795        .40937E-01    .57140E-05
   4  Prefactor     .11102E-12    .79386        .19874    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.0778
  Index      = 1.6411
  Normalizat = 1.04371
  Prefactor  = 1.11022e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   958.0974     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.078        28.982        .48864E-05   -1.5544    
   2  Index         1.6411        .31060        .24542E-03   -.73661    
   3  Normalizat    1.0437        .22869        .22054E-03   -.91580    
   4  Prefactor     .11102E-12    1.4988        .12466E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58673e-13
Minuit parameter uncertainties:
  1  28.9818
  2  0.310967
  3  0.228906
  4  8.36852e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554298': 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) = 958.097365391
delta logL = 2.24435863488

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  6.708e+01  2.898e+01  0.000e+00  1.000e+06 ( 1.000e-12)
330        Index:  1.641e+00  3.110e-01  0.000e+00  1.000e+01 (-1.000e+00)
331        Scale:  7.992e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.110e-13  8.369e-07  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.044e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.83
Ra Dec: 138.056 41.456
Photon Index (Free Index): 1.64 +/- 0.31
Photon Flux (Free Index): 3.13e-07 +/- 1.57e-07
Energy Flux (Free Index): 6.19e-04 +/- 5.36e-04

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/554298/cmap_HighResolution_695260801_695520001_4FGL_J0912.2+4127_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.78e-07', energy_flux2='6.19e-04', photon_flux_error='2.25e-07', dlogl='2.24e+00', energy_flux='1.45e-04', photon_flux2='3.13e-07', job_status='DONE', time_completed='2023-01-16 01:06:06.077754', photon_index_error2='0.31', photon_index2='1.64', ts='11.83', fit_tolerance='1e-08', GAL='0.07', photon_index_error='0.00', energy_flux_error2='5.36e-04', EG='0.99', time_epoch_completed='1673859966.08', return_code='0', job_id='554298', GAL2='0.00', EG2='1.04', return_code2='0', energy_flux_error='6.83e-05', photon_flux_error2='1.57e-07', ts2='15.83', photon_index='2.46' WHERE bin_id='1759' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:06:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 554298: <4FGL_J0912.2+4127_daily_bin1759> in cluster <slac> Done

Job <4FGL_J0912.2+4127_daily_bin1759> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 16 00:55:34 2023
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 00:57:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 00:57:29 2023
Terminated at Mon Jan 16 01:06:06 2023
Results reported at Mon Jan 16 01:06:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin1759 138.056 41.4563 695260801 695520001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0912.2+4127 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   400.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             264.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            632 sec.

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

