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 55 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_J2034.6+1154_monthly_bin169
RA = 308.65, Dec = 11.9035
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='187866', job_status='RUN', time_executed='2022-06-23 03:07:13.803529', time_epoch_executed='1655978833.8' WHERE source_name='4FGL J2034.6+1154' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187866

Creating custom pfile directory:
/scratch/kocevski/187866/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/187866/ft1_4FGL_J2034.6+1154_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/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187866/ft1_4FGL_J2034.6+1154_monthly_bin169.fits outfile=/scratch/kocevski/187866/ft1_filteredMKT_4FGL_J2034.6+1154_monthly_bin169.fits ra=308.65 dec=11.9035 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.64
user 26.88
sys 0.67

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187866/ft2_4FGL_J2034.6+1154_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/187866/ft1_filteredMKT_4FGL_J2034.6+1154_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/187866/ft1_filtered_4FGL_J2034.6+1154_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: 11679

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187866/ft1_filtered_4FGL_J2034.6+1154_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/187866/ltcube_675043201_677635201_4FGL_J2034.6+1154_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/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits
.....................!
real 143.42
user 142.00
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187866/ft1_filtered_4FGL_J2034.6+1154_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/187866/ltcube_675043201_677635201_4FGL_J2034.6+1154_monthly_bin169.fits outfile=/scratch/kocevski/187866/expmap_675043201_677635201_4FGL_J2034.6+1154_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/187866/ltcube_675043201_677635201_4FGL_J2034.6+1154_monthly_bin169.fits
.....................!
real 195.84
user 190.18
sys 5.05

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 W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 225 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 J2034.6+1154 @ 308.65 11.9035

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/187866/ft1_filtered_4FGL_J2034.6+1154_monthly_bin169.fits scfile=/scratch/kocevski/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits outfile=/scratch/kocevski/187866/cmap_675043201_677635201_4FGL_J2034.6+1154_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=308.65 yref=11.9035 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.65
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187866/ft1_filtered_4FGL_J2034.6+1154_monthly_bin169.fits scfile=/scratch/kocevski/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits outfile=/scratch/kocevski/187866/cmap_HighResolution_675043201_677635201_4FGL_J2034.6+1154_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=308.65 yref=11.9035 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.63
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/187866/ft1_filtered_4FGL_J2034.6+1154_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/187866/Model_4FGL_J2034.6+1154_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 Cygnus Loop
adding source EG_v02
adding source G42.8+0.6
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/187866/ft1_filtered_4FGL_J2034.6+1154_monthly_bin169.fits.....................!
real 2865.51
user 2856.61
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/187866/ft1_filtered_4FGL_J2034.6+1154_monthly_bin169.fits', '/scratch/kocevski/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits', expMap='/scratch/kocevski/187866/expmap_675043201_677635201_4FGL_J2034.6+1154_monthly_bin169.fits', expCube='/scratch/kocevski/187866/ltcube_675043201_677635201_4FGL_J2034.6+1154_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/187866/Model_4FGL_J2034.6+1154_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2034.6+1154'

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  5.807e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
495        Index:  2.540e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/187866/ft1_filtered_4FGL_J2034.6+1154_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/187866/ft2_4FGL_J2034.6+1154_monthly_bin169.fits
Exposure map: /scratch/kocevski/187866/expmap_675043201_677635201_4FGL_J2034.6+1154_monthly_bin169.fits
Exposure cube: /scratch/kocevski/187866/ltcube_675043201_677635201_4FGL_J2034.6+1154_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/187866/Model_4FGL_J2034.6+1154_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) = 124897.896428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1335       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2962       1.0000         .10000E-03   10000.    
     3 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27875       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15951E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22186       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1122       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1661       1.0000         .10000E-03   10000.    
    11 'norm      '    47.387       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6674       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6230       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4525       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .73836       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2313       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90789       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   124897.8     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1782 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1359        10.301       -.11079E-06    .28528E-03
   2  Prefactor     2.2964        5.1513       -.43643E-07   -.28658E-04
   3  norm          .10000E-03    .28254       -.48749E-06** at limit **
   4  Prefactor     .10000E-03    1.8752       -.13061E-06** at limit **
   5  norm          2.3921        1.1717       -.14995E-07    .25219E-05
   6  Prefactor     .26583        2.1936       -.24318E-05    .36763E-03
   7  Prefactor     .10049E-03    1.3645        .18628E-06** at limit **
   8  norm          .22217        .22796        .15486E-06    .48248E-02
   9  Prefactor     7.1110        12.339       -.16555E-06    .11954E-03
  10  norm          4.1666        2.3776        .38971E-06   -.56617E-03
  11  norm          47.365        17.392        .57262E-06   -.62225E-04
  12  Prefactor     .10000E-03    1.1071        .66673E-06** at limit **
  13  Prefactor     5.6671        3.6831        .11658E-06    .17952E-03
  14  Prefactor     2.6182        4.2415        .19828E-05   -.36313E-03
  15  Prefactor     7.4516        5.1937        .12344E-06   -.27495E-04
  16  Prefactor     .10000E-03    1.7167       -.28068E-07** at limit **
  17  Prefactor     .80510        2.2940       -.96602E-06   -.26775E-03
  18  Normalizat    1.2312        .82072E-01   -.19367E-06    .99219E-03
  19  Prefactor     .90790        .20311E-01    .15889E-06    .64240E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.13587
  Prefactor  = 2.29641
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3921
  Prefactor  = 0.265833
  Prefactor  = 0.000100485
  norm       = 0.222172
  Prefactor  = 7.11097
  norm       = 4.16656
  norm       = 47.3652
  Prefactor  = 0.0001
  Prefactor  = 5.66714
  Prefactor  = 2.61816
  Prefactor  = 7.45162
  Prefactor  = 0.0001
  Prefactor  = 0.805095
  Normalizat = 1.23119
  Prefactor  = 0.907897
 **********
 **   18 **HESSE 
 **********

 FCN=   124897.8     FROM HESSE     STATUS=OK           294 CALLS     2076 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1359        10.208        .15019E-03   -1.5174    
   2  Prefactor     2.2964        5.1410        .27085E-03   -1.5405    
   3  norm          .10000E-03    1.8498        .32333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3921        1.1744        .26128E-03   -1.5399    
   6  Prefactor     .26583        12.203        .51399E-02   -1.5605    
   7  Prefactor     .10049E-03    1.8669        .90528E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .22217        .20741        .13097E-03   -1.5614    
   9  Prefactor     7.1110        12.311        .15042E-03   -1.5175    
  10  norm          4.1666        2.5075        .98732E-03   -1.5300    
  11  norm          47.365        17.263        .58249E-04   -1.4330    
  12  Prefactor     .10000E-03    5.2442        .61556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6671        3.6771        .16873E-03   -1.5232    
  14  Prefactor     2.6182        4.5368        .12591E-02   -1.5384    
  15  Prefactor     7.4516        5.2050        .73456E-03   -1.5162    
  16  Prefactor     .10000E-03    1.7275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .80510        11.377        .82382E-02   -1.5529    
  18  Normalizat    1.2312        .90013E-01    .46747E-03   -.85644    
  19  Prefactor     .90790        .22467E-01    .14179E-03   -.95866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08227e-06
Minuit parameter uncertainties:
  1  10.2104
  2  5.14194
  3  3.73332e-06
  4  9.36522e-06
  5  1.17439
  6  3.60237
  7  0.00190358
  8  0.20741
  9  12.3156
  10  2.50758
  11  17.265
  12  3.66276e-05
  13  3.67721
  14  4.53738
  15  5.20536
  16  5.58531e-07
  17  6.05395
  18  0.0900244
  19  0.0224675
Done.

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

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  1.005e-04  1.904e-03  1.000e-04  1.000e+04 ( 1.000e-13)
495        Index:  2.540e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
496        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
796    Prefactor:  9.079e-01  2.247e-02  0.000e+00  1.000e+01 ( 1.000e+00)
797        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
798        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
792   Normalization:  1.231e+00  9.002e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 308.650 11.903
Photon Flux Upper Limit: 3.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/187866/likelihoodResults_675043201_677635201_4FGL_J2034.6+1154_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) = 124897.773874
delta logL = -5.84636582062e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 124897.311123
delta logL = 0.462692751156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42873       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8188       1.0000          .0000       10.000    
     3 'Normalizat'    1.2071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8030E+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=   124897.3     FROM MIGRAD    STATUS=FAILED       113 CALLS      376 TOTAL
                     EDM=   .63E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42967        20.360        .17410E-02    .95352E-01
   2  Index         3.8169        6.9058        .48227E-02    .52845E-03
   3  Normalizat    1.2071        .49890E-01    .47150E-03    .77158E-06
   4  Prefactor     .91100        .13058E-01    .14156E-03   -.25699E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   124897.3     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      466 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42967        20.360        .83768E-04    .95352E-01
   2  Index         3.8169        6.9058        .10011E-02    .52845E-03
   3  Normalizat    1.2071        .49890E-01    .43660E-04    .77158E-06
   4  Prefactor     .91100        .13058E-01    .72323E-05   -.25699E-05
                               ERR DEF=  .500    

 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.

 FCN=   124897.3     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      535 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42967        1.5192        .69640E-04    .15149E-03
   2  Index         3.8169        1.5760        .19291E-03    .75434E-06
   3  Normalizat    1.2071        .84871E-01    .18860E-04    .77158E-06
   4  Prefactor     .91100        .21931E-01    .28312E-04   -.25699E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.429674
  Index      = 3.81687
  Normalizat = 1.20714
  Prefactor  = 0.911002
 **********
 **   18 **HESSE 
 **********

 FCN=   124897.3     FROM HESSE     STATUS=OK            25 CALLS      560 TOTAL
                     EDM=   .16E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42967        1.3457        .13928E-04   -1.5577    
   2  Index         3.8169        1.4016        .38582E-04   -.23889    
   3  Normalizat    1.2071        .84885E-01    .18860E-04   -.86382    
   4  Prefactor     .91100        .21929E-01    .28312E-04   -.95758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60178e-14
Minuit parameter uncertainties:
  1  1.34575
  2  1.4218
  3  0.0848948
  4  0.0219296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187866': 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) = 124897.311115
delta logL = 0.46270015827

Extracting fit parameters...

4FGL J2034.6+1154
   Spectrum: PowerLaw
494    Prefactor:  4.297e-01  1.346e+00  1.000e-04  1.000e+04 ( 1.000e-13)
495        Index:  3.817e+00  1.422e+00  0.000e+00  1.000e+01 (-1.000e+00)
496        Scale:  1.227e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
796    Prefactor:  9.110e-01  2.193e-02  0.000e+00  1.000e+01 ( 1.000e+00)
797        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
798        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
792   Normalization:  1.207e+00  8.489e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 308.650 11.903

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/187866/cmap_HighResolution_675043201_677635201_4FGL_J2034.6+1154_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-03', job_status='DONE', photon_flux_upper_limit='3.12e-08', time_completed='2022-06-23 06:00:45.849854', job_id='187866', GAL2='0.91', fit_tolerance='1e-08', EG2='1.21', EG='1.23', time_epoch_completed='1655989245.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.63e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='169' AND source_name='4FGL J2034.6+1154' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:00:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 187866: <4FGL_J2034.6+1154_monthly_bin169> in cluster <slac> Done

Job <4FGL_J2034.6+1154_monthly_bin169> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jun 23 03:00:28 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 03:06:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 03:06:08 2022
Terminated at Thu Jun 23 06:00:47 2022
Results reported at Thu Jun 23 06:00:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2034.6+1154_monthly_bin169 308.65 11.9035 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2034.6+1154 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10371.00 sec.
    Max Memory :                                 643 MB
    Average Memory :                             534.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10478 sec.
    Turnaround time :                            10819 sec.

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

