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 99 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0322.4+6606_daily_bin1694
RA = 50.6146, Dec = 66.1102
tmin = 678412801, tmax = 678672001
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='638598', job_status='RUN', time_executed='2022-07-05 02:24:22.307032', time_epoch_executed='1657013062.31' WHERE source_name='4FGL J0322.4+6606' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638598/ft1_4FGL_J0322.4+6606_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638598/ft1_4FGL_J0322.4+6606_daily_bin1694.fits outfile=/scratch/kocevski/638598/ft1_filteredMKT_4FGL_J0322.4+6606_daily_bin1694.fits ra=50.6146 dec=66.1102 rad=12.0 tmin=678412801.0 tmax=678672001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.76
user 3.46
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.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/638598/ft1_filteredMKT_4FGL_J0322.4+6606_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/638598/ft1_filtered_4FGL_J0322.4+6606_daily_bin1694.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.36
sys 0.15

Number of photons that the gtmktime cut: 3727

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638598/ft1_filtered_4FGL_J0322.4+6606_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/638598/ltcube_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.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/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits
.....................!
real 15.37
user 14.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638598/ft1_filtered_4FGL_J0322.4+6606_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/638598/ltcube_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.fits outfile=/scratch/kocevski/638598/expmap_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.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/638598/ltcube_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.fits
.....................!
real 194.06
user 187.41
sys 5.71

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 182 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0322.4+6606 @ 50.6146 66.1102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/638598/ft1_filtered_4FGL_J0322.4+6606_daily_bin1694.fits scfile=/scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits outfile=/scratch/kocevski/638598/cmap_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.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=50.6146 yref=66.1102 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638598/ft1_filtered_4FGL_J0322.4+6606_daily_bin1694.fits scfile=/scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits outfile=/scratch/kocevski/638598/cmap_HighResolution_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.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=50.6146 yref=66.1102 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/638598/ft1_filtered_4FGL_J0322.4+6606_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638598/Model_4FGL_J0322.4+6606_daily_bin1694.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/638598/ft1_filtered_4FGL_J0322.4+6606_daily_bin1694.fits.....................!
real 495.67
user 489.89
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638598/ft1_filtered_4FGL_J0322.4+6606_daily_bin1694.fits', '/scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits', expMap='/scratch/kocevski/638598/expmap_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.fits', expCube='/scratch/kocevski/638598/ltcube_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638598/Model_4FGL_J0322.4+6606_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0322.4+6606'

4FGL J0322.4+6606
   Spectrum: PowerLaw
326    Prefactor:  4.959e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.653e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.256e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/638598/ft1_filtered_4FGL_J0322.4+6606_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/638598/ft2_4FGL_J0322.4+6606_daily_bin1694.fits
Exposure map: /scratch/kocevski/638598/expmap_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.fits
Exposure cube: /scratch/kocevski/638598/ltcube_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638598/Model_4FGL_J0322.4+6606_daily_bin1694.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) = 34661.4422721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.592       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4734       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7014       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4067       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11406E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33109       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0483       1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0310       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .33327E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20508       1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8906       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .67869       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99336       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   34661.37     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2319 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.577        32.250        .31648E-04   -.16771E-05
   2  Prefactor     1.4733        .86501       -.19538E-06   -.40438E-02
   3  norm          .10000E-03    2.7686       -.26898E-06** at limit **
   4  Prefactor     6.7006        3.0901       -.13057E-05   -.13377E-02
   5  norm          3.4066        .51322        .35187E-07   -.35720E-03
   6  norm          .10000E-03    5.3622        .24862E-06** at limit **
   7  norm          .10000E-03    1.0677        .13313E-06** at limit **
   8  Prefactor     .10000E-03    79.136       -.29045E-05** at limit **
   9  Prefactor     .33137        1.2053       -.17004E-05    .20100E-02
  10  Prefactor     8.0435        3.3081        .23389E-06    .52734E-03
  11  Prefactor     38.951        30.132        .27314E-04    .63868E-04
  12  Prefactor     2.0599        54.257       -.35295E-04   -.56343E-04
  13  Prefactor     .10000E-03    2.0449        .37957E-06** at limit **
  14  Prefactor     .37687E-01    10.986       -.15328E-05    .20436E-03
  15  norm          .10000E-03    4.3251        .31123E-08** at limit **
  16  norm          .10000E-03    7.0736        .61682E-07** at limit **
  17  Prefactor     2.8878        11.350       -.12366E-04   -.15810E-03
  18  Normalizat    .67904        .27666        .11806E-05   -.20732E-05
  19  Prefactor     .99332        .31774E-01   -.40460E-06    .25794E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5769
  Prefactor  = 1.4733
  norm       = 0.0001
  Prefactor  = 6.70063
  norm       = 3.4066
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.331371
  Prefactor  = 8.04352
  Prefactor  = 38.9507
  Prefactor  = 2.05989
  Prefactor  = 0.000100002
  Prefactor  = 0.0376874
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.88778
  Normalizat = 0.679039
  Prefactor  = 0.99332
 **********
 **   18 **HESSE 
 **********

 FCN=   34661.37     FROM HESSE     STATUS=OK           286 CALLS     2605 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.577        32.186        .11766E-03   -1.5027    
   2  Prefactor     1.4733        .85705        .12717E-03   -1.5465    
   3  norm          .10000E-03    2.7695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7006        3.0536        .15500E-03   -1.5190    
   5  norm          3.4066        .51263        .49515E-04   -1.5339    
   6  norm          .10000E-03    5.3885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.205        .36784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    80.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33137        7.2427        .36980E-02   -1.5593    
  10  Prefactor     8.0435        3.2899        .14133E-03   -1.5141    
  11  Prefactor     38.951        30.027        .64207E-04   -1.4459    
  12  Prefactor     2.0599        54.742        .29027E-03   -1.5421    
  13  Prefactor     .10000E-03    22.201        .50095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .37687E-01    10.511        .21050       -1.5669    
  15  norm          .10000E-03    4.3462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.0794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8878        11.349        .23903E-03   -1.5368    
  18  Normalizat    .67904        .23699        .11170E-02   -1.0473    
  19  Prefactor     .99332        .29269E-01    .11548E-03   -.92953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75666e-08
Minuit parameter uncertainties:
  1  32.234
  2  0.857059
  3  2.25602e-05
  4  3.0537
  5  0.51263
  6  1.86522e-06
  7  9.40269e-05
  8  0.000356354
  9  3.09836
  10  3.28993
  11  30.0389
  12  21.2591
  13  0.000372755
  14  1.25732
  15  6.02515e-06
  16  5.92185e-06
  17  11.3575
  18  0.237344
  19  0.0292691
Done.

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

Extracting fit parameters...

4FGL J0322.4+6606
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.564e-04  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.653e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.256e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.933e-01  2.927e-02  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  6.790e-01  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 50.615 66.110
Photon Flux Upper Limit: 1.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638598/likelihoodResults_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.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): 102
logL (Free Index) = 34661.3707664
delta logL = -5.9223799326e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 34661.3707073
delta logL = -8.24584276415e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5936       1.0000          .0000       10.000    
     3 'Normalizat'    .67907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99332       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+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=   34661.37     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      273 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10378E-03    .12658        .22109    ** at limit **
   2  Index         2.5019        8.6228        .50000        .48711E-05
   3  Normalizat    .67904        .70071E-03    .11170E-02   -.19062E-03
   4  Prefactor     .99332        .87576E-04    .11548E-03   -.10270E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103776
  Index      = 2.50189
  Normalizat = 0.679041
  Prefactor  = 0.993319
 **********
 **   18 **HESSE 
 **********

 FCN=   34661.37     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10378E-03    56.711        .12542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5019        6.1902        .50000       -.52316    
   3  Normalizat    .67904        .47824E-02    .44678E-04   -1.0473    
   4  Prefactor     .99332        .59771E-03    .46192E-05   -.92953    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.53273e-11
Minuit parameter uncertainties:
  1  0.0292955
  2  114.35
  3  0.00478243
  4  0.000597712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638598': 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) = 34661.370707
delta logL = 1.85733370017e-07

Extracting fit parameters...

4FGL J0322.4+6606
   Spectrum: PowerLaw
326    Prefactor:  1.038e-04  2.930e-02  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.502e+00  1.143e+02  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.256e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.933e-01  5.977e-04  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  6.790e-01  4.782e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 50.615 66.110

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/638598/cmap_HighResolution_678412801_678672001_4FGL_J0322.4+6606_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2022-07-05 03:08:17.418326', job_id='638598', GAL2='0.99', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1657015697.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1694' AND source_name='4FGL J0322.4+6606' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 03:08:17 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 638510: <4FGL_J0322.4+6606_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0322.4+6606_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:05:12 2022
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 02:20:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 02:20:09 2022
Terminated at Tue Jul  5 03:05:52 2022
Results reported at Tue Jul  5 03:05:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0322.4+6606_daily_bin1694 50.6146 66.1102 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0322.4+6606 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2596.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             388.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2742 sec.
    Turnaround time :                            10840 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 638598: <4FGL_J0322.4+6606_daily_bin1694> in cluster <slac> Done

Job <4FGL_J0322.4+6606_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:05:18 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 02:22:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 02:22:31 2022
Terminated at Tue Jul  5 03:08:18 2022
Results reported at Tue Jul  5 03:08:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0322.4+6606_daily_bin1694 50.6146 66.1102 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0322.4+6606 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2623.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             393.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2747 sec.
    Turnaround time :                            10980 sec.

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

