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


Performing analysis on: 4FGL_J0530.9+1332_monthly_bin169
RA = 82.7364, Dec = 13.5402
tmin = 675043201, tmax = 677635201
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='161351', job_status='RUN', time_executed='2022-06-23 01:58:12.663024', time_epoch_executed='1655974692.66' WHERE source_name='4FGL J0530.9+1332' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161351

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161351/ft1_4FGL_J0530.9+1332_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161351/ft1_4FGL_J0530.9+1332_monthly_bin169.fits outfile=/scratch/kocevski/161351/ft1_filteredMKT_4FGL_J0530.9+1332_monthly_bin169.fits ra=82.7364 dec=13.5402 rad=12.0 tmin=675043201.0 tmax=677635201.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 29.65
user 28.05
sys 1.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.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/161351/ft1_filteredMKT_4FGL_J0530.9+1332_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/161351/ft1_filtered_4FGL_J0530.9+1332_monthly_bin169.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.87
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 11299

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161351/ft1_filtered_4FGL_J0530.9+1332_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/161351/ltcube_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.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/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits
.....................!
real 175.94
user 175.01
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161351/ft1_filtered_4FGL_J0530.9+1332_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/161351/ltcube_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.fits outfile=/scratch/kocevski/161351/expmap_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.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/161351/ltcube_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.fits
.....................!
real 194.47
user 188.85
sys 5.18

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 166 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 J0530.9+1332 @ 82.7364 13.5402

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/161351/ft1_filtered_4FGL_J0530.9+1332_monthly_bin169.fits scfile=/scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits outfile=/scratch/kocevski/161351/cmap_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.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=82.7364 yref=13.5402 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.81
user 0.64
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161351/ft1_filtered_4FGL_J0530.9+1332_monthly_bin169.fits scfile=/scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits outfile=/scratch/kocevski/161351/cmap_HighResolution_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.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=82.7364 yref=13.5402 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.80
user 0.61
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161351/ft1_filtered_4FGL_J0530.9+1332_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161351/Model_4FGL_J0530.9+1332_monthly_bin169.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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/161351/ft1_filtered_4FGL_J0530.9+1332_monthly_bin169.fits.....................!
real 2705.59
user 2697.70
sys 1.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/161351/ft1_filtered_4FGL_J0530.9+1332_monthly_bin169.fits', '/scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits', expMap='/scratch/kocevski/161351/expmap_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.fits', expCube='/scratch/kocevski/161351/ltcube_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/161351/Model_4FGL_J0530.9+1332_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0530.9+1332'

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  4.749e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.584e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/161351/ft1_filtered_4FGL_J0530.9+1332_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/161351/ft2_4FGL_J0530.9+1332_monthly_bin169.fits
Exposure map: /scratch/kocevski/161351/expmap_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.fits
Exposure cube: /scratch/kocevski/161351/ltcube_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/161351/Model_4FGL_J0530.9+1332_monthly_bin169.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) = 113341.031403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4822       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58007       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2201       1.0000         .10000E-03   10000.    
     5 'norm      '    .36745       1.0000         .10000E-03   10000.    
     6 'norm      '    10.951       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4860       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11517E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.892       1.0000         .10000E-03   10000.    
    11 'norm      '    5.0264       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5156       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3318       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3038       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1352       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9213       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7124       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7297       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21348E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0483       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.932       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2515       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98829       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   113341.0     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     2482 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4822        1.0852       -.77343E-07   -.41979E-04
   2  Prefactor     .58470        .96819       -.77151E-06    .10968E-02
   3  Prefactor     14.011        9.8580        .80783E-05   -.20334E-03
   4  Prefactor     4.2210        3.4730        .41604E-05    .43157E-03
   5  norm          .36765        .23080       -.52288E-07   -.97402E-03
   6  norm          10.950        2.0193       -.71134E-07   -.15754E-02
   7  Prefactor     .10000E-03    .49228        .73370E-07** at limit **
   8  norm          2.4865        1.7247        .24219E-07   -.71768E-03
   9  Prefactor     .10000E-03    2.0723       -.21444E-07** at limit **
  10  Prefactor     26.900        1.2414        .29927E-06   -.16475E-02
  11  norm          5.0265        1.3535       -.18070E-07   -.14180E-03
  12  Prefactor     2.5147        1.8770        .28281E-05    .77742E-03
  13  norm          1.3318        3.2085       -.66338E-05   -.28174E-03
  14  norm          1.3037        .49376        .46947E-07    .26143E-03
  15  Prefactor     1.1352        .72825E-01    .94368E-08   -.69607E-02
  16  norm          6.9213        1.6712       -.16557E-06    .38445E-03
  17  Prefactor     3.7124        .51779        .26848E-07   -.16428E-02
  18  Prefactor     .10000E-03    5.2077        .59135E-06** at limit **
  19  Prefactor     9.7290        1.1251       -.53680E-06   -.24920E-03
  20  Prefactor     .10001E-03    79.541        .28854E-05** at limit **
  21  Prefactor     3.0481        2.5610        .21471E-05   -.84079E-04
  22  norm          .10000E-03    6.9548       -.16861E-07** at limit **
  23  Prefactor     10.932        1.0049       -.41889E-08   -.43276E-03
  24  Normalizat    1.2514        .14908       -.41514E-05   -.27513E-03
  25  Prefactor     .98830        .21353E-01    .13357E-06   -.21755E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 3.48223
  Prefactor  = 0.584695
  Prefactor  = 14.0106
  Prefactor  = 4.22104
  norm       = 0.367652
  norm       = 10.9501
  Prefactor  = 0.0001
  norm       = 2.48645
  Prefactor  = 0.0001
  Prefactor  = 26.9002
  norm       = 5.02651
  Prefactor  = 2.51465
  norm       = 1.33175
  norm       = 1.30373
  Prefactor  = 1.13521
  norm       = 6.92126
  Prefactor  = 3.71243
  Prefactor  = 0.0001
  Prefactor  = 9.72897
  Prefactor  = 0.000100007
  Prefactor  = 3.04815
  norm       = 0.0001
  Prefactor  = 10.9318
  Normalizat = 1.25139
  Prefactor  = 0.988296
 **********
 **   18 **HESSE 
 **********

 FCN=   113341.0     FROM HESSE     STATUS=OK           511 CALLS     2993 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4822        1.0925        .54172E-02   -1.5335    
   2  Prefactor     .58470        3.1537        .18718       -1.5555    
   3  Prefactor     14.011        10.437        .26741E-02   -1.4959    
   4  Prefactor     4.2210        3.4901        .49040E-02   -1.5297    
   5  norm          .36765        .24645        .10717E-01   -1.5587    
   6  norm          10.950        2.0557        .30267E-02   -1.5046    
   7  Prefactor     .10000E-03    .48149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4865        1.7358        .64815E-02   -1.5393    
   9  Prefactor     .10000E-03    .35755        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.900        21.815        .19313E-02   -1.4670    
  11  norm          5.0265        1.3606        .44840E-02   -1.5260    
  12  Prefactor     2.5147        8.5052        .64399E-02   -1.5391    
  13  norm          1.3318        3.2584        .95112E-02   -1.5477    
  14  norm          1.3037        .50849        .96676E-02   -1.5480    
  15  Prefactor     1.1352        .67144E-01    .32805E-02   -1.5495    
  16  norm          6.9213        1.5811        .38124E-02   -1.5182    
  17  Prefactor     3.7124        .49692        .52398E-02   -1.5323    
  18  Prefactor     .10000E-03    5.2064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.7290        12.268        .32117E-02   -1.5084    
  20  Prefactor     .10001E-03    2.5816        .16968       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0481        2.6483        .58095E-02   -1.5359    
  22  norm          .10000E-03    6.7584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.932        5.1590        .30293E-02   -1.5047    
  24  Normalizat    1.2514        .15412        .19314       -.85029    
  25  Prefactor     .98830        .20931E-01    .33083E-01   -.93121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41788e-06
Minuit parameter uncertainties:
  1  1.09256
  2  2.71584
  3  10.438
  4  3.49031
  5  0.246447
  6  2.05576
  7  6.2987e-07
  8  1.7358
  9  2.37125e-06
  10  21.8213
  11  1.36057
  12  8.50932
  13  3.25879
  14  0.50849
  15  0.0671444
  16  1.58112
  17  0.496919
  18  3.94776e-06
  19  12.2712
  20  0.000277424
  21  2.64843
  22  4.69481e-05
  23  5.15917
  24  0.154177
  25  0.0209316
Done.

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

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  1.332e+00  3.259e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  2.584e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.883e-01  2.093e-02  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.251e+00  1.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 82.736 13.540
Photon Flux Upper Limit: 6.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161351/likelihoodResults_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.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) = 113340.802284
delta logL = 0.192241596829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 113340.765716
delta logL = 0.228809253327

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81269       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6579       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   113340.8     FROM MIGRAD    STATUS=FAILED       104 CALLS      276 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80848        48.254        .26691E-02    .26585E-02
   2  alpha         3.6623        2.8817        .84629E-01    .13530E-03
   3  Normalizat    1.2316        .77911E-01    .86658E-03   -.80477E-03
   4  Prefactor     .98937        .11311E-01    .14612E-03   -.59961E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   113340.8     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      362 TOTAL
                     EDM=   .55E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80848        48.254        .94767E-04    .26585E-02
   2  alpha         3.6623        2.8817        .21249E-02    .13530E-03
   3  Normalizat    1.2316        .77911E-01    .71754E-04   -.80477E-03
   4  Prefactor     .98937        .11311E-01    .54009E-05   -.59961E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   113340.8     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      396 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80847        3.7249        .10676E-03    .31520E-03
   2  alpha         3.6623        3.9736        .33852E-02    .10586E-04
   3  Normalizat    1.2316        .14099        .34663E-04    .87110E-04
   4  Prefactor     .98937        .21234E-01    .29224E-04   -.23653E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.808467
  alpha      = 3.6623
  Normalizat = 1.23157
  Prefactor  = 0.989375
 **********
 **   18 **HESSE 
 **********

 FCN=   113340.8     FROM HESSE     STATUS=OK            23 CALLS      419 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80847        2.6984        .42705E-05   -1.5528    
   2  alpha         3.6623        1.8552        .13541E-03    .48354    
   3  Normalizat    1.2316        .13973        .69327E-05   -.85633    
   4  Prefactor     .98937        .21045E-01    .58447E-05   -.93085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12885e-11
Minuit parameter uncertainties:
  1  2.69876
  2  2.19995
  3  0.139776
  4  0.021045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161351': 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) = 113340.765714
delta logL = 0.228811934692

Extracting fit parameters...

4FGL J0530.9+1332
   Spectrum: LogParabola
244         norm:  8.085e-01  2.699e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        alpha:  3.662e+00  2.200e+00  0.000e+00  5.000e+00 ( 1.000e+00)
246         beta:  2.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
247           Eb:  8.857e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  9.894e-01  2.104e-02  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  1.232e+00  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
Ra Dec: 82.736 13.540

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/161351/cmap_HighResolution_675043201_677635201_4FGL_J0530.9+1332_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', job_status='DONE', photon_flux_upper_limit='6.68e-08', time_completed='2022-06-23 04:43:08.638409', job_id='161351', GAL2='0.99', fit_tolerance='1e-08', EG2='1.23', EG='1.25', time_epoch_completed='1655984588.64', return_code2='0', ts='0.20', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.29e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='169' AND source_name='4FGL J0530.9+1332' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:43:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 161351: <4FGL_J0530.9+1332_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0530.9+1332_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 01:20:44 2022
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:56:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 01:56:24 2022
Terminated at Thu Jun 23 04:43:09 2022
Results reported at Thu Jun 23 04:43:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0530.9+1332_monthly_bin169 82.7364 13.5402 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0530.9+1332 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9849.00 sec.
    Max Memory :                                 1269 MB
    Average Memory :                             491.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10005 sec.
    Turnaround time :                            12145 sec.

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

