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


Performing analysis on: 4FGL_J0353.0+5654_monthly_bin170
RA = 58.272, Dec = 56.9026
tmin = 677635201, tmax = 680227201
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='86084', job_status='RUN', time_executed='2022-07-23 00:48:44.835996', time_epoch_executed='1658562524.84' WHERE source_name='4FGL J0353.0+5654' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86084

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86084/ft1_4FGL_J0353.0+5654_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86084/ft1_4FGL_J0353.0+5654_monthly_bin170.fits outfile=/scratch/kocevski/86084/ft1_filteredMKT_4FGL_J0353.0+5654_monthly_bin170.fits ra=58.272 dec=56.9026 rad=12.0 tmin=677635201.0 tmax=680227201.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 24.32
user 23.51
sys 0.75

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.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/86084/ft1_filteredMKT_4FGL_J0353.0+5654_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/86084/ft1_filtered_4FGL_J0353.0+5654_monthly_bin170.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.71
user 0.53
sys 0.16

Number of photons that the gtmktime cut: 36501

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86084/ft1_filtered_4FGL_J0353.0+5654_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/86084/ltcube_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.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/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits
.....................!
real 80.54
user 80.00
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86084/ft1_filtered_4FGL_J0353.0+5654_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/86084/ltcube_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.fits outfile=/scratch/kocevski/86084/expmap_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.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/86084/ltcube_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.fits
.....................!
real 141.66
user 137.29
sys 4.07

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 G150.3+4.5 in ROI with RadialDisk spatial model.
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 HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 165 point sources and 4 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 J0353.0+5654 @ 58.272 56.9026

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/86084/ft1_filtered_4FGL_J0353.0+5654_monthly_bin170.fits scfile=/scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits outfile=/scratch/kocevski/86084/cmap_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.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=58.272 yref=56.9026 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.51
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86084/ft1_filtered_4FGL_J0353.0+5654_monthly_bin170.fits scfile=/scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits outfile=/scratch/kocevski/86084/cmap_HighResolution_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.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=58.272 yref=56.9026 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.68
user 0.51
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86084/ft1_filtered_4FGL_J0353.0+5654_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86084/Model_4FGL_J0353.0+5654_monthly_bin170.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 HB 9
adding source W 3
Working on...
/scratch/kocevski/86084/ft1_filtered_4FGL_J0353.0+5654_monthly_bin170.fits.....................!
real 4951.09
user 4937.40
sys 5.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86084/ft1_filtered_4FGL_J0353.0+5654_monthly_bin170.fits', '/scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits', expMap='/scratch/kocevski/86084/expmap_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.fits', expCube='/scratch/kocevski/86084/ltcube_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86084/Model_4FGL_J0353.0+5654_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0353.0+5654'

4FGL J0353.0+5654
   Spectrum: PowerLaw
312    Prefactor:  3.006e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
313        Index:  2.083e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  3.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/86084/ft1_filtered_4FGL_J0353.0+5654_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/86084/ft2_4FGL_J0353.0+5654_monthly_bin170.fits
Exposure map: /scratch/kocevski/86084/expmap_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.fits
Exposure cube: /scratch/kocevski/86084/ltcube_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86084/Model_4FGL_J0353.0+5654_monthly_bin170.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) = 340321.038048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6720       1.0000         .10000E-03   10000.    
     2 'norm      '    6.5288       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5857       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8043       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .15601E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11375E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.554       1.0000         .10000E-03   10000.    
    13 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.8681       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7117       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4237       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97745       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   340320.2     FROM MIGRAD    STATUS=CONVERGED    378 CALLS     1494 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6721        .19700         .0000        .70364E-02
   2  norm          6.5316        4.0793         .0000        .77882E-03
   3  Prefactor     .62119        .45420         .0000        .33306E-01
   4  Prefactor     6.5912        8.1291         .0000        .73981E-03
   5  Prefactor     1.2943        .88968         .0000        .16688E-01
   6  Prefactor     1.8037        .75098         .0000        .19030E-01
   7  Prefactor     .10000E-03    3.3003         .0000    ** at limit **
   8  norm          .10000E-03    2.3315         .0000    ** at limit **
   9  Prefactor     14.422        6.9430         .0000        .26354E-02
  10  Prefactor     .10000E-03    .87272E-01     .0000    ** at limit **
  11  Prefactor     .10000E-03    1.6030         .0000    ** at limit **
  12  norm          18.554        3.0428         .0000        .63194E-03
  13  norm          .10000E-03    .83957         .0000    ** at limit **
  14  norm          5.8651        5.5833         .0000        .81254E-02
  15  Prefactor     5.7009        8.3305         .0000        .45560E-03
  16  Normalizat    1.4238        .10555         .0000        .11887E-02
  17  Prefactor     .97745        .99994E-02     .0000       -.67574E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.6721
  norm       = 6.53158
  Prefactor  = 0.621191
  Prefactor  = 6.59115
  Prefactor  = 1.29427
  Prefactor  = 1.80371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4217
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5544
  norm       = 0.0001
  norm       = 5.86512
  Prefactor  = 5.70087
  Normalizat = 1.42377
  Prefactor  = 0.977452
 **********
 **   18 **HESSE 
 **********

 FCN=   340320.2     FROM HESSE     STATUS=OK           253 CALLS     1747 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6721        .19688        .51094E-04   -1.5276    
   2  norm          6.5316        4.0060        .15706E-03   -1.5197    
   3  Prefactor     .62119        .52304        .31078E-02   -1.5550    
   4  Prefactor     6.5912        8.0708        .15638E-03   -1.5194    
   5  Prefactor     1.2943        .88469        .38902E-03   -1.5480    
   6  Prefactor     1.8037        .74409        .31046E-03   -1.5439    
   7  Prefactor     .10000E-03    3.3661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.2492        .32180       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.422        6.9434        .52756E-03   -1.4948    
  10  Prefactor     .10000E-03    .34296        .32598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3066        .19933       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.554        3.0361        .92984E-04   -1.4846    
  13  norm          .10000E-03    .85101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8651        5.5745        .82891E-03   -1.5224    
  15  Prefactor     5.7009        8.3183        .16807E-03   -1.5230    
  16  Normalizat    1.4238        .10391        .10161E-02   -.79944    
  17  Prefactor     .97745        .10212E-01    .11861E-03   -.93485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69085e-09
Minuit parameter uncertainties:
  1  0.196882
  2  4.00617
  3  0.523041
  4  8.07212
  5  0.884697
  6  0.744096
  7  6.2362e-08
  8  1.65976e-05
  9  6.94383
  10  8.43401e-08
  11  2.8617e-06
  12  3.0361
  13  1.99072e-07
  14  5.57504
  15  8.32003
  16  0.103926
  17  0.0102123
Done.

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

Extracting fit parameters...

4FGL J0353.0+5654
   Spectrum: PowerLaw
312    Prefactor:  1.442e+01  6.944e+00  1.000e-04  1.000e+04 ( 1.000e-14)
313        Index:  2.083e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
314        Scale:  3.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  9.775e-01  1.021e-02  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.424e+00  1.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.43
Ra Dec: 58.272 56.903
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 1.17e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 6.64e-06

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) = 340320.188104
delta logL = 0.0247153047821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 340320.160372
delta logL = 0.0524476564024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.905       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1814       1.0000          .0000       10.000    
     3 'Normalizat'    1.4219       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97739       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   340320.2     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      230 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.905        37.321        .27876E-02    .24528E-02
   2  Index         2.1814        .42671        .24840        .11379E-02
   3  Normalizat    1.4219        .19441E-01    .22765        .12063E-02
   4  Prefactor     .97739        .18404E-02    .26839E-01   -.61291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9053
  Index      = 2.18139
  Normalizat = 1.42186
  Prefactor  = 0.977392
 **********
 **   18 **HESSE 
 **********

 FCN=   340320.2     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.905        9.0615        .11150E-03   -1.4989    
   2  Index         2.1814        .34648        .94766E-02   -.59888    
   3  Normalizat    1.4219        .10028        .10167E-02   -.79999    
   4  Prefactor     .97739        .10079E-01    .11862E-03   -.93487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27818e-09
Minuit parameter uncertainties:
  1  9.06248
  2  0.346893
  3  0.10029
  4  0.0100789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86084': 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) = 340320.160372
delta logL = 0.0524476801511

Extracting fit parameters...

4FGL J0353.0+5654
   Spectrum: PowerLaw
312    Prefactor:  1.291e+01  9.062e+00  1.000e-04  1.000e+04 ( 1.000e-14)
313        Index:  2.181e+00  3.469e-01  0.000e+00  1.000e+01 (-1.000e+00)
314        Scale:  3.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
566    Prefactor:  9.774e-01  1.008e-02  0.000e+00  1.000e+01 ( 1.000e+00)
567        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
568        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.422e+00  1.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.53
Ra Dec: 58.272 56.903
Photon Index (Free Index): 2.18 +/- 0.35
Photon Flux (Free Index): 2.83e-08 +/- 1.81e-08
Energy Flux (Free Index): 1.32e-05 +/- 6.87e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -4.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  4.440e+00 [aplpy.core]
Saving /scratch/kocevski/86084/cmap_HighResolution_677635201_680227201_4FGL_J0353.0+5654_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='1.32e-05', photon_flux_error='1.17e-08', dlogl='5.24e-02', energy_flux='1.38e-05', photon_flux2='2.83e-08', job_status='DONE', time_completed='2022-07-23 04:14:28.502875', photon_index_error2='0.35', photon_index2='2.18', ts='6.43', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='6.87e-06', EG='1.42', time_epoch_completed='1658574868.5', return_code='0', job_id='86084', GAL2='0.98', EG2='1.42', return_code2='0', energy_flux_error='6.64e-06', photon_flux_error2='1.81e-08', ts2='6.53', photon_index='2.08' WHERE bin_id='170' AND source_name='4FGL J0353.0+5654' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 04:14:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 86084: <4FGL_J0353.0+5654_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0353.0+5654_monthly_bin170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul 23 00:45:35 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:45:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:45:35 2022
Terminated at Sat Jul 23 04:14:30 2022
Results reported at Sat Jul 23 04:14:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0353.0+5654_monthly_bin170 58.272 56.9026 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0353.0+5654 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12302.00 sec.
    Max Memory :                                 846 MB
    Average Memory :                             733.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12535 sec.
    Turnaround time :                            12535 sec.

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

