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


Performing analysis on: 4FGL_J1645.6+6329_monthly_bin113
RA = 251.405, Dec = 63.4958
tmin = 529891201, tmax = 532483201
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='18047', job_status='RUN', time_executed='2021-10-29 12:16:53.998289', time_epoch_executed='1635535014.0' WHERE source_name='4FGL J1645.6+6329' and cadence='monthly' and bin_id='113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18047

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18047/ft1_4FGL_J1645.6+6329_monthly_bin113.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18047/ft2_4FGL_J1645.6+6329_monthly_bin113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18047/ft1_4FGL_J1645.6+6329_monthly_bin113.fits outfile=/scratch/kocevski/18047/ft1_filteredMKT_4FGL_J1645.6+6329_monthly_bin113.fits ra=251.405 dec=63.4958 rad=12.0 tmin=529891201.0 tmax=532483201.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.01
user 25.71
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18047/ft2_4FGL_J1645.6+6329_monthly_bin113.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/18047/ft1_filteredMKT_4FGL_J1645.6+6329_monthly_bin113.fits evtable="EVENTS" outfile="/scratch/kocevski/18047/ft1_filtered_4FGL_J1645.6+6329_monthly_bin113.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.72
user 0.55
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18047/ft1_filtered_4FGL_J1645.6+6329_monthly_bin113.fits" evtable="EVENTS" scfile=/scratch/kocevski/18047/ft2_4FGL_J1645.6+6329_monthly_bin113.fits sctable="SC_DATA" outfile=/scratch/kocevski/18047/ltcube_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.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/18047/ft2_4FGL_J1645.6+6329_monthly_bin113.fits
.....................!
real 102.63
user 101.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18047/ft1_filtered_4FGL_J1645.6+6329_monthly_bin113.fits evtable="EVENTS" scfile=/scratch/kocevski/18047/ft2_4FGL_J1645.6+6329_monthly_bin113.fits sctable="SC_DATA" expcube=/scratch/kocevski/18047/ltcube_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.fits outfile=/scratch/kocevski/18047/expmap_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.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/18047/ltcube_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.fits
.....................!
real 157.38
user 151.20
sys 4.97

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/18047/ft1_filtered_4FGL_J1645.6+6329_monthly_bin113.fits scfile=/scratch/kocevski/18047/ft2_4FGL_J1645.6+6329_monthly_bin113.fits outfile=/scratch/kocevski/18047/cmap_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.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.69
user 0.51
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18047/ft1_filtered_4FGL_J1645.6+6329_monthly_bin113.fits scfile=/scratch/kocevski/18047/ft2_4FGL_J1645.6+6329_monthly_bin113.fits outfile=/scratch/kocevski/18047/cmap_HighResolution_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.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.70
user 0.53
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18047/ft1_filtered_4FGL_J1645.6+6329_monthly_bin113.fits', '/scratch/kocevski/18047/ft2_4FGL_J1645.6+6329_monthly_bin113.fits', expMap='/scratch/kocevski/18047/expmap_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.fits', expCube='/scratch/kocevski/18047/ltcube_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18047/Model_4FGL_J1645.6+6329_monthly_bin113.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/18047/ft1_filtered_4FGL_J1645.6+6329_monthly_bin113.fits
Spacecraft file(s): /scratch/kocevski/18047/ft2_4FGL_J1645.6+6329_monthly_bin113.fits
Exposure map: /scratch/kocevski/18047/expmap_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.fits
Exposure cube: /scratch/kocevski/18047/ltcube_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18047/Model_4FGL_J1645.6+6329_monthly_bin113.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) = 79943.9809543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7637       1.0000         .10000E-03   10000.    
     3 'norm      '    9.1567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7827       1.0000         .10000E-03   10000.    
     6 'norm      '    4.0826       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8839       1.0000         .10000E-03   10000.    
     8 'norm      '    13.482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4190       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9392       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4964       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5920       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .97991       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0676       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9347       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10810E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0146       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.286       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5425       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14479E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.7963       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .55621       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92975       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0293       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   79943.95     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3766 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7625        2.2843         .0000        .49236E-02
   2  Prefactor     5.7636        4.1558         .0000       -.77927E-03
   3  norm          9.1566        1.0526         .0000        .41524E-03
   4  Prefactor     .10000E-03    5.7382         .0000    ** at limit **
   5  Prefactor     2.7828        2.0062         .0000        .88061E-01
   6  norm          4.0823        2.2630         .0000        .79124E-01
   7  Prefactor     4.8840        7.1963         .0000        .64104E-02
   8  norm          13.482        4.5029         .0000       -.73255E-03
   9  Prefactor     22.408        18.425         .0000        .33862E-03
  10  Prefactor     4.4189        1.8403         .0000        .74131E-02
  11  Prefactor     4.9391        4.6687         .0000       -.34472E-03
  12  norm          1.4964        1.6450         .0000        .21024    
  13  Prefactor     1.5921        1.6976         .0000        .76666E-02
  14  Prefactor     .98071        3.3079         .0000        .59750E-02
  15  norm          1.0675        .21598         .0000        .45907E-02
  16  Prefactor     5.9345        2.2467         .0000        .49566E-01
  17  Prefactor     .10000E-03    1.9295         .0000    ** at limit **
  18  Prefactor     .10000E-03    .36888         .0000    ** at limit **
  19  Prefactor     3.0153        1.9369         .0000        .36583E-02
  20  Prefactor     .10000E-03    13.064         .0000    ** at limit **
  21  Prefactor     23.283        21.608         .0000        .15556E-02
  22  norm          1.5425        .55760         .0000        .35660E-02
  23  Prefactor     .10000E-03    .49918         .0000    ** at limit **
  24  norm          3.7962        1.0482         .0000        .47939E-03
  25  Prefactor     .10000E-03    .80795         .0000    ** at limit **
  26  Prefactor     .10000E-03    47.715         .0000    ** at limit **
  27  Prefactor     .55662        .74660         .0000        .59778E-02
  28  Normalizat    .92978        .53047E-01     .0000        .28303E-03
  29  Prefactor     1.0293        .43623E-01     .0000        .22155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.76249
  Prefactor  = 5.7636
  norm       = 9.1566
  Prefactor  = 0.0001
  Prefactor  = 2.78284
  norm       = 4.08227
  Prefactor  = 4.88403
  norm       = 13.4819
  Prefactor  = 22.408
  Prefactor  = 4.41889
  Prefactor  = 4.93912
  norm       = 1.49635
  Prefactor  = 1.59213
  Prefactor  = 0.980712
  norm       = 1.06749
  Prefactor  = 5.93454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.01534
  Prefactor  = 0.0001
  Prefactor  = 23.2829
  norm       = 1.54249
  Prefactor  = 0.0001
  norm       = 3.79624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.556619
  Normalizat = 0.929781
  Prefactor  = 1.02925
 **********
 **   18 **HESSE 
 **********

 FCN=   79943.95     FROM HESSE     STATUS=OK           567 CALLS     4333 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7625        2.2645        .31558E-03   -1.5442    
   2  Prefactor     5.7636        4.1482        .16730E-03   -1.5228    
   3  norm          9.1566        1.0529        .94726E-04   -1.5103    
   4  Prefactor     .10000E-03    5.7448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7828        1.9801        .12197E-02   -1.5374    
   6  norm          4.0823        2.2333        .99768E-03   -1.5304    
   7  Prefactor     4.8840        7.1754        .91005E-03   -1.5266    
   8  norm          13.482        4.5020        .10909E-03   -1.4973    
   9  Prefactor     22.408        18.426        .84615E-04   -1.4761    
  10  Prefactor     4.4189        1.8380        .19157E-03   -1.5288    
  11  Prefactor     4.9391        4.6655        .18097E-03   -1.5263    
  12  norm          1.4964        1.6289        .17511E-02   -1.5463    
  13  Prefactor     1.5921        1.6832        .33626E-03   -1.5456    
  14  Prefactor     .98071        3.3094        .52378E-03   -1.5510    
  15  norm          1.0675        .21053        .54436E-04   -1.5501    
  16  Prefactor     5.9345        2.2323        .82418E-03   -1.5221    
  17  Prefactor     .10000E-03    1.9687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5179        .32221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0153        1.9103        .23375E-03   -1.5361    
  20  Prefactor     .10000E-03    13.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.283        21.574        .83009E-04   -1.4743    
  22  norm          1.5425        .55330        .12084E-03   -1.5460    
  23  Prefactor     .10000E-03    2.5690        .38334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.7962        1.0396        .20717E-04   -1.5318    
  25  Prefactor     .10000E-03    .80956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    48.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .55662        1.3114        .26440E-02   -1.5559    
  28  Normalizat    .92978        .60495E-01    .26500E-03   -.95421    
  29  Prefactor     1.0293        .50510E-01    .21899E-03   -.91761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52321e-07
Minuit parameter uncertainties:
  1  2.26466
  2  4.14837
  3  1.05291
  4  1.20608e-05
  5  1.98012
  6  2.23338
  7  7.1767
  8  4.50208
  9  18.431
  10  1.83797
  11  4.66588
  12  1.62898
  13  1.68323
  14  3.31006
  15  0.210525
  16  2.23236
  17  2.95526e-07
  18  9.57204e-07
  19  1.91037
  20  5.62872e-05
  21  21.5812
  22  0.553306
  23  1.96434e-06
  24  1.03958
  25  2.03138e-06
  26  0.000171461
  27  1.31142
  28  0.0604998
  29  0.0505122
Done.

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

Extracting fit parameters...

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  1.496e+00  1.629e+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

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.029e+00  5.051e-02  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:  9.298e-01  6.050e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 251.405 63.496
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.13e-09 +/- 5.58e-09
Energy Flux (Fixed Index): 1.59e-06 +/- 1.73e-06

TS (Fixed Index): 1.16
Ra Dec: 251.405 63.496
Photon Flux Upper Limit: 1.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/18047/likelihoodResults_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.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) = 79943.8071975
delta logL = 0.141849377309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 79943.7982262
delta logL = 0.150820733688

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2710       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7056       1.0000          .0000       5.0000    
     3 'Normalizat'    .93360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0273       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=   79943.80     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      220 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2691        1.3069         .0000        .75755E-02
   2  alpha         1.7044        .63432         .0000       -.63287E-03
   3  Normalizat    .93358        .49566E-01     .0000        .20227E-03
   4  Prefactor     1.0273        .43060E-01     .0000        .86947E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26911
  alpha      = 1.70444
  Normalizat = 0.933576
  Prefactor  = 1.02731
 **********
 **   18 **HESSE 
 **********

 FCN=   79943.80     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2691        1.4016        .31830E-03   -1.5483    
   2  alpha         1.7044        .83662        .74438E-01   -.32385    
   3  Normalizat    .93358        .57072E-01    .26450E-03   -.95290    
   4  Prefactor     1.0273        .49616E-01    .21917E-03   -.91825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34617e-07
Minuit parameter uncertainties:
  1  1.4016
  2  0.855046
  3  0.0570762
  4  0.0496179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18047': 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) = 79943.798225
delta logL = 0.150821894567

Extracting fit parameters...

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  1.269e+00  1.402e+00  1.000e-04  1.000e+04 ( 1.000e-12)
353        alpha:  1.704e+00  8.550e-01  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.027e+00  4.962e-02  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:  9.336e-01  5.708e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 251.405 63.496
Photon Index (Free Index): 1.70 +/- 0.86
Photon Flux (Free Index): 2.65e-09 +/- 3.51e-09
Energy Flux (Free Index): 1.77e-06 +/- 1.95e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/18047/cmap_HighResolution_529891201_532483201_4FGL_J1645.6+6329_monthly_bin113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-06', comment='SUCCESS', photon_flux='5.13e-09', energy_flux2='1.77e-06', photon_flux_error='5.58e-09', dlogl='1.51e-01', energy_flux='1.59e-06', photon_flux2='2.65e-09', job_status='DONE', time_completed='2021-10-29 14:17:49.178536', photon_index_error2='0.86', photon_index2='1.70', ts='1.16', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.72e-08', energy_flux_error2='1.95e-06', EG='0.93', time_epoch_completed='1635542269.18', return_code='0', job_id='18047', GAL2='1.03', EG2='0.93', return_code2='0', energy_flux_error='1.73e-06', photon_flux_error2='3.51e-09', ts2='1.46', photon_index='2.38' WHERE bin_id='113' AND source_name='4FGL J1645.6+6329' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 29 14:17:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 18047: <4FGL_J1645.6+6329_monthly_bin113> in cluster <slac> Done

Job <4FGL_J1645.6+6329_monthly_bin113> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Oct 29 12:15:17 2021
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 29 12:16:40 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:40 2021
Terminated at Fri Oct 29 14:17:49 2021
Results reported at Fri Oct 29 14:17:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1645.6+6329_monthly_bin113 251.405 63.4958 529891201 532483201 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 :                                   7117.31 sec.
    Max Memory :                                 647 MB
    Average Memory :                             431.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2946 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   7269 sec.
    Turnaround time :                            7352 sec.

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

