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 34 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_J1324.9+4748_monthly_bin169
RA = 201.24, Dec = 47.8086
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='168680', job_status='RUN', time_executed='2022-06-23 02:27:06.528295', time_epoch_executed='1655976426.53' WHERE source_name='4FGL J1324.9+4748' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168680

Creating custom pfile directory:
/scratch/kocevski/168680/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/168680/ft1_4FGL_J1324.9+4748_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/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168680/ft1_4FGL_J1324.9+4748_monthly_bin169.fits outfile=/scratch/kocevski/168680/ft1_filteredMKT_4FGL_J1324.9+4748_monthly_bin169.fits ra=201.24 dec=47.8086 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.75
user 27.00
sys 0.65

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168680/ft2_4FGL_J1324.9+4748_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/168680/ft1_filteredMKT_4FGL_J1324.9+4748_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/168680/ft1_filtered_4FGL_J1324.9+4748_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.86
user 0.67
sys 0.18

Number of photons that the gtmktime cut: 8037

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168680/ft1_filtered_4FGL_J1324.9+4748_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/168680/ltcube_675043201_677635201_4FGL_J1324.9+4748_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/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits
.....................!
real 143.75
user 143.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168680/ft1_filtered_4FGL_J1324.9+4748_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/168680/ltcube_675043201_677635201_4FGL_J1324.9+4748_monthly_bin169.fits outfile=/scratch/kocevski/168680/expmap_675043201_677635201_4FGL_J1324.9+4748_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/168680/ltcube_675043201_677635201_4FGL_J1324.9+4748_monthly_bin169.fits
.....................!
real 194.49
user 187.94
sys 5.95

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
Added 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1324.9+4748 @ 201.24 47.8086

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/168680/ft1_filtered_4FGL_J1324.9+4748_monthly_bin169.fits scfile=/scratch/kocevski/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits outfile=/scratch/kocevski/168680/cmap_675043201_677635201_4FGL_J1324.9+4748_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=201.24 yref=47.8086 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168680/ft1_filtered_4FGL_J1324.9+4748_monthly_bin169.fits scfile=/scratch/kocevski/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits outfile=/scratch/kocevski/168680/cmap_HighResolution_675043201_677635201_4FGL_J1324.9+4748_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=201.24 yref=47.8086 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.64
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/168680/ft1_filtered_4FGL_J1324.9+4748_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/168680/Model_4FGL_J1324.9+4748_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
Working on...
/scratch/kocevski/168680/ft1_filtered_4FGL_J1324.9+4748_monthly_bin169.fits.....................!
real 558.89
user 556.26
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/168680/ft1_filtered_4FGL_J1324.9+4748_monthly_bin169.fits', '/scratch/kocevski/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits', expMap='/scratch/kocevski/168680/expmap_675043201_677635201_4FGL_J1324.9+4748_monthly_bin169.fits', expCube='/scratch/kocevski/168680/ltcube_675043201_677635201_4FGL_J1324.9+4748_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/168680/Model_4FGL_J1324.9+4748_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1324.9+4748'

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  9.462e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.674e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/168680/ft1_filtered_4FGL_J1324.9+4748_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/168680/ft2_4FGL_J1324.9+4748_monthly_bin169.fits
Exposure map: /scratch/kocevski/168680/expmap_675043201_677635201_4FGL_J1324.9+4748_monthly_bin169.fits
Exposure cube: /scratch/kocevski/168680/ltcube_675043201_677635201_4FGL_J1324.9+4748_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/168680/Model_4FGL_J1324.9+4748_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) = 87313.2976524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96506       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0517       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .93082       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5017       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7763       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1317       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40001       1.0000         .10000E-03   10000.    
    10 'norm      '    7.8020       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4456       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93988       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2166       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2895       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .86607E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11934E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .43061       1.0000         .10000E-03   10000.    
    20 'norm      '    13.297       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0716       1.0000         .10000E-03   10000.    
    22 'norm      '    .10750E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    77.790       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.5647       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .61772       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6794       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.6831       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .56525E-02   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94020       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87313.11     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     3712 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96487        1.2285         .0000        .13876E-01
   2  Prefactor     7.0527        4.4716         .0000        .23566E-02
   3  Prefactor     .93085        .81237         .0000        .44048E-02
   4  norm          4.5017        .73917         .0000       -.57063E-03
   5  Prefactor     .10000E-03    1.3214         .0000    ** at limit **
   6  norm          1.9107        .44353         .0000        .27136E-02
   7  Prefactor     2.7764        4.9879         .0000        .12045E-01
   8  Prefactor     1.1320        1.4649         .0000        .11950E-01
   9  Prefactor     .40004        .89027         .0000        .88784E-02
  10  norm          7.8021        2.8094         .0000        .27684E-02
  11  norm          1.4457        .65162         .0000        .47754E-02
  12  Prefactor     .93768        3.6317         .0000        .99830E-01
  13  Prefactor     9.4835        4.0304         .0000        .11460E-01
  14  Prefactor     7.2206        6.6750         .0000        .35622E-02
  15  norm          2.2895        .89803         .0000        .43859E-02
  16  Prefactor     8.1533        10.747         .0000        .43476E-03
  17  Prefactor     .10484E-03    3.5160         .0000    ** at limit **
  18  Prefactor     .10002E-03    1.8318         .0000    ** at limit **
  19  norm          .43053        .26918         .0000        .15202E-01
  20  norm          13.296        9.3617         .0000        .34510E-04
  21  norm          1.0718        .84678         .0000        .14591E-01
  22  norm          .10000E-03    .57216         .0000    ** at limit **
  23  Prefactor     77.792        13.524         .0000        .51185E-03
  24  Prefactor     7.5634        7.4736         .0000        .37944E-03
  25  Prefactor     .61860        .64841         .0000        .99661E-02
  26  Prefactor     3.6791        3.3830         .0000        .53990E-02
  27  Prefactor     2.6832        .61622         .0000        .27688E-02
  28  Prefactor     .10000E-03    3.1498         .0000    ** at limit **
  29  Prefactor     .10672E-03    2.2545         .0000    ** at limit **
  30  Normalizat    1.0930        .43933E-01     .0000        .84930E-03
  31  Prefactor     .94019        .52699E-01     .0000        .65099E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.964869
  Prefactor  = 7.05273
  Prefactor  = 0.930846
  norm       = 4.50166
  Prefactor  = 0.0001
  norm       = 1.91065
  Prefactor  = 2.7764
  Prefactor  = 1.132
  Prefactor  = 0.400038
  norm       = 7.80215
  norm       = 1.44575
  Prefactor  = 0.937675
  Prefactor  = 9.4835
  Prefactor  = 7.22058
  norm       = 2.28945
  Prefactor  = 8.15331
  Prefactor  = 0.000104842
  Prefactor  = 0.000100017
  norm       = 0.430531
  norm       = 13.2964
  norm       = 1.07182
  norm       = 0.0001
  Prefactor  = 77.792
  Prefactor  = 7.56342
  Prefactor  = 0.618595
  Prefactor  = 3.67908
  Prefactor  = 2.68315
  Prefactor  = 0.0001
  Prefactor  = 0.000106717
  Normalizat = 1.09303
  Prefactor  = 0.940192
 **********
 **   18 **HESSE 
 **********

 FCN=   87313.11     FROM HESSE     STATUS=OK           672 CALLS     4384 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96487        1.1762        .33874E-03   -1.5512    
   2  Prefactor     7.0527        4.3805        .15107E-03   -1.5177    
   3  Prefactor     .93085        .80038        .23676E-03   -1.5515    
   4  norm          4.5017        .73390        .97442E-04   -1.5284    
   5  Prefactor     .10000E-03    1.3357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9107        .44246        .91876E-04   -1.5432    
   7  Prefactor     2.7764        4.9706        .12212E-02   -1.5375    
   8  Prefactor     1.1320        1.4357        .38969E-03   -1.5495    
   9  Prefactor     .40004        1.4179        .40293E-02   -1.5581    
  10  norm          7.8021        2.8086        .14356E-03   -1.5149    
  11  norm          1.4457        .64670        .15442E-03   -1.5467    
  12  Prefactor     .93768        3.5201        .25903E-02   -1.5514    
  13  Prefactor     9.4835        4.0041        .65069E-03   -1.5092    
  14  Prefactor     7.2206        6.5537        .14932E-03   -1.5170    
  15  norm          2.2895        .88851        .15790E-03   -1.5405    
  16  Prefactor     8.1533        10.716        .14041E-03   -1.5137    
  17  Prefactor     .10484E-03    3.3448        .16768       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    1.9442        .12506       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .43053        .23738        .11389E-02   -1.5577    
  20  norm          13.296        9.3552        .10985E-03   -1.4979    
  21  norm          1.0718        .82921        .22703E-03   -1.5501    
  22  norm          .10000E-03    2.9929        .43117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     77.792        13.497        .45530E-04   -1.3942    
  24  Prefactor     7.5634        7.3624        .14581E-03   -1.5158    
  25  Prefactor     .61860        .63271        .22843E-03   -1.5551    
  26  Prefactor     3.6791        3.3567        .21056E-03   -1.5324    
  27  Prefactor     2.6832        .61327        .10530E-03   -1.5380    
  28  Prefactor     .10000E-03    3.1880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10672E-03    2.2925        .15939       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0930        .50575E-01    .21122E-03   -.89976    
  31  Prefactor     .94019        .60959E-01    .28407E-03   -.94750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77051e-08
Minuit parameter uncertainties:
  1  1.17628
  2  4.38072
  3  0.80039
  4  0.733901
  5  2.05161e-06
  6  0.442458
  7  4.97131
  8  1.43578
  9  1.41799
  10  2.80862
  11  0.646705
  12  3.52084
  13  4.00418
  14  6.55436
  15  0.888517
  16  10.7188
  17  0.00804876
  18  0.000358588
  19  0.237384
  20  9.35619
  21  0.829217
  22  2.36953e-05
  23  13.4972
  24  7.36327
  25  0.632721
  26  3.35689
  27  0.613273
  28  7.29506e-06
  29  0.00784823
  30  0.0505768
  31  0.0609635
Done.

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

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  9.377e-01  3.521e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.674e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.402e-01  6.096e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.093e+00  5.058e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 201.240 47.809
Photon Flux Upper Limit: 1.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.37e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168680/likelihoodResults_675043201_677635201_4FGL_J1324.9+4748_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) = 87312.7863392
delta logL = 0.328071994561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 87312.7427352
delta logL = 0.371675976188

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   87312.74     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      263 TOTAL
                     EDM=   .88E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9048        12.850         .0000        .16982E-01
   2  Index         1.7169        1.1989         .0000       -.34910E-03
   3  Normalizat    1.0942        .41939E-01     .0000        .68444E-04
   4  Prefactor     .93874        .52849E-01     .0000        .19159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90479
  Index      = 1.7169
  Normalizat = 1.09416
  Prefactor  = 0.938736
 **********
 **   18 **HESSE 
 **********

 FCN=   87312.74     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9048        3.1311        .15058E-02   -1.5432    
   2  Index         1.7169        .79793        .26951E-01   -.71633    
   3  Normalizat    1.0942        .47855E-01    .21112E-03   -.89939    
   4  Prefactor     .93874        .60460E-01    .28425E-03   -.94800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81115e-10
Minuit parameter uncertainties:
  1  3.13142
  2  0.804008
  3  0.0478564
  4  0.0604641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168680': 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) = 87312.7427343
delta logL = 0.371676872033

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  1.905e+00  3.131e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.717e+00  8.040e-01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.387e-01  6.046e-02  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.094e+00  4.786e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 201.240 47.809

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/168680/cmap_HighResolution_675043201_677635201_4FGL_J1324.9+4748_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.37e-04', job_status='DONE', photon_flux_upper_limit='1.19e-08', time_completed='2022-06-23 05:10:43.374924', job_id='168680', GAL2='0.94', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1655986243.37', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.72e-01', ts2='0.83', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='169' AND source_name='4FGL J1324.9+4748' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:10:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 168680: <4FGL_J1324.9+4748_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1324.9+4748_monthly_bin169> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Jun 23 01:45:27 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:26:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:26:23 2022
Terminated at Thu Jun 23 05:10:44 2022
Results reported at Thu Jun 23 05:10:44 2022

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   9764.00 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             434.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9863 sec.
    Turnaround time :                            12317 sec.

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

