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 6 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2022.5+7612_monthly_bin174
RA = 305.646, Dec = 76.2007
tmin = 688003201, tmax = 690595201
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='862609', job_status='RUN', time_executed='2022-11-20 02:25:50.821667', time_epoch_executed='1668939950.82' WHERE source_name='4FGL J2022.5+7612' and cadence='monthly' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862609

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862609/ft1_4FGL_J2022.5+7612_monthly_bin174.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862609/ft1_4FGL_J2022.5+7612_monthly_bin174.fits outfile=/scratch/kocevski/862609/ft1_filteredMKT_4FGL_J2022.5+7612_monthly_bin174.fits ra=305.646 dec=76.2007 rad=12.0 tmin=688003201.0 tmax=690595201.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 32.16
user 30.88
sys 0.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.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/862609/ft1_filteredMKT_4FGL_J2022.5+7612_monthly_bin174.fits evtable="EVENTS" outfile="/scratch/kocevski/862609/ft1_filtered_4FGL_J2022.5+7612_monthly_bin174.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.95
user 0.66
sys 0.20

Number of photons that the gtmktime cut: 18524

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862609/ft1_filtered_4FGL_J2022.5+7612_monthly_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/862609/ltcube_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.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/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits
.....................!
real 115.07
user 114.27
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862609/ft1_filtered_4FGL_J2022.5+7612_monthly_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/862609/ltcube_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.fits outfile=/scratch/kocevski/862609/expmap_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.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/862609/ltcube_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.fits
.....................!
real 192.15
user 186.49
sys 4.88

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 FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 206 point sources and 2 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 J2022.5+7612 @ 305.646 76.2007

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/862609/ft1_filtered_4FGL_J2022.5+7612_monthly_bin174.fits scfile=/scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits outfile=/scratch/kocevski/862609/cmap_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.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=305.646 yref=76.2007 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862609/ft1_filtered_4FGL_J2022.5+7612_monthly_bin174.fits scfile=/scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits outfile=/scratch/kocevski/862609/cmap_HighResolution_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.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=305.646 yref=76.2007 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.82
user 0.63
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862609/ft1_filtered_4FGL_J2022.5+7612_monthly_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862609/Model_4FGL_J2022.5+7612_monthly_bin174.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/scratch/kocevski/862609/ft1_filtered_4FGL_J2022.5+7612_monthly_bin174.fits.....................!
real 2387.58
user 2379.43
sys 2.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862609/ft1_filtered_4FGL_J2022.5+7612_monthly_bin174.fits', '/scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits', expMap='/scratch/kocevski/862609/expmap_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.fits', expCube='/scratch/kocevski/862609/ltcube_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862609/Model_4FGL_J2022.5+7612_monthly_bin174.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2022.5+7612'

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  8.450e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
472        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/862609/ft1_filtered_4FGL_J2022.5+7612_monthly_bin174.fits
Spacecraft file(s): /scratch/kocevski/862609/ft2_4FGL_J2022.5+7612_monthly_bin174.fits
Exposure map: /scratch/kocevski/862609/expmap_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.fits
Exposure cube: /scratch/kocevski/862609/ltcube_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862609/Model_4FGL_J2022.5+7612_monthly_bin174.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) = 185811.808884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16653E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.9290       1.0000          .0000       .10000E+07
     3 'Prefactor '    .36516E-03   1.0000          .0000       .10000E+07
     4 'norm      '    3.5255       1.0000          .0000       .10000E+07
     5 'norm      '    13.732       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5605       1.0000          .0000       .10000E+07
     7 'Prefactor '    .63520       1.0000          .0000       .10000E+07
     8 'norm      '    .77094       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26095       1.0000          .0000       .10000E+07
    10 'Prefactor '    .24359E-04   1.0000          .0000       .10000E+07
    11 'norm      '    2.2311       1.0000          .0000       .10000E+07
    12 'norm      '    10.182       1.0000          .0000       .10000E+07
    13 'norm      '    1.6974       1.0000          .0000       .10000E+07
    14 'norm      '    4.6682       1.0000          .0000       .10000E+07
    15 'Prefactor '    19.910       1.0000          .0000       .10000E+07
    16 'norm      '    1.2033       1.0000          .0000       .10000E+07
    17 'Prefactor '    17.685       1.0000          .0000       .10000E+07
    18 'norm      '    .22383E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .85173       1.0000          .0000       .10000E+07
    20 'Prefactor '    .35742       1.0000          .0000       .10000E+07
    21 'norm      '    .12541       1.0000          .0000       .10000E+07
    22 'Prefactor '    .83267E-08   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0622       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   185810.8     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     2069 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .27023         .0000    ** at limit **
   2  Prefactor     8.9414        5.8865         .0000        .60194E-02
   3  Prefactor      .0000        4.5135         .0000    ** at limit **
   4  norm          3.5255        .26896         .0000        .21959E-01
   5  norm          13.732        1.7118         .0000        .83688E-02
   6  Prefactor     2.5634        2.2898         .0000        .48530E-01
   7  Prefactor     .62923        6.0517         .0000        .25352    
   8  norm          .77113        .63269         .0000        .14738    
   9  Prefactor     .26656        .88102         .0000        .39761E-01
  10  Prefactor     .11102E-09    1.5342         .0000    ** at limit **
  11  norm          2.2307        .40223         .0000       -.17639E-01
  12  norm          10.182        5.3037         .0000        .36723E-01
  13  norm          1.6961        .86088         .0000        .15560    
  14  norm          4.6781        3.9680         .0000        .14584    
  15  Prefactor     19.907        5.7845         .0000       -.10249E-01
  16  norm          1.2028        .69347         .0000        .19186    
  17  Prefactor     17.724        4.0510         .0000        .59687E-02
  18  norm          .55511E-10    .81489         .0000    ** at limit **
  19  Prefactor     .85090        .81344         .0000        .86142E-01
  20  Prefactor     .12094        1.6568         .0000    ** at limit **
  21  norm          .18413E-06    .99866         .0000    ** at limit **
  22  Prefactor      .0000        .61683         .0000    ** at limit **
  23  Normalizat    1.0620        .56352E-01     .0000        .12430E-02
  24  Prefactor     1.0045        .14617E-01     .0000        .26767E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 8.94142
  Prefactor  = 0
  norm       = 3.52551
  norm       = 13.7317
  Prefactor  = 2.56342
  Prefactor  = 0.629226
  norm       = 0.771125
  Prefactor  = 0.266558
  Prefactor  = 1.11022e-10
  norm       = 2.2307
  norm       = 10.1823
  norm       = 1.6961
  norm       = 4.67814
  Prefactor  = 19.9073
  norm       = 1.20284
  Prefactor  = 17.724
  norm       = 5.55112e-11
  Prefactor  = 0.850905
  Prefactor  = 0.120944
  norm       = 1.8413e-07
  Prefactor  = 0
  Normalizat = 1.06203
  Prefactor  = 1.00452
 **********
 **   18 **HESSE 
 **********

 FCN=   185810.8     FROM HESSE     STATUS=OK           433 CALLS     2502 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .27552        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.9414        5.8886        .13407E-04   -1.5648    
   3  Prefactor      .0000        4.5160        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5255        .26973        .57753E-05   -1.5670    
   5  norm          13.732        1.7062        .10802E-04   -1.5634    
   6  Prefactor     2.5634        2.2348        .25509E-04   -1.5676    
   7  Prefactor     .62923        5.7950        .13226E-03   -1.5692    
   8  norm          .77113        .61999        .22051E-04   -1.5690    
   9  Prefactor     .26656        .97658        .11228E-01   -1.5698    
  10  Prefactor     .11102E-09    1.5937        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2307        .40158        .10841E-04   -1.5678    
  12  norm          10.182        5.3041        .12551E-04   -1.5644    
  13  norm          1.6961        .85364        .26909E-04   -1.5682    
  14  norm          4.6781        3.9630        .93109E-04   -1.5665    
  15  Prefactor     19.907        5.7735        .89674E-05   -1.5619    
  16  norm          1.2028        .68398        .26306E-04   -1.5686    
  17  Prefactor     17.724        4.0358        .95156E-05   -1.5624    
  18  norm          .55511E-10    .83680        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .85090        .81072        .19662E-04   -1.5690    
  20  Prefactor     .12094        1.5895        .16941E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .18413E-06    1.2470        .17595E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        .61863        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0620        .59682E-01    .48841E-03   -.90980    
  24  Prefactor     1.0045        .15572E-01    .13826E-03   -.92579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53593e-08
Minuit parameter uncertainties:
  1  2.0201e-06
  2  5.88861
  3  4.12421e-06
  4  0.269735
  5  1.70621
  6  2.23477
  7  3.8191
  8  0.619988
  9  0.976584
  10  2.50671e-05
  11  0.401576
  12  5.30412
  13  0.853642
  14  3.96296
  15  5.77348
  16  0.683981
  17  4.03582
  18  1.10283e-05
  19  0.810717
  20  0.876913
  21  0.000958316
  22  3.35344e-06
  23  0.0596858
  24  0.0155719
Done.

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

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  1.772e+01  4.036e+00  0.000e+00  1.000e+06 ( 1.000e-13)
472        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  1.005e+00  1.557e-02  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
678   Normalization:  1.062e+00  5.969e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.81
Ra Dec: 305.646 76.201
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.98e-08 +/- 1.13e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 4.52e-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) = 185810.201406
delta logL = 0.605861242948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 185810.183478
delta logL = 0.623789552395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.011       1.0000          .0000       .10000E+07
     2 'Index     '    2.4854       1.0000          .0000       10.000    
     3 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+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.

 FCN=   185810.2     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      336 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.011        5.1302        .51650E-04   -.56349E-03
   2  Index         2.4854        .23220        .88514E-02    .51409E-03
   3  Normalizat    1.0505        .55266E-01    .49070E-03    .24911E-04
   4  Prefactor     1.0054        .14961E-01    .13820E-03   -.26324E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0112
  Index      = 2.48537
  Normalizat = 1.05049
  Prefactor  = 1.00539
 **********
 **   18 **HESSE 
 **********

 FCN=   185810.2     FROM HESSE     STATUS=OK            27 CALLS      363 TOTAL
                     EDM=   .81E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.011        4.3342        .20660E-05   -1.5630    
   2  Index         2.4854        .19587        .35406E-03   -.52698    
   3  Normalizat    1.0505        .55001E-01    .98139E-04   -.91358    
   4  Prefactor     1.0054        .14947E-01    .55279E-05   -.92550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08758e-13
Minuit parameter uncertainties:
  1  4.33418
  2  0.195939
  3  0.055004
  4  0.0149476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862609': 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) = 185810.183478
delta logL = 0.623789584526

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  1.501e+01  4.334e+00  0.000e+00  1.000e+06 ( 1.000e-13)
472        Index:  2.485e+00  1.959e-01  0.000e+00  1.000e+01 (-1.000e+00)
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  1.005e+00  1.495e-02  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
678   Normalization:  1.050e+00  5.500e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.23
Ra Dec: 305.646 76.201
Photon Index (Free Index): 2.49 +/- 0.20
Photon Flux (Free Index): 6.32e-08 +/- 1.69e-08
Energy Flux (Free Index): 1.86e-05 +/- 3.94e-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/862609/cmap_HighResolution_688003201_690595201_4FGL_J2022.5+7612_monthly_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.98e-08', energy_flux2='1.86e-05', photon_flux_error='1.13e-08', dlogl='6.24e-01', energy_flux='1.98e-05', photon_flux2='6.32e-08', job_status='DONE', time_completed='2022-11-20 05:41:55.179148', photon_index_error2='0.20', photon_index2='2.49', ts='41.81', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='3.94e-06', EG='1.06', time_epoch_completed='1668951715.18', return_code='0', job_id='862609', GAL2='1.01', EG2='1.05', return_code2='0', energy_flux_error='4.52e-06', photon_flux_error2='1.69e-08', ts2='43.23', photon_index='2.27' WHERE bin_id='174' AND source_name='4FGL J2022.5+7612' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Nov 20 05:41:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 862609: <4FGL_J2022.5+7612_monthly_bin174> in cluster <slac> Done

Job <4FGL_J2022.5+7612_monthly_bin174> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Nov 20 02:25:26 2022
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 02:25:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 02:25:35 2022
Terminated at Sun Nov 20 05:41:56 2022
Results reported at Sun Nov 20 05:41:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.5+7612_monthly_bin174 305.646 76.2007 688003201 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2022.5+7612 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11731.00 sec.
    Max Memory :                                 1099 MB
    Average Memory :                             604.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11781 sec.
    Turnaround time :                            11790 sec.

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

