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_J0521.2+1637_monthly_bin169
RA = 80.3136, Dec = 16.631
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='161329', job_status='RUN', time_executed='2022-06-23 01:58:01.298597', time_epoch_executed='1655974681.3' WHERE source_name='4FGL J0521.2+1637' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161329

Creating custom pfile directory:
/scratch/kocevski/161329/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/161329/ft1_4FGL_J0521.2+1637_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/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161329/ft1_4FGL_J0521.2+1637_monthly_bin169.fits outfile=/scratch/kocevski/161329/ft1_filteredMKT_4FGL_J0521.2+1637_monthly_bin169.fits ra=80.3136 dec=16.631 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 27.79
user 26.96
sys 0.69

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161329/ft2_4FGL_J0521.2+1637_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/161329/ft1_filteredMKT_4FGL_J0521.2+1637_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/161329/ft1_filtered_4FGL_J0521.2+1637_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.68
sys 0.17

Number of photons that the gtmktime cut: 11703

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161329/ft1_filtered_4FGL_J0521.2+1637_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/161329/ltcube_675043201_677635201_4FGL_J0521.2+1637_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/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits
.....................!
real 142.11
user 140.61
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161329/ft1_filtered_4FGL_J0521.2+1637_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/161329/ltcube_675043201_677635201_4FGL_J0521.2+1637_monthly_bin169.fits outfile=/scratch/kocevski/161329/expmap_675043201_677635201_4FGL_J0521.2+1637_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/161329/ltcube_675043201_677635201_4FGL_J0521.2+1637_monthly_bin169.fits
.....................!
real 193.71
user 187.54
sys 5.19

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 169 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 J0521.2+1637 @ 80.3136 16.631

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/161329/ft1_filtered_4FGL_J0521.2+1637_monthly_bin169.fits scfile=/scratch/kocevski/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits outfile=/scratch/kocevski/161329/cmap_675043201_677635201_4FGL_J0521.2+1637_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=80.3136 yref=16.631 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.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161329/ft1_filtered_4FGL_J0521.2+1637_monthly_bin169.fits scfile=/scratch/kocevski/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits outfile=/scratch/kocevski/161329/cmap_HighResolution_675043201_677635201_4FGL_J0521.2+1637_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=80.3136 yref=16.631 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.83
user 0.66
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161329/ft1_filtered_4FGL_J0521.2+1637_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161329/Model_4FGL_J0521.2+1637_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/161329/ft1_filtered_4FGL_J0521.2+1637_monthly_bin169.fits.....................!
real 2776.99
user 2767.03
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/161329/ft1_filtered_4FGL_J0521.2+1637_monthly_bin169.fits', '/scratch/kocevski/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits', expMap='/scratch/kocevski/161329/expmap_675043201_677635201_4FGL_J0521.2+1637_monthly_bin169.fits', expCube='/scratch/kocevski/161329/ltcube_675043201_677635201_4FGL_J0521.2+1637_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/161329/Model_4FGL_J0521.2+1637_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0521.2+1637'

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  4.819e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.231e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.276e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/161329/ft1_filtered_4FGL_J0521.2+1637_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/161329/ft2_4FGL_J0521.2+1637_monthly_bin169.fits
Exposure map: /scratch/kocevski/161329/expmap_675043201_677635201_4FGL_J0521.2+1637_monthly_bin169.fits
Exposure cube: /scratch/kocevski/161329/ltcube_675043201_677635201_4FGL_J0521.2+1637_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/161329/Model_4FGL_J0521.2+1637_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) = 116825.774794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5553       1.0000         .10000E-03   10000.    
     2 'norm      '    13.396       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0897       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0098       1.0000         .10000E-03   10000.    
     6 'norm      '    8.8637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.229       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.991       1.0000         .10000E-03   10000.    
    12 'norm      '    4.8201       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1719       1.0000         .10000E-03   10000.    
    14 'norm      '    .30298       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0898       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1266       1.0000         .10000E-03   10000.    
    17 'norm      '    6.9773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6162       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4983       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36265E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0397       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.0107       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4860       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99145       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   116825.8     FROM MIGRAD    STATUS=CONVERGED     57 CALLS     2464 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5553        1.1055        .51290E-07   -.70534E-05
   2  norm          13.396        1.0135       -.68144E-07    .81311E-03
   3  Prefactor     .10001E-03    12.692        .66600E-06** at limit **
   4  Prefactor     9.0887        1.0196        .10710E-06   -.76844E-03
   5  Prefactor     3.0101        2.7682        .20275E-05    .39526E-02
   6  norm          8.8637        1.7756        .69913E-06    .39070E-02
   7  Prefactor     .10000E-03    .35219        .67589E-07** at limit **
   8  norm          2.1121        1.6134        .67988E-06    .10913E-02
   9  Prefactor     .10000E-03    1.3622       -.99912E-07** at limit **
  10  Prefactor     28.228        1.0227       -.62436E-07    .16259E-02
  11  Prefactor     21.992        1.1151        .16291E-06   -.36069E-02
  12  norm          4.8202        1.3291       -.81792E-07   -.20148E-03
  13  Prefactor     2.1717        1.0299       -.35407E-07    .40653E-04
  14  norm          .29979        .89774        .19324E-05   -.10200E-02
  15  norm          1.0899        .46126        .53001E-08   -.26288E-03
  16  Prefactor     1.1267        .64640E-01    .82444E-08    .56987E-02
  17  norm          6.9773        1.0390       -.13852E-06   -.15526E-02
  18  Prefactor     3.6162        .49661       -.44455E-08   -.48747E-03
  19  Prefactor     .10000E-03    4.5509        .22999E-06** at limit **
  20  Prefactor     4.4977        1.0288        .15333E-06   -.72320E-03
  21  Prefactor     .10118E-03    1.7373       -.32505E-05** at limit **
  22  Prefactor     2.0403        1.1641        .88477E-07    .14841E-02
  23  Prefactor     8.0105        1.0169        .95646E-07   -.59320E-03
  24  Normalizat    1.4860        .15476       -.23930E-05   -.18725E-03
  25  Prefactor     .99145        .21592E-01    .15821E-06    .51673E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.55526
  norm       = 13.396
  Prefactor  = 0.000100008
  Prefactor  = 9.0887
  Prefactor  = 3.0101
  norm       = 8.86368
  Prefactor  = 0.0001
  norm       = 2.11207
  Prefactor  = 0.0001
  Prefactor  = 28.2283
  Prefactor  = 21.992
  norm       = 4.82015
  Prefactor  = 2.1717
  norm       = 0.299788
  norm       = 1.08991
  Prefactor  = 1.12665
  norm       = 6.97731
  Prefactor  = 3.61619
  Prefactor  = 0.0001
  Prefactor  = 4.49771
  Prefactor  = 0.000101182
  Prefactor  = 2.04029
  Prefactor  = 8.01054
  Normalizat = 1.48605
  Prefactor  = 0.991447
 **********
 **   18 **HESSE 
 **********

 FCN=   116825.8     FROM HESSE     STATUS=OK           505 CALLS     2969 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5553        1.1153        .53589E-02   -1.5331    
   2  norm          13.396        16.399        .27359E-02   -1.4976    
   3  Prefactor     .10001E-03    12.630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0887        8.4211        .33234E-02   -1.5105    
   5  Prefactor     3.0101        2.9694        .58487E-02   -1.5361    
   6  norm          8.8637        1.8348        .33657E-02   -1.5112    
   7  Prefactor     .10000E-03    .34730        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1121        1.6324        .70966E-02   -1.5417    
   9  Prefactor     .10000E-03    .33362        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.228        17.167        .18851E-02   -1.4645    
  11  Prefactor     21.992        19.762        .21353E-02   -1.4770    
  12  norm          4.8202        1.3369        .45810E-02   -1.5269    
  13  Prefactor     2.1717        8.4020        .69852E-02   -1.5413    
  14  norm          .29979        .85349        .10438       -1.5598    
  15  norm          1.0899        .47706        .11462E-01   -1.5499    
  16  Prefactor     1.1267        .67005E-01    .33205E-02   -1.5496    
  17  norm          6.9773        1.5857        .37969E-02   -1.5180    
  18  Prefactor     3.6162        .49170        .53117E-02   -1.5328    
  19  Prefactor     .10000E-03    4.5511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4977        11.608        .47458E-02   -1.5284    
  21  Prefactor     .10118E-03    2.2871        .17987       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.0403        2.5512        .72391E-02   -1.5422    
  23  Prefactor     8.0105        4.7776        .35415E-02   -1.5142    
  24  Normalizat    1.4860        .15528        .18963       -.78171    
  25  Prefactor     .99145        .20833E-01    .33298E-01   -.93015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94711e-07
Minuit parameter uncertainties:
  1  1.11534
  2  16.4045
  3  0.000621229
  4  8.42224
  5  2.96952
  6  1.83483
  7  1.2625e-06
  8  1.63243
  9  1.27553e-06
  10  17.1701
  11  19.768
  12  1.33693
  13  8.40652
  14  0.853527
  15  0.477061
  16  0.0670054
  17  1.58574
  18  0.491699
  19  6.76326e-05
  20  11.6135
  21  0.00328799
  22  2.55133
  23  4.7778
  24  0.155334
  25  0.0208328
Done.

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

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  2.199e+01  1.977e+01  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.231e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.276e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.914e-01  2.083e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.486e+00  1.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 80.314 16.631
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.90e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 8.09e-06 +/- 7.27e-06

TS (Fixed Index): 2.46
Ra Dec: 80.314 16.631
Photon Flux Upper Limit: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161329/likelihoodResults_675043201_677635201_4FGL_J0521.2+1637_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): 0
logL (Free Index) = 116825.752658
delta logL = 0.0211025183526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 116825.746476
delta logL = 0.0272850202309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.507       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0751       1.0000          .0000       10.000    
     3 'Normalizat'    1.4893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+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=   116825.7     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      271 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.512        23.890        .80917E-04    .10925E-03
   2  Index         2.0765        .65054        .43966E-02    .38539E-03
   3  Normalizat    1.4891        .14382        .84410E-03    .40556E-03
   4  Prefactor     .99131        .21207E-01    .14716E-03    .13202E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.512
  Index      = 2.07651
  Normalizat = 1.48913
  Prefactor  = 0.991314
 **********
 **   18 **HESSE 
 **********

 FCN=   116825.7     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.512        23.680        .16183E-04   -1.4717    
   2  Index         2.0765        .64472        .17586E-03   -.62451    
   3  Normalizat    1.4891        .14383        .33764E-04   -.78084    
   4  Prefactor     .99131        .21212E-01    .58862E-05   -.93020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52079e-09
Minuit parameter uncertainties:
  1  23.6886
  2  0.647469
  3  0.143872
  4  0.0212121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161329': 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) = 116825.746468
delta logL = 0.0272926078469

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  2.451e+01  2.369e+01  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.077e+00  6.475e-01  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.276e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.913e-01  2.121e-02  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.489e+00  1.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 80.314 16.631
Photon Index (Free Index): 2.08 +/- 0.65
Photon Flux (Free Index): 1.50e-08 +/- 2.13e-08
Energy Flux (Free Index): 8.65e-06 +/- 8.41e-06

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/161329/cmap_HighResolution_675043201_677635201_4FGL_J0521.2+1637_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', comment='SUCCESS', photon_flux='1.90e-08', energy_flux2='8.65e-06', photon_flux_error='1.71e-08', dlogl='2.73e-02', energy_flux='8.09e-06', photon_flux2='1.50e-08', job_status='DONE', time_completed='2022-06-23 04:45:07.316660', photon_index_error2='0.65', photon_index2='2.08', ts='2.46', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='5.87e-08', energy_flux_error2='8.41e-06', EG='1.49', time_epoch_completed='1655984707.32', return_code='0', job_id='161329', GAL2='0.99', EG2='1.49', return_code2='0', energy_flux_error='7.27e-06', photon_flux_error2='2.13e-08', ts2='2.50', photon_index='2.23' WHERE bin_id='169' AND source_name='4FGL J0521.2+1637' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:45:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 161329: <4FGL_J0521.2+1637_monthly_bin169> in cluster <slac> Done

Job <4FGL_J0521.2+1637_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) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 01:56:12 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:12 2022
Terminated at Thu Jun 23 04:45:08 2022
Results reported at Thu Jun 23 04:45:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.2+1637_monthly_bin169 80.3136 16.631 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0521.2+1637 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9997.00 sec.
    Max Memory :                                 1269 MB
    Average Memory :                             500.02 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10136 sec.
    Turnaround time :                            12264 sec.

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

