/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 1 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 = 7418
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1653.8+3945_daily_bin341
RA = 253.474, Dec = 39.7595
tmin = 327715201, tmax = 327974401
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='132648', job_status='RUN', time_executed='2021-09-16 00:10:44.100153', time_epoch_executed='1631776244.1' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/132648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/132648/ft1_4FGL_J1653.8+3945_daily_bin341.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/132648/ft1_4FGL_J1653.8+3945_daily_bin341.fits outfile=/scratch/kocevski/132648/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin341.fits ra=253.474 dec=39.7595 rad=12.0 tmin=327715201.0 tmax=327974401.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 3.30
user 3.06
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.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/132648/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin341.fits evtable="EVENTS" outfile="/scratch/kocevski/132648/ft1_filtered_4FGL_J1653.8+3945_daily_bin341.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/132648/ft1_filtered_4FGL_J1653.8+3945_daily_bin341.fits" evtable="EVENTS" scfile=/scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits sctable="SC_DATA" outfile=/scratch/kocevski/132648/ltcube_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.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/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits
.....................!
real 14.12
user 13.70
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/132648/ft1_filtered_4FGL_J1653.8+3945_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits sctable="SC_DATA" expcube=/scratch/kocevski/132648/ltcube_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.fits outfile=/scratch/kocevski/132648/expmap_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.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/132648/ltcube_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.fits
.....................!
real 191.45
user 185.73
sys 5.12

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

Setting source of interest to:
4FGL J1653.8+3945 @ 253.474 39.7595

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/132648/ft1_filtered_4FGL_J1653.8+3945_daily_bin341.fits scfile=/scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits outfile=/scratch/kocevski/132648/cmap_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.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=253.474 yref=39.7595 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/132648/ft1_filtered_4FGL_J1653.8+3945_daily_bin341.fits scfile=/scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits outfile=/scratch/kocevski/132648/cmap_HighResolution_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.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=253.474 yref=39.7595 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.55
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/132648/ft1_filtered_4FGL_J1653.8+3945_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/132648/Model_4FGL_J1653.8+3945_daily_bin341.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/132648/ft1_filtered_4FGL_J1653.8+3945_daily_bin341.fits.....................!
real 67.12
user 65.71
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/132648/ft1_filtered_4FGL_J1653.8+3945_daily_bin341.fits', '/scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits', expMap='/scratch/kocevski/132648/expmap_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.fits', expCube='/scratch/kocevski/132648/ltcube_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/132648/Model_4FGL_J1653.8+3945_daily_bin341.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1653.8+3945'

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.183e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/132648/ft1_filtered_4FGL_J1653.8+3945_daily_bin341.fits
Spacecraft file(s): /scratch/kocevski/132648/ft2_4FGL_J1653.8+3945_daily_bin341.fits
Exposure map: /scratch/kocevski/132648/expmap_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.fits
Exposure cube: /scratch/kocevski/132648/ltcube_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/132648/Model_4FGL_J1653.8+3945_daily_bin341.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) = 8287.10877961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3480       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1409       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2106       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4018       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11471E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.6022       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4136       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10402E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .28853       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31311E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3013       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11114E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    173.34       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2233       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8287.052     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     2826 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5757        .61423E-08** at limit **
   2  Prefactor     .10000E-03    1.5592        .21657E-06** at limit **
   3  Prefactor     .10001E-03    8.9958       -.14378E-04** at limit **
   4  Prefactor     .10000E-03    1.8384       -.36769E-08** at limit **
   5  norm          2.3478        .28450       -.28407E-07   -.47905E-02
   6  norm          .10000E-03    4.3290       -.11795E-06** at limit **
   7  Prefactor     16.803        1.1453        .23849E-06   -.52950E-03
   8  Prefactor     3.1408        2.8207       -.17365E-05   -.56070E-03
   9  norm          .10000E-03    11.999        .11998E-04** at limit **
  10  Prefactor     4.2113        2.1669       -.12790E-08   -.49632E-03
  11  Prefactor     1.4020        1.8227        .43686E-07   -.16686E-03
  12  Prefactor     .10000E-03    2.9264        .61035E-07** at limit **
  13  Prefactor     .10000E-03    1.8885       -.14195E-06** at limit **
  14  norm          4.6024        1.9090       -.30618E-07    .67063E-04
  15  norm          1.4138        .84743       -.81488E-09   -.10739E-02
  16  Prefactor     .10000E-03    6.4770       -.78629E-06** at limit **
  17  norm          .10000E-03    .53190        .47308E-07** at limit **
  18  norm          .10000E-03    30.255        .12055E-04** at limit **
  19  norm          .28929        1.3174       -.74969E-07    .22185E-03
  20  Prefactor     .10149E-03    2.4081        .34633E-05** at limit **
  21  norm          3.3004        2.0906        .40585E-05    .43820E-02
  22  Prefactor     .10000E-03    105.19       -.12729E-04** at limit **
  23  Prefactor     173.33        2.0701       -.39413E-06    .10088E-01
  24  Prefactor     .10000E-03    20.703       -.12273E-04** at limit **
  25  Prefactor     .10000E-03    8.3256        .79848E-05** at limit **
  26  Normalizat    1.2235        .22861        .87649E-06    .63022E-04
  27  Prefactor     .79880        .17163       -.99964E-06    .61394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 2.34778
  norm       = 0.0001
  Prefactor  = 16.8029
  Prefactor  = 3.14079
  norm       = 0.000100003
  Prefactor  = 4.21128
  Prefactor  = 1.40196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.60238
  norm       = 1.41377
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.289292
  Prefactor  = 0.000101487
  norm       = 3.30039
  Prefactor  = 0.000100003
  Prefactor  = 173.329
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Normalizat = 1.22349
  Prefactor  = 0.798804
 **********
 **   18 **HESSE 
 **********

 FCN=   8287.052     FROM HESSE     STATUS=OK           566 CALLS     3392 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5438        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5545        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    9.7742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7659        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3478        .31692        .34394E-02   -1.5402    
   6  norm          .10000E-03    4.3299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.803        28.038        .24430E-02   -1.4888    
   8  Prefactor     3.1408        2.8331        .57184E-02   -1.5354    
   9  norm          .10000E-03    12.371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2113        2.2018        .49097E-02   -1.5298    
  11  Prefactor     1.4020        1.8970        .91598E-02   -1.5471    
  12  Prefactor     .10000E-03    1.3817        .37312E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0697        .36656E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6024        1.9172        .46906E-02   -1.5279    
  15  norm          1.4138        .86197        .91055E-02   -1.5470    
  16  Prefactor     .10000E-03    6.3127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .30937        .19955E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.2294        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .28929        .96176        .29120E-01   -1.5600    
  20  Prefactor     .10149E-03    97.877        .10686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3004        4.5691        .55706E-02   -1.5345    
  22  Prefactor     .10000E-03    106.67        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     173.33        136.68        .76622E-03   -1.3067    
  24  Prefactor     .10000E-03    21.009        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.4925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2235        .19276        .62537E-01   -.85880    
  27  Prefactor     .79880        .14295        .43702E-01   -.99772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15733e-06
Minuit parameter uncertainties:
  1  3.39625e-05
  2  2.14438e-05
  3  0.00061392
  4  1.81966e-05
  5  0.316923
  6  3.65552e-05
  7  28.0599
  8  2.83321
  9  0.000367784
  10  2.2018
  11  1.8971
  12  2.11034e-06
  13  3.70725e-06
  14  1.91724
  15  0.861979
  16  3.02073e-06
  17  2.54718e-06
  18  7.97335e-05
  19  0.961812
  20  0.0241687
  21  4.56959
  22  0.00113934
  23  136.93
  24  0.000253076
  25  0.000288815
  26  0.192869
  27  0.143017
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.602e+00  1.917e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  7.988e-01  1.430e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.223e+00  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.05
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 6.17e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 8.89e-05 +/- 3.70e-05

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) = 8287.03954522
delta logL = 0.0125739504292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8287.03887115
delta logL = 0.0132480289394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5459       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6659       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8287.039     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      193 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5459        4.2434        .47203E-02    .55093E-02
   2  alpha         1.6658        .62313        .27997       -.56379E-05
   3  Normalizat    1.2273        .18780        .62473E-01    .14357E-04
   4  Prefactor     .79774        .14232        .43688E-01    .17163E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.54587
  alpha      = 1.66582
  Normalizat = 1.22727
  Prefactor  = 0.797744
 **********
 **   18 **HESSE 
 **********

 FCN=   8287.039     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5459        1.9455        .78888E-04   -1.5282    
   2  alpha         1.6658        .33935        .10434E-01   -.34020    
   3  Normalizat    1.2273        .22082        .27633E-03   -.85764    
   4  Prefactor     .79774        .17026        .25822E-03   -.99812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.522e-09
Minuit parameter uncertainties:
  1  1.94555
  2  0.340537
  3  0.220992
  4  0.170373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/132648': 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) = 8287.03887111
delta logL = 0.0132480616085

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.546e+00  1.946e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.666e+00  3.405e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  7.977e-01  1.704e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.227e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.12
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.67 +/- 0.34
Photon Flux (Free Index): 5.67e-08 +/- 3.77e-08
Energy Flux (Free Index): 9.66e-05 +/- 6.51e-05

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/132648/cmap_HighResolution_327715201_327974401_4FGL_J1653.8+3945_daily_bin341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.17e-08', energy_flux2='9.66e-05', photon_flux_error='2.57e-08', dlogl='1.32e-02', energy_flux='8.89e-05', photon_flux2='5.67e-08', job_status='DONE', time_completed='2021-09-16 00:25:06.267247', photon_index_error2='0.34', photon_index2='1.67', ts='34.05', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='6.51e-05', EG='1.22', time_epoch_completed='1631777106.27', return_code='0', job_id='132648', GAL2='0.80', EG2='1.23', return_code2='0', energy_flux_error='3.70e-05', photon_flux_error2='3.77e-08', ts2='34.12', photon_index='1.72' WHERE bin_id='341' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:25:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 132648: <4FGL_J1653.8+3945_daily_bin341> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin341> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 16 00:10:20 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:10:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 00:10:34 2021
Terminated at Thu Sep 16 00:25:07 2021
Results reported at Thu Sep 16 00:25:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin341 253.474 39.7595 327715201 327974401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1653.8+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   859.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             347.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            887 sec.

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

