aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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: Dan/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 139 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_gnumber of points = 17085
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0322.4+6606_weekly_bin12
RA = 50.6146, Dec = 66.1102
tmin = 246240001, tmax = 246844801
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 sourDone.


Performing analysis on: 4FGL_J0322.4+6606_weekly_bin12
RA = 50.6146, Dec = 66.1102
tmin = 246240001, tmax = 246844801
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='106845', job_status='RUN', time_executed='2021-07-06 04:16:56.394544', time_epoch_executed='1625570216.39' WHERE source_name='4FGL J0322.4+6606' and cadence='weekly' and bin_id='12'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106845

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106845/ft1_4FGL_J0322.4+6606_weekly_bin12.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106845/ft1_4FGL_J0322.4+6606_weekly_bin12.fits outfile=/scratch/kocevski/106845/ft1_filteredMKT_4FGL_J0322.4+6606_weekly_bin12.fits ra=50.6146 dec=66.1102 rad=12.0 tmin=246240001.0 tmax=246844801.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.62
user 2.52
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.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/106845/ft1_filteredMKT_4FGL_J0322.4+6606_weekly_bin12.fits evtable="EVENTS" outfile="/scratch/kocevski/106845/ft1_filtered_4FGL_J0322.4+6606_weekly_bin12.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 2.06
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106845/ft1_filtered_4FGL_J0322.4+6606_weekly_bin12.fits" evtable="EVENTS" scfile=/scratch/kocevski/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.fits sctable="SC_DATA" outfile=/scratch/kocevski/106845/ltcube_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.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/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.fits
.....................!
real 31.36
user 28.63
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106845/ft1_filtered_4FGL_J0322.4+6606_weekly_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.fits sctable="SC_DATA" expcube=/scratch/kocevski/106845/ltcube_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.fits outfile=/scratch/kocevski/106845/expmap_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.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/106845/ltcube_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.fits
.....................!
real 198.22
user 186.73
sys 5.36

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/106845/ft1_filtered_4FGL_J0322.4+6606_weekly_bin12.fits scfile=/scratch/kocevski/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.fits outfile=/scratch/kocevski/106845/cmap_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.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.88
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106845/ft1_filtered_4FGL_J0322.4+6606_weekly_bin12.fits scfile=/scratch/kocevski/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.fits outfile=/scratch/kocevski/106845/cmap_HighResolution_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.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.67
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/106845/ft1_filtered_4FGL_J0322.4+6606_weekly_bin12.fits evtable="EVENTS" scfile=/scratch/kocevski/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/106845/Model_4FGL_J0322.4+6606_weekly_bin12.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/106845/ft1_filtered_4FGL_J0322.4+6606_weekly_bin12.fits.....................!
real 759.71
user 746.64
sys 2.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/106845/ft1_filtered_4FGL_J0322.4+6606_weekly_bin12.fits', '/scratch/kocevski/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.fits', expMap='/scratch/kocevski/106845/expmap_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.fits', expCube='/scratch/kocevski/106845/ltcube_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/106845/Model_4FGL_J0322.4+6606_weekly_bin12.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/106845/ft1_filtered_4FGL_J0322.4+6606_weekly_bin12.fits
Spacecraft file(s): /scratch/kocevski/106845/ft2_4FGL_J0322.4+6606_weekly_bin12.fits
Exposure map: /scratch/kocevski/106845/expmap_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.fits
Exposure cube: /scratch/kocevski/106845/ltcube_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/106845/Model_4FGL_J0322.4+6606_weekly_bin12.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) = 53889.492754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3427       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5213       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8549       1.0000         .10000E-03   10000.    
     5 'norm      '    5.4119       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .30160E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2899       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3793       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.013       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.531       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6844       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1201       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0017       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   53889.49     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1941 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3447        23.163         .0000       -.20665E-03
   2  Prefactor     1.5212        .73618         .0000        .48243E-02
   3  norm          .10000E-03    3.4281         .0000    ** at limit **
   4  Prefactor     3.8550        2.2456         .0000        .28082E-02
   5  norm          5.4118        .59676         .0000        .12355E-02
   6  norm          .10000E-03    2.5978         .0000    ** at limit **
   7  norm          .10000E-03    .78788         .0000    ** at limit **
   8  Prefactor     .10000E-03    6.4047         .0000    ** at limit **
   9  Prefactor     2.2895        3.4131         .0000        .26857E-02
  10  Prefactor     1.3799        2.0110         .0000        .15683    
  11  Prefactor     26.010        24.247         .0000        .24331E-02
  12  Prefactor     .10000E-03    21.412         .0000    ** at limit **
  13  Prefactor     3.2356        5.1352         .0000        .10666E-02
  14  Prefactor     18.531        15.726         .0000        .41275E-03
  15  norm          .10000E-03    3.3544         .0000    ** at limit **
  16  norm          6.6839        14.127         .0000        .25439E-03
  17  Prefactor     .10000E-03    4.3380         .0000    ** at limit **
  18  Normalizat    1.1201        .20799         .0000        .18411E-03
  19  Prefactor     1.0017        .24697E-01     .0000       -.30801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.34472
  Prefactor  = 1.52122
  norm       = 0.0001
  Prefactor  = 3.85496
  norm       = 5.41176
  norm       = 0.0001
  norm        **********
 **   18 **HESSE 
 **********

 FCN=   53889.49     FROM HESSE     STATUS=OK           278 CALLS     2219 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO **********
 **   18 **HESSE 
 **********

 FCN=   53889.49     FROM HESSE     STATUS=OK           278 CALLS     2219 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3447        23.066        .13880E-03   -1.5130    
   2  Prefactor     1.5212        .73122        .13299E-03   -1.5461    
   3  norm          .10000E-03    3.4408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8550        2.2299        .20554E-03   -1.5315    
   5  norm          5.4118        .59718        .56717E-04   -1.5243    
   6  norm          .10000E-03    2.6320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1814        .66409E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2895        3.3984        .27126E-03   -1.5405    
  10  Prefactor     1.3799        1.9903        .18534E-02   -1.5473    
  11  Prefactor     26.010        24.271        .78544E-04   -1.4688    
  12  Prefactor     .10000E-03    21.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2356        5.1153        .22518E-03   -1.5348    
  14  Prefactor     18.531        15.736        .93040E-04   -1.4847    
  15  norm          .10000E-03    3.3681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6839        14.113        .15520E-03   -1.5191    
  17  Prefactor     .10000E-03    4.3618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1201        .20421        .96287E-03   -.89109    
  19  Prefactor     1.0017        .24988E-01    .12344E-03   -.92673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63035e-08
Minuit parameter uncertainties:
  1  23.0Done.

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

Extracting fit parameters...

4FGL J0322.4+6606
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.202e-05  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.653e+00  0.000e+00  0.000e+00  1.00Done.

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

Extracting fit parameters...

4FGL J0322.4+6606
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.202e-05  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:  1.002e+00  2.499e-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:  1.120e+00  2.044e-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: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/106845/likelihoodResults_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.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) = 53889.4925923
delta logL = -0.000743673212128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 53889.4918488
delta logL = -2.08958226722e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6434       1.0000          .0000       10.000    
     3 'Normalizat'    1.1200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0017       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=   53889.49     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      269 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.632        .18142E-01** at limit **
   2  Index         2.2452        5.2092        .50000        .23465E-07
   3  Normalizat    1.1201        .10426E-01    .96287E-03   -.45339E-05
   4  Prefactor     1.0017        .12917E-02    .12344E-03   -.27998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24519
  Normalizat = 1.12011
  Prefactor  = 1.00169
 **********
 **   18 **HESSE 
 **********

 FCN=   53889.49     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    343.86        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2452        6.2765        .50000       -.58352    
   3  Normalizat    1.1201        .44015E-01    .38515E-04   -.89109    
   4  Prefactor     1.0017        .54534E-02    .49376E-05   -.92673    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.98412e-10
Minuit parameter uncertainties:
  1  0.000160537
  2  1504.91
  3  0.0440162
  4  0.00545337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106845': 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) = 53889.491848
delta logL = 6.32986484561e-07

Extracting fit parameters...

4FGL J0322.4+6606
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.605e-04  1.000e-04  1.000e+04 ( 1.000e-13)
327        Index:  2.245e+00  1.505e+03  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:  1.002e+00  5.453e-03  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:  1.120e+00  4.402e-02  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/106845/cmap_HighResolution_246240001_246844801_4FGL_J0322.4+6606_weekly_bin12.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-07-06 05:14:21.604931', job_id='106845', GAL2='1.00', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1625573661.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='12' AND source_name='4FGL J0322.4+6606' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  6 05:14:21 PDT 2021

<slac> at Tue Jul  6 04:07:49 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  6 04:13:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  6 04:13:07 2021
Terminated at Tue Jul  6 05:13:21 2021
Results reported at Tue Jul  6 05:13:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0322.4+6606_weekly_bin12 50.6146 66.1102 246240001 246844801 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 :                                   3416.00 sec.
    Max Memory :                                 627 MB
    Average Memory :                             407.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3613 sec.
    Turnaround time :                            3932 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 106845: <4FGL_J0322.4+6606_weekly_bin12> in cluster <slac> Done

Job <4FGL_J0322.4+6606_weekly_bin12> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul  6 04:07:46 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  6 04:12:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  6 04:12:29 2021
Terminated at Tue Jul  6 05:14:23 2021
Results reported at Tue Jul  6 05:14:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0322.4+6606_weekly_bin12 50.6146 66.1102 246240001 246844801 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 :                                   3415.00 sec.
    Max Memory :                                 627 MB
    Average Memory :                             394.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3713 sec.
    Turnaround time :                            3997 sec.

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

