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 203 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7533
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0912.2+4127_daily_bin1769
RA = 138.056, Dec = 41.4563
tmin = 697852801, tmax = 698112001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='430857', job_status='RUN', time_executed='2023-02-15 00:34:04.009565', time_epoch_executed='1676450044.01' WHERE source_name='4FGL J0912.2+4127' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430857

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430857/ft1_4FGL_J0912.2+4127_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430857/ft1_4FGL_J0912.2+4127_daily_bin1769.fits outfile=/scratch/kocevski/430857/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1769.fits ra=138.056 dec=41.4563 rad=12.0 tmin=697852801.0 tmax=698112001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.36
user 4.11
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/430857/ft1_filteredMKT_4FGL_J0912.2+4127_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/430857/ft1_filtered_4FGL_J0912.2+4127_daily_bin1769.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 637

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430857/ft1_filtered_4FGL_J0912.2+4127_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/430857/ltcube_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits
.....................!
real 11.95
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430857/ft1_filtered_4FGL_J0912.2+4127_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/430857/ltcube_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits outfile=/scratch/kocevski/430857/expmap_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/430857/ltcube_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits
.....................!
real 190.85
user 185.98
sys 4.48

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/430857/ft1_filtered_4FGL_J0912.2+4127_daily_bin1769.fits scfile=/scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits outfile=/scratch/kocevski/430857/cmap_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430857/ft1_filtered_4FGL_J0912.2+4127_daily_bin1769.fits scfile=/scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits outfile=/scratch/kocevski/430857/cmap_HighResolution_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430857/ft1_filtered_4FGL_J0912.2+4127_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430857/Model_4FGL_J0912.2+4127_daily_bin1769.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/430857/ft1_filtered_4FGL_J0912.2+4127_daily_bin1769.fits.....................!
real 59.62
user 58.42
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430857/ft1_filtered_4FGL_J0912.2+4127_daily_bin1769.fits', '/scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits', expMap='/scratch/kocevski/430857/expmap_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits', expCube='/scratch/kocevski/430857/ltcube_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430857/Model_4FGL_J0912.2+4127_daily_bin1769.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/430857/ft1_filtered_4FGL_J0912.2+4127_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/430857/ft2_4FGL_J0912.2+4127_daily_bin1769.fits
Exposure map: /scratch/kocevski/430857/expmap_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits
Exposure cube: /scratch/kocevski/430857/ltcube_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430857/Model_4FGL_J0912.2+4127_daily_bin1769.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) = 6902.31602699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.228       1.0000          .0000       .10000E+07
     2 'norm      '    .81869       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.2143       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51259E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .21574E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .87713E-06   1.0000          .0000       .10000E+07
     7 'norm      '    1.9505       1.0000          .0000       .10000E+07
     8 'norm      '    .64054E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .50425E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11177E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.6549       1.0000          .0000       .10000E+07
    12 'norm      '    .51625E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .23379E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26573E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .49960E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.5656       1.0000          .0000       .10000E+07
    18 'Prefactor '    .41120       1.0000          .0000       .10000E+07
    19 'Prefactor '    .29254E-06   1.0000          .0000       .10000E+07
    20 'norm      '    13.724       1.0000          .0000       .10000E+07
    21 'Prefactor '    34.339       1.0000          .0000       .10000E+07
    22 'Prefactor '    6.5775       1.0000          .0000       .10000E+07
    23 'Prefactor '    .15599E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .68279E-07   1.0000          .0000       .10000E+07
    25 'norm      '    36.727       1.0000          .0000       .10000E+07
    26 'Normalizat'    .89657       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1126       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=   6900.255     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     1438 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.272        8.2168        .73330E-06   -.95470E-02
   2  norm          .81844        .49066       -.51479E-08    .33901E-01
   3  Prefactor     7.1593        3.7024        .29693E-06    .15506E-01
   4  Prefactor      .0000        1.1859       -.40110E-07** at limit **
   5  Prefactor     .39968E-08    7.9198       -.80478E-06** at limit **
   6  Prefactor     .16653E-09    2.8808       -.53832E-06** at limit **
   7  norm          1.9495        4.2023        .25877E-06    .55072E-02
   8  norm          .11102E-08    1.7547       -.12912E-06** at limit **
   9  Prefactor     .20539E-08    42.894       -.14481E-05** at limit **
  10  Prefactor     .40523E-08    12.682       -.92219E-07** at limit **
  11  Prefactor     3.6515        3.7182       -.12992E-06   -.60227E-02
  12  norm          .33307E-09    3.3308        .70494E-07** at limit **
  13  Prefactor     .26090E-08    32.031        .64444E-06** at limit **
  14  norm          .55511E-10    .22833       -.91008E-07** at limit **
  15  Prefactor     .61062E-09    1.5436       -.30205E-06** at limit **
  16  norm          .23315E-08    4.0841       -.58881E-06** at limit **
  17  Prefactor     5.5669        2.6871        .18219E-07   -.47434E-04
  18  Prefactor     .35568        1.2463       -.66735E-06    .27933E-02
  19  Prefactor     .44409E-09    3.8798        .58143E-06** at limit **
  20  norm          13.623        1.1419        .74388E-08   -.73843E-03
  21  Prefactor     34.350        1.4386       -.24621E-07   -.52389E-03
  22  Prefactor     6.5745        6.2771        .12814E-06    .21427E-02
  23  Prefactor     .22204E-09    9.2768        .15096E-05** at limit **
  24  Prefactor     .11657E-08    4.2808        .49173E-06** at limit **
  25  norm          36.728        1.1037        .64778E-09    .20114E-02
  26  Normalizat    .89662        .18655       -.20652E-07    .15386E-03
  27  Prefactor     1.1128        .20110       -.13898E-05    .11098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2725
  norm       = 0.818443
  Prefactor  = 7.15926
  Prefactor  = 0
  Prefactor  = 3.9968e-09
  Prefactor  = 1.66533e-10
  norm       = 1.94946
  norm       = 1.11022e-09
  Prefactor  = 2.05391e-09
  Prefactor  = 4.05231e-09
  Prefactor  = 3.65154
  norm       = 3.33067e-10
  Prefactor  = 2.60902e-09
  norm       = 5.55112e-11
  Prefactor  = 6.10623e-10
  norm       = 2.33147e-09
  Prefactor  = 5.56688
  Prefactor  = 0.35568
  Prefactor  = 4.44089e-10
  norm       = 13.6227
  Prefactor  = 34.3496
  Prefactor  = 6.57449
  Prefactor  = 2.22045e-10
  Prefactor  = 1.16573e-09
  norm       = 36.7281
  Normalizat = 0.89662
  Prefactor  = 1.11277
 **********
 **   18 **HESSE 
 **********

 FCN=   6900.255     FROM HESSE     STATUS=OK           546 CALLS     1984 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.272        9.0395        .20321E-03   -1.5609    
   2  norm          .81844        .49358        .51552E-03   -1.5690    
   3  Prefactor     7.1593        11.328        .37321E-03   -1.5654    
   4  Prefactor      .0000        1.1859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .39968E-08    8.0738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    2.8889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.9495        4.2382        .74278E-03   -1.5680    
   8  norm          .11102E-08    5.1752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .20539E-08    42.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .40523E-08    12.704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6515        3.7501        .52813E-03   -1.5670    
  12  norm          .33307E-09    3.2420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .26090E-08    31.989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    .22005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .61062E-09    1.5313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .23315E-08    5.0107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5669        2.7101        .42562E-03   -1.5661    
  18  Prefactor     .35568        4.2197        .63818E-02   -1.5696    
  19  Prefactor     .44409E-09    3.8903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.623        18.497        .27012E-03   -1.5634    
  21  Prefactor     34.350        26.664        .17067E-03   -1.5591    
  22  Prefactor     6.5745        6.3362        .39105E-03   -1.5657    
  23  Prefactor     .22204E-09    9.3675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .11657E-08    5.2763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          36.728        12.968        .16503E-03   -1.5587    
  26  Normalizat    .89662        .16145        .44858E-01   -.96579    
  27  Prefactor     1.1128        .17182        .56682E-01   -.89060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64227e-08
Minuit parameter uncertainties:
  1  9.03946
  2  0.493577
  3  11.3276
  4  1.01131e-05
  5  0.000358686
  6  4.69941e-05
  7  4.23824
  8  0.000152674
  9  0.000590961
  10  0.000453962
  11  3.75012
  12  6.51539e-05
  13  0.000579312
  14  5.69947e-06
  15  5.99025e-05
  16  0.000215372
  17  2.71013
  18  2.4502
  19  8.27816e-05
  20  18.4969
  21  26.6641
  22  6.33625
  23  9.47581e-05
  24  0.000155538
  25  12.9684
  26  0.161539
  27  0.171902
Done.

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

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  3.652e+00  3.750e+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

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.113e+00  1.719e-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:  8.966e-01  1.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 138.056 41.456
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.16e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.30e-05

TS (Fixed Index): 1.33
Ra Dec: 138.056 41.456
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430857/likelihoodResults_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.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) = 6899.84063717
delta logL = 0.413915157346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.82784888
delta logL = 0.426703448084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43204       1.0000          .0000       .10000E+07
     2 'Index     '    4.0673       1.0000          .0000       10.000    
     3 'Normalizat'    .85066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1556       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=   6899.828     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      318 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43154        4.8955        .85865E-03    .13915E-01
   2  Index         4.0679        2.8888        .11695        .16409E-03
   3  Normalizat    .85068        .38863E-01    .44268E-01    .14082E-04
   4  Prefactor     1.1556        .42911E-01    .55793E-01    .30286E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.431543
  Index      = 4.06794
  Normalizat = 0.850675
  Prefactor  = 1.15564
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.828     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      353 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43154        11.988        .40398E-04   -1.5695    
   2  Index         4.0679        6.9921        .57396E-02   -.18751    
   3  Normalizat    .85068        .14044        .25769E-03   -.98216    
   4  Prefactor     1.1556        .15463        .24670E-03   -.87708    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.63078e-07
Minuit parameter uncertainties:
  1  4.54896
  2  5.8954
  3  0.140501
  4  0.154695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430857': 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) = 6899.82784883
delta logL = 0.426703496115

Extracting fit parameters...

4FGL J0912.2+4127
   Spectrum: PowerLaw
329    Prefactor:  4.315e-01  4.549e+00  0.000e+00  1.000e+06 ( 1.000e-12)
330        Index:  4.068e+00  5.895e+00  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.156e+00  1.547e-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:  8.507e-01  1.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 138.056 41.456
Photon Index (Free Index): 4.07 +/- 5.90
Photon Flux (Free Index): 6.63e-08 +/- 4.97e-08
Energy Flux (Free Index): 9.82e-06 +/- 1.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/430857/cmap_HighResolution_697852801_698112001_4FGL_J0912.2+4127_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-03', comment='SUCCESS', photon_flux='4.16e-08', energy_flux2='9.82e-06', photon_flux_error='4.27e-08', dlogl='4.27e-01', energy_flux='1.26e-05', photon_flux2='6.63e-08', job_status='DONE', time_completed='2023-02-15 00:45:33.900796', photon_index_error2='5.90', photon_index2='4.07', ts='1.33', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.30e-05', EG='0.90', time_epoch_completed='1676450733.9', return_code='0', job_id='430857', GAL2='1.16', EG2='0.85', return_code2='102', energy_flux_error='1.30e-05', photon_flux_error2='4.97e-08', ts2='2.32', photon_index='2.46' WHERE bin_id='1769' AND source_name='4FGL J0912.2+4127' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 00:45:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 430857: <4FGL_J0912.2+4127_daily_bin1769> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0912.2+4127_daily_bin1769 138.056 41.4563 697852801 698112001 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 :                                   692.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            916 sec.

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

