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


Performing analysis on: 4FGL_J0107.4+0334_daily_bin1738
RA = 16.8508, Dec = 3.5691
tmin = 689817601, tmax = 690076801
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='398116', job_status='RUN', time_executed='2022-11-14 00:07:19.002793', time_epoch_executed='1668413239.0' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398116

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/398116/ft1_4FGL_J0107.4+0334_daily_bin1738.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/398116/ft2_4FGL_J0107.4+0334_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398116/ft1_4FGL_J0107.4+0334_daily_bin1738.fits outfile=/scratch/kocevski/398116/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin1738.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=689817601.0 tmax=690076801.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.12
user 3.88
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/398116/ft2_4FGL_J0107.4+0334_daily_bin1738.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/398116/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin1738.fits evtable="EVENTS" outfile="/scratch/kocevski/398116/ft1_filtered_4FGL_J0107.4+0334_daily_bin1738.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 626

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398116/ft1_filtered_4FGL_J0107.4+0334_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/398116/ft2_4FGL_J0107.4+0334_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/398116/ltcube_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.fits outfile=/scratch/kocevski/398116/expmap_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.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/398116/ltcube_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.fits
.....................!
real 190.96
user 185.32
sys 5.29

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/398116/ft1_filtered_4FGL_J0107.4+0334_daily_bin1738.fits scfile=/scratch/kocevski/398116/ft2_4FGL_J0107.4+0334_daily_bin1738.fits outfile=/scratch/kocevski/398116/cmap_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398116/ft1_filtered_4FGL_J0107.4+0334_daily_bin1738.fits scfile=/scratch/kocevski/398116/ft2_4FGL_J0107.4+0334_daily_bin1738.fits outfile=/scratch/kocevski/398116/cmap_HighResolution_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/398116/ft1_filtered_4FGL_J0107.4+0334_daily_bin1738.fits', '/scratch/kocevski/398116/ft2_4FGL_J0107.4+0334_daily_bin1738.fits', expMap='/scratch/kocevski/398116/expmap_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.fits', expCube='/scratch/kocevski/398116/ltcube_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/398116/Model_4FGL_J0107.4+0334_daily_bin1738.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/398116/ft1_filtered_4FGL_J0107.4+0334_daily_bin1738.fits
Spacecraft file(s): /scratch/kocevski/398116/ft2_4FGL_J0107.4+0334_daily_bin1738.fits
Exposure map: /scratch/kocevski/398116/expmap_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.fits
Exposure cube: /scratch/kocevski/398116/ltcube_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/398116/Model_4FGL_J0107.4+0334_daily_bin1738.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) = 6919.58098207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50059       1.0000          .0000       .10000E+07
     2 'Prefactor '    8.7466       1.0000          .0000       .10000E+07
     3 'norm      '    6.3036       1.0000          .0000       .10000E+07
     4 'Prefactor '    .56843E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .36220E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .55872E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.9798       1.0000          .0000       .10000E+07
     8 'norm      '    7.5895       1.0000          .0000       .10000E+07
     9 'Prefactor '    25.676       1.0000          .0000       .10000E+07
    10 'norm      '    .47754E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    40.657       1.0000          .0000       .10000E+07
    12 'Prefactor '    .76357E-03   1.0000          .0000       .10000E+07
    13 'norm      '    26.785       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.9396       1.0000          .0000       .10000E+07
    15 'Prefactor '    .57851E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .36116E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .42652E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    11.081       1.0000          .0000       .10000E+07
    19 'Normalizat'    .88457       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92984       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=   6919.535     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1620 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49757        4.6187        .29726E-06   -.20885E-03
   2  Prefactor     8.6162        11.993       -.98708E-08    .33594E-03
   3  norm          6.2802        8.2330       -.16295E-07   -.15678E-03
   4  Prefactor      .0000        4.4360       -.35638E-09** at limit **
   5  Prefactor      .0000        3.1180        .17931E-06** at limit **
   6  Prefactor      .0000        1.5816       -.23647E-06** at limit **
   7  Prefactor     4.9865        3.0857        .20301E-07    .56261E-03
   8  norm          7.4931        6.1392        .16586E-06    .23904E-03
   9  Prefactor     25.806        20.236       -.88465E-06    .27208E-03
  10  norm           .0000        4.1465       -.53609E-06** at limit **
  11  Prefactor     37.215        68.046        .55451E-05   -.18162E-03
  12  Prefactor     .11102E-09    95.298       -.17683E-05** at limit **
  13  norm          26.779        3.1823       -.51273E-07   -.32736E-02
  14  Prefactor     7.1670        15.954       -.14728E-05   -.67516E-03
  15  Prefactor      .0000        3.0980        .11712E-06** at limit **
  16  Prefactor      .0000        2.6235        .48559E-07** at limit **
  17  Prefactor      .0000        20.005        .59217E-06** at limit **
  18  Prefactor     11.141        6.0379        .44191E-07   -.63666E-04
  19  Normalizat    .88520        .22176        .17583E-05   -.29309E-05
  20  Prefactor     .93042        .16906       -.33492E-05   -.38387E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.497569
  Prefactor  = 8.61616
  norm       = 6.28024
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.98648
  norm       = 7.49311
  Prefactor  = 25.806
  norm       = 0
  Prefactor  = 37.2146
  Prefactor  = 1.11022e-10
  norm       = 26.7786
  Prefactor  = 7.16697
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 11.141
  Normalizat = 0.885202
  Prefactor  = 0.930424
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.535     FROM HESSE     STATUS=OK           333 CALLS     1953 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49757        4.6653        .78650E-03   -1.5694    
   2  Prefactor     8.6162        12.082        .33868E-03   -1.5649    
   3  norm          6.2802        8.2363        .39956E-03   -1.5658    
   4  Prefactor      .0000        4.4442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.1087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.5709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9865        3.0866        .45042E-03   -1.5663    
   8  norm          7.4931        6.1412        .36379E-03   -1.5653    
   9  Prefactor     25.806        20.245        .19739E-03   -1.5606    
  10  norm           .0000        4.1481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.215        68.139        .15685E-03   -1.5586    
  12  Prefactor     .11102E-09    95.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          26.779        3.1729        .19326E-03   -1.5604    
  14  Prefactor     7.1670        15.944        .38060E-03   -1.5654    
  15  Prefactor      .0000        3.0940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.6233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        20.005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.141        6.0374        .30072E-03   -1.5641    
  19  Normalizat    .88520        .19110        .70011E-01   -.96982    
  20  Prefactor     .93042        .14551        .45384E-01   -.95086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0349e-06
Minuit parameter uncertainties:
  1  3.04719
  2  12.0818
  3  8.23631
  4  8.99233e-06
  5  3.51896e-06
  6  5.62968e-08
  7  3.08661
  8  6.1412
  9  20.2447
  10  1.22434e-05
  11  68.1406
  12  0.000178508
  13  3.17292
  14  15.9439
  15  5.85061e-07
  16  1.32575e-06
  17  8.51277e-07
  18  6.0374
  19  0.191243
  20  0.145569
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.110e-10  1.785e-04  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:  9.304e-01  1.456e-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.852e-01  1.912e-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: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/398116/likelihoodResults_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.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) = 6919.5400399
delta logL = -0.00504717586773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6919.26727869
delta logL = 0.267714029542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.516       1.0000          .0000       .10000E+07
     2 'Index     '    .65592       1.0000          .0000       10.000    
     3 'Normalizat'    .87176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93783       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6919.267     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      290 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.589        28.615        .11798E-04   -.69150E-02
   2  Index         .65800        .82697        .23863E-01    .96300E-04
   3  Normalizat    .87160        .21341        .31200E-03   -.34612E-03
   4  Prefactor     .93796        .16781        .23576E-03   -.32935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5886
  Index      = 0.657998
  Normalizat = 0.871604
  Prefactor  = 0.937958
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.267     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.589        34.805        .23597E-05   -1.5640    
   2  Index         .65800        .99614        .95453E-03   -1.0520    
   3  Normalizat    .87160        .21357        .12480E-04   -.97465    
   4  Prefactor     .93796        .16794        .47153E-04   -.94827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94811e-09
Minuit parameter uncertainties:
  1  34.8053
  2  1.02509
  3  0.213774
  4  0.168035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398116': 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) = 6919.26727606
delta logL = 0.267716657694

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.159e+01  3.481e+01  0.000e+00  1.000e+06 ( 1.000e-14)
254        Index:  6.580e-01  1.025e+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:  9.380e-01  1.680e-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.716e-01  2.138e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/398116/cmap_HighResolution_689817601_690076801_4FGL_J0107.4+0334_daily_bin1738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2022-11-14 00:17:35.270158', job_id='398116', GAL2='0.94', fit_tolerance='1e-08', EG2='0.87', EG='0.89', time_epoch_completed='1668413855.27', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.68e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='1738' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 00:17:35 PST 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 398068: <4FGL_J0107.4+0334_daily_bin1738> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin1738> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Nov 14 00:05:17 2022
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:05:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:05:38 2022
Terminated at Mon Nov 14 00:17:25 2022
Results reported at Mon Nov 14 00:17:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin1738 16.8508 3.5691 689817601 690076801 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 :                                   617.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            728 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 398116: <4FGL_J0107.4+0334_daily_bin1738> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin1738> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Nov 14 00:05:19 2022
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:05:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:05:52 2022
Terminated at Mon Nov 14 00:17:35 2022
Results reported at Mon Nov 14 00:17:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin1738 16.8508 3.5691 689817601 690076801 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 :                                   618.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            736 sec.

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

