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


Performing analysis on: 4FGL_J0107.4+0334_daily_bin1758
RA = 16.8508, Dec = 3.5691
tmin = 695001601, tmax = 695260801
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='354676', job_status='RUN', time_executed='2023-01-13 00:08:37.952651', time_epoch_executed='1673597317.95' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354676/ft1_4FGL_J0107.4+0334_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354676/ft1_4FGL_J0107.4+0334_daily_bin1758.fits outfile=/scratch/kocevski/354676/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin1758.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=695001601.0 tmax=695260801.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.81
user 2.55
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.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/354676/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/354676/ft1_filtered_4FGL_J0107.4+0334_daily_bin1758.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.54
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 962

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354676/ft1_filtered_4FGL_J0107.4+0334_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/354676/ltcube_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.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/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits
.....................!
real 16.37
user 15.92
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354676/ft1_filtered_4FGL_J0107.4+0334_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/354676/ltcube_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.fits outfile=/scratch/kocevski/354676/expmap_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.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/354676/ltcube_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.fits
.....................!
real 192.28
user 187.10
sys 4.39

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

Setting source of interest to:
4FGL J0107.4+0334 @ 16.8508 3.5691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/354676/ft1_filtered_4FGL_J0107.4+0334_daily_bin1758.fits scfile=/scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits outfile=/scratch/kocevski/354676/cmap_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.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=16.8508 yref=3.5691 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.60
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354676/ft1_filtered_4FGL_J0107.4+0334_daily_bin1758.fits scfile=/scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits outfile=/scratch/kocevski/354676/cmap_HighResolution_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.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=16.8508 yref=3.5691 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.61
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/354676/ft1_filtered_4FGL_J0107.4+0334_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/354676/Model_4FGL_J0107.4+0334_daily_bin1758.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/354676/ft1_filtered_4FGL_J0107.4+0334_daily_bin1758.fits.....................!
real 101.15
user 98.90
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/354676/ft1_filtered_4FGL_J0107.4+0334_daily_bin1758.fits', '/scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits', expMap='/scratch/kocevski/354676/expmap_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.fits', expCube='/scratch/kocevski/354676/ltcube_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/354676/Model_4FGL_J0107.4+0334_daily_bin1758.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0107.4+0334'

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  7.146e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/354676/ft1_filtered_4FGL_J0107.4+0334_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/354676/ft2_4FGL_J0107.4+0334_daily_bin1758.fits
Exposure map: /scratch/kocevski/354676/expmap_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.fits
Exposure cube: /scratch/kocevski/354676/ltcube_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/354676/Model_4FGL_J0107.4+0334_daily_bin1758.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) = 10081.3815678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0502       1.0000          .0000       .10000E+07
     2 'Prefactor '    13.874       1.0000          .0000       .10000E+07
     3 'norm      '    23.255       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2532       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.6218       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.8848       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10836E-06   1.0000          .0000       .10000E+07
     8 'norm      '    .75603E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    59.958       1.0000          .0000       .10000E+07
    10 'norm      '    20.417       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18845E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .45926       1.0000          .0000       .10000E+07
    13 'norm      '    33.793       1.0000          .0000       .10000E+07
    14 'Prefactor '    .47236E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13536E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    9.9926       1.0000          .0000       .10000E+07
    17 'Prefactor '    .13841E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.9931       1.0000          .0000       .10000E+07
    19 'Normalizat'    .83571       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0509       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10081.38     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1509 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0498        2.1052        .17462E-07    .17549E-02
   2  Prefactor     13.876        2.4172        .82876E-08   -.62794E-01
   3  norm          23.249        6.9632       -.20728E-08   -.11748    
   4  Prefactor     4.2546        6.5027       -.39412E-07    .28571E-01
   5  Prefactor     7.6116        4.4002       -.11359E-07   -.39925E-02
   6  Prefactor     3.8873        2.2366        .24101E-07    .65052E-02
   7  Prefactor      .0000        .82040        .25991E-07** at limit **
   8  norm          .44409E-09    6.0443       -.12410E-06** at limit **
   9  Prefactor     60.045        3.1694       -.17203E-07    .26718    
  10  norm          20.406        1.1822        .16701E-08   -.28137E-01
  11  Prefactor     .44409E-08    10.864       -.27763E-06** at limit **
  12  Prefactor     .85543E-07    65.101       -.16497E-06** at limit **
  13  norm          33.794        2.8908        .65599E-08    .52857E-02
  14  Prefactor     .27756E-09    2.8694       -.28942E-07** at limit **
  15  Prefactor      .0000        3.2595        .32654E-07** at limit **
  16  Prefactor     9.9968        7.4859       -.14447E-09    .29985E-01
  17  Prefactor     .38930E-06    56.193        .53242E-06** at limit **
  18  Prefactor     1.9931        1.9627       -.90007E-07   -.16395E-01
  19  Normalizat    .83573        .18686       -.26553E-05   -.64861E-04
  20  Prefactor     1.0510        .14841        .19639E-05    .20031E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04978
  Prefactor  = 13.8759
  norm       = 23.2492
  Prefactor  = 4.25465
  Prefactor  = 7.6116
  Prefactor  = 3.88735
  Prefactor  = 0
  norm       = 4.44089e-10
  Prefactor  = 60.0451
  norm       = 20.4063
  Prefactor  = 4.44089e-09
  Prefactor  = 8.55427e-08
  norm       = 33.7944
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 9.99681
  Prefactor  = 3.893e-07
  Prefactor  = 1.99313
  Normalizat = 0.835727
  Prefactor  = 1.05097
 **********
 **   18 **HESSE 
 **********

 FCN=   10081.38     FROM HESSE     STATUS=OK           337 CALLS     1846 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0498        2.5524        .47214E-02   -1.5687    
   2  Prefactor     13.876        11.267        .26865E-03   -1.5633    
   3  norm          23.249        9.0783        .20742E-03   -1.5612    
   4  Prefactor     4.2546        10.003        .48832E-03   -1.5667    
   5  Prefactor     7.6116        4.4294        .36301E-03   -1.5653    
   6  Prefactor     3.8873        2.2393        .51169E-03   -1.5669    
   7  Prefactor      .0000        .82097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .44409E-09    6.0211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     60.045        29.351        .12915E-03   -1.5553    
  10  norm          20.406        14.060        .22138E-03   -1.5618    
  11  Prefactor     .44409E-08    10.891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .85543E-07    65.241        .82919E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          33.794        2.8912        .17204E-03   -1.5592    
  14  Prefactor     .27756E-09    2.8687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.2584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9968        7.5747        .31674E-03   -1.5645    
  17  Prefactor     .38930E-06    56.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9931        1.9473        .73352E-03   -1.5680    
  19  Normalizat    .83573        .16540        .73973E-01   -.98757    
  20  Prefactor     1.0510        .12978        .39856E-01   -.91049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14398e-06
Minuit parameter uncertainties:
  1  2.55244
  2  11.2669
  3  9.07827
  4  10.003
  5  4.42943
  6  2.23931
  7  6.03169e-06
  8  0.00010154
  9  29.3513
  10  14.0596
  11  0.000439342
  12  0.00472445
  13  2.89121
  14  5.91093e-05
  15  1.69755e-06
  16  7.57468
  17  0.00937839
  18  1.94729
  19  0.165498
  20  0.129819
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  8.554e-08  4.724e-03  0.000e+00  1.000e+06 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.051e+00  1.298e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  8.357e-01  1.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 16.851 3.569
Photon Flux Upper Limit: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354676/likelihoodResults_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.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) = 10081.3879912
delta logL = -0.00737052010118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10081.1611686
delta logL = 0.219452107425

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10081.16     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      276 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84400E-01    1.1040        .97707E-03** at limit **
   2  Index         5.1127        1.9229        .11419        .22220E-03
   3  Normalizat    .80363        .21734E-01    .75159E-01    .11537E-04
   4  Prefactor     1.0673        .17628E-01    .38984E-01   -.14498E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0843998
  Index      = 5.11272
  Normalizat = 0.803635
  Prefactor  = 1.06734
 **********
 **   18 **HESSE 
 **********

 FCN=   10081.16     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      311 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84400E-01    9.7357        .39979E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.1127        7.5558        .75125E-02    .22545E-01
   3  Normalizat    .80363        .10884        .33267E-03   -.99934    
   4  Prefactor     1.0673        .87393E-01    .23612E-03   -.90517    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.24012e-08
Minuit parameter uncertainties:
  1  1.81295
  2  8.06968
  3  0.10887
  4  0.0874046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354676': 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) = 10081.161168
delta logL = 0.219452762718

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  8.440e-02  1.813e+00  0.000e+00  1.000e+06 ( 1.000e-14)
254        Index:  5.113e+00  8.070e+00  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.067e+00  8.740e-02  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  8.036e-01  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.851 3.569

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/354676/cmap_HighResolution_695001601_695260801_4FGL_J0107.4+0334_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2023-01-13 00:20:29.932753', job_id='354676', GAL2='1.07', fit_tolerance='1e-08', EG2='0.80', EG='0.84', time_epoch_completed='1673598029.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.19e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1758' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:20:29 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 354676: <4FGL_J0107.4+0334_daily_bin1758> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin1758> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Jan 13 00:04:41 2023
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:07:49 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:07:49 2023
Terminated at Fri Jan 13 00:20:30 2023
Results reported at Fri Jan 13 00:20:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin1758 16.8508 3.5691 695001601 695260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0107.4+0334 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            949 sec.

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

