/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 5 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 = 27232
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1645.6+6329_monthly_bin118
RA = 251.405, Dec = 63.4958
tmin = 542851201, tmax = 545443201
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='18054', job_status='RUN', time_executed='2021-10-29 12:17:11.981813', time_epoch_executed='1635535031.98' WHERE source_name='4FGL J1645.6+6329' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18054

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18054/ft1_4FGL_J1645.6+6329_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18054/ft1_4FGL_J1645.6+6329_monthly_bin118.fits outfile=/scratch/kocevski/18054/ft1_filteredMKT_4FGL_J1645.6+6329_monthly_bin118.fits ra=251.405 dec=63.4958 rad=12.0 tmin=542851201.0 tmax=545443201.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 20.29
user 18.06
sys 1.03

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.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/18054/ft1_filteredMKT_4FGL_J1645.6+6329_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/18054/ft1_filtered_4FGL_J1645.6+6329_monthly_bin118.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 6.98
user 0.44
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18054/ft1_filtered_4FGL_J1645.6+6329_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/18054/ltcube_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.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/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits
.....................!
real 43.20
user 42.16
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18054/ft1_filtered_4FGL_J1645.6+6329_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/18054/ltcube_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.fits outfile=/scratch/kocevski/18054/expmap_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.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/18054/ltcube_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.fits
.....................!
real 191.64
user 186.33
sys 4.32

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

Setting source of interest to:
4FGL J1645.6+6329 @ 251.405 63.4958

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/18054/ft1_filtered_4FGL_J1645.6+6329_monthly_bin118.fits scfile=/scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits outfile=/scratch/kocevski/18054/cmap_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.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=251.405 yref=63.4958 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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18054/ft1_filtered_4FGL_J1645.6+6329_monthly_bin118.fits scfile=/scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits outfile=/scratch/kocevski/18054/cmap_HighResolution_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.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=251.405 yref=63.4958 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.63
user 0.46
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/18054/ft1_filtered_4FGL_J1645.6+6329_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/18054/Model_4FGL_J1645.6+6329_monthly_bin118.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/18054/ft1_filtered_4FGL_J1645.6+6329_monthly_bin118.fits.........................!
real 17.35
user 16.14
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18054/ft1_filtered_4FGL_J1645.6+6329_monthly_bin118.fits', '/scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits', expMap='/scratch/kocevski/18054/expmap_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.fits', expCube='/scratch/kocevski/18054/ltcube_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18054/Model_4FGL_J1645.6+6329_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1645.6+6329'

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  3.385e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
353        alpha:  2.382e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
354         beta:  1.788e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  5.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/18054/ft1_filtered_4FGL_J1645.6+6329_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/18054/ft2_4FGL_J1645.6+6329_monthly_bin118.fits
Exposure map: /scratch/kocevski/18054/expmap_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.fits
Exposure cube: /scratch/kocevski/18054/ltcube_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18054/Model_4FGL_J1645.6+6329_monthly_bin118.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) = 534.407120549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    104.90       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    85.422       1.0000         .10000E-03   10000.    
     8 'norm      '    .10439E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.710       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.812       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    615.49       1.0000         .10000E-03   10000.    
    21 'Prefactor '    605.60       1.0000         .10000E-03   10000.    
    22 'norm      '    .11325E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.984       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .20137       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99763       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   534.3251     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     4283 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    607.74       -.14486E-04** at limit **
   2  Prefactor     .10000E-03    94.223       -.49172E-06** at limit **
   3  norm          17.360        16.255       -.25281E-06   -.59915E-04
   4  Prefactor     105.01        360.67       -.56042E-05   -.71340E-05
   5  Prefactor     .10000E-03    20.283       -.75859E-07** at limit **
   6  norm          .10000E-03    23.046       -.27446E-08** at limit **
   7  Prefactor     85.433        124.34        .16773E-06   -.11664E-04
   8  norm          .10000E-03    32.036       -.86946E-07** at limit **
   9  Prefactor     31.394        6995.4        .11799E-04   -.20748E-05
  10  Prefactor     .10000E-03    12.969        .33232E-07** at limit **
  11  Prefactor     .10000E-03    64.352        .10109E-06** at limit **
  12  norm          12.492        23.981       -.22327E-06   -.33902E-04
  13  Prefactor     .10000E-03    22.167       -.15618E-06** at limit **
  14  Prefactor     54.849        84.885       -.24746E-06   -.31202E-04
  15  norm          .10000E-03    1.1587        .36063E-08** at limit **
  16  Prefactor     .10000E-03    10.506       -.58726E-07** at limit **
  17  Prefactor     .10000E-03    55.131       -.67313E-07** at limit **
  18  Prefactor     .10000E-03    30.932       -.19238E-05** at limit **
  19  Prefactor     .10000E-03    46.472       -.18833E-05** at limit **
  20  Prefactor     615.28        443.06        .46544E-06   -.33394E-04
  21  Prefactor     605.55        529.73       -.95938E-06   -.19817E-04
  22  norm          .10050E-03    18.551        .18335E-05** at limit **
  23  Prefactor     42.989        42.642       -.22382E-06   -.39855E-04
  24  norm          .10000E-03    16.059       -.91388E-07** at limit **
  25  Prefactor     .10000E-03    52.118       -.23336E-07** at limit **
  26  Prefactor     .10000E-03    302.19        .54818E-06** at limit **
  27  Prefactor     .10000E-03    10.879       -.39915E-07** at limit **
  28  Normalizat    .20148        .58283        .29554E-04   -.54112E-05
  29  Prefactor     .99745        .52146       -.13708E-04   -.53754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.3598
  Prefactor  = 105.013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 85.4326
  norm       = 0.0001
  Prefactor  = 31.394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4925
  Prefactor  = 0.0001
  Prefactor  = 54.8487
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 615.284
  Prefactor  = 605.55
  norm       = 0.000100497
  Prefactor  = 42.9893
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.201483
  Prefactor  = 0.997454
 **********
 **   18 **HESSE 
 **********

 FCN=   534.3251     FROM HESSE     STATUS=OK           535 CALLS     4818 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    613.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    94.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.360        16.260        .80159E-04   -1.4874    
   4  Prefactor     105.01        359.33        .19631E-03   -1.3655    
   5  Prefactor     .10000E-03    20.299        .10174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    23.079        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     85.433        124.10        .21733E-03   -1.3857    
   8  norm          .10000E-03    32.040        .12790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.394        6973.0        .36150E-03   -1.4587    
  10  Prefactor     .10000E-03    12.977        .81329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    64.355        .18137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.492        23.948        .11333E-03   -1.5001    
  13  Prefactor     .10000E-03    22.180        .10637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     54.849        84.298        .54180E-04   -1.4225    
  15  norm          .10000E-03    1.1595        .24304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.507        .73214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.190        .16781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.894        .12539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    46.458        .15388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     615.28        442.45        .83217E-04   -1.0695    
  21  Prefactor     605.55        528.73        .83850E-04   -1.0735    
  22  norm          .10050E-03    127.14        .18203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     42.989        42.569        .61146E-04   -1.4396    
  24  norm          .10000E-03    16.090        .90451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    52.124        .16319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    302.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.881        .74499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .20148        .57519        .45833E-03   -1.2930    
  29  Prefactor     .99745        .52503        .18884E-03   -.92814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97205e-09
Minuit parameter uncertainties:
  1  0.000952262
  2  0.000151678
  3  16.2642
  4  367.226
  5  1.8933e-05
  6  2.61998e-05
  7  124.478
  8  2.91367e-05
  9  826.23
  10  1.90492e-05
  11  4.12206e-05
  12  23.9667
  13  1.46398e-05
  14  84.4826
  15  9.3254e-07
  16  6.7162e-06
  17  4.81607e-07
  18  5.44116e-06
  19  9.33035e-05
  20  444.987
  21  533.157
  22  0.0159257
  23  42.5993
  24  3.09211e-05
  25  3.22268e-05
  26  0.000999963
  27  9.65394e-06
  28  0.593591
  29  0.527753
Done.

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

Extracting fit parameters...

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  1.249e+01  2.397e+01  1.000e-04  1.000e+04 ( 1.000e-12)
353        alpha:  2.382e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
354         beta:  1.788e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  5.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  9.975e-01  5.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  2.015e-01  5.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 251.405 63.496
Photon Flux Upper Limit: 3.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18054/likelihoodResults_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.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) = 534.22455213
delta logL = 0.100540999391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 534.22342338
delta logL = 0.101669749247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3055       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3937       1.0000          .0000       5.0000    
     3 'Normalizat'    .18174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0068       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+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=   534.2234     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      269 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2997        18.889        .92168E-04    .18613E-02
   2  alpha         3.3928        3.7569        .12877E-02    .13243E-03
   3  Normalizat    .18183        .54363        .48095E-03   -.37250E-04
   4  Prefactor     1.0069        .50118        .18776E-03   -.13240E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.2997
  alpha      = 3.39276
  Normalizat = 0.181834
  Prefactor  = 1.00686
 **********
 **   18 **HESSE 
 **********

 FCN=   534.2234     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2997        18.685        .18434E-04   -1.5206    
   2  alpha         3.3928        3.7458        .25754E-03    .36517    
   3  Normalizat    .18183        .54319        .19238E-04   -1.3077    
   4  Prefactor     1.0069        .50074        .37552E-04   -.92501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75323e-09
Minuit parameter uncertainties:
  1  18.7022
  2  2.47297
  3  0.560411
  4  0.503084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18054': 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) = 534.223422492
delta logL = 0.101670636743

Extracting fit parameters...

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  6.300e+00  1.870e+01  1.000e-04  1.000e+04 ( 1.000e-12)
353        alpha:  3.393e+00  2.473e+00  0.000e+00  5.000e+00 ( 1.000e+00)
354         beta:  1.788e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  5.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.007e+00  5.031e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  1.818e-01  5.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
Ra Dec: 251.405 63.496

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/18054/cmap_HighResolution_542851201_545443201_4FGL_J1645.6+6329_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-04', job_status='DONE', photon_flux_upper_limit='3.46e-07', time_completed='2021-10-29 12:27:59.534485', job_id='18054', GAL2='1.01', fit_tolerance='1e-08', EG2='0.18', EG='0.20', time_epoch_completed='1635535679.53', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.02e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='118' AND source_name='4FGL J1645.6+6329' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 29 12:27:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 18054: <4FGL_J1645.6+6329_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1645.6+6329_monthly_bin118> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Oct 29 12:15:18 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 29 12:16:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 29 12:16:57 2021
Terminated at Fri Oct 29 12:28:00 2021
Results reported at Fri Oct 29 12:28:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1645.6+6329_monthly_bin118 251.405 63.4958 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1645.6+6329 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   523.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             251.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            762 sec.

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

