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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin532
RA = 253.474, Dec = 39.7595
tmin = 377222401, tmax = 377481601
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='134043', job_status='RUN', time_executed='2021-09-16 00:16:05.153739', time_epoch_executed='1631776565.15' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/134043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/134043/ft1_4FGL_J1653.8+3945_daily_bin532.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/134043/ft2_4FGL_J1653.8+3945_daily_bin532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/134043/ft1_4FGL_J1653.8+3945_daily_bin532.fits outfile=/scratch/kocevski/134043/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin532.fits ra=253.474 dec=39.7595 rad=12.0 tmin=377222401.0 tmax=377481601.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.44
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/134043/ft1_filtered_4FGL_J1653.8+3945_daily_bin532.fits" evtable="EVENTS" scfile=/scratch/kocevski/134043/ft2_4FGL_J1653.8+3945_daily_bin532.fits sctable="SC_DATA" outfile=/scratch/kocevski/134043/ltcube_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.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/134043/ft2_4FGL_J1653.8+3945_daily_bin532.fits
.....................!
real 12.82
user 12.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/134043/ft1_filtered_4FGL_J1653.8+3945_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/134043/ft2_4FGL_J1653.8+3945_daily_bin532.fits sctable="SC_DATA" expcube=/scratch/kocevski/134043/ltcube_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.fits outfile=/scratch/kocevski/134043/expmap_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.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/134043/ltcube_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.fits
.....................!
real 192.18
user 187.53
sys 4.27

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/134043/ft1_filtered_4FGL_J1653.8+3945_daily_bin532.fits scfile=/scratch/kocevski/134043/ft2_4FGL_J1653.8+3945_daily_bin532.fits outfile=/scratch/kocevski/134043/cmap_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.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/134043/ft1_filtered_4FGL_J1653.8+3945_daily_bin532.fits scfile=/scratch/kocevski/134043/ft2_4FGL_J1653.8+3945_daily_bin532.fits outfile=/scratch/kocevski/134043/cmap_HighResolution_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.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.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/134043/ft1_filtered_4FGL_J1653.8+3945_daily_bin532.fits', '/scratch/kocevski/134043/ft2_4FGL_J1653.8+3945_daily_bin532.fits', expMap='/scratch/kocevski/134043/expmap_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.fits', expCube='/scratch/kocevski/134043/ltcube_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/134043/Model_4FGL_J1653.8+3945_daily_bin532.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/134043/ft1_filtered_4FGL_J1653.8+3945_daily_bin532.fits
Spacecraft file(s): /scratch/kocevski/134043/ft2_4FGL_J1653.8+3945_daily_bin532.fits
Exposure map: /scratch/kocevski/134043/expmap_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.fits
Exposure cube: /scratch/kocevski/134043/ltcube_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/134043/Model_4FGL_J1653.8+3945_daily_bin532.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) = 6683.94890534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9021       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8139       1.0000         .10000E-03   10000.    
     6 'norm      '    6.7390       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8372       1.0000         .10000E-03   10000.    
     9 'norm      '    26.586       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .92370       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13937E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9097       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7382       1.0000         .10000E-03   10000.    
    15 'norm      '    6.8741       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    114.21       1.0000         .10000E-03   10000.    
    21 'norm      '    10.260       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.605       1.0000         .10000E-03   10000.    
    23 'Prefactor '    151.81       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3718       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96402       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .76472       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6683.933     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3308 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9018        2.7805       -.52156E-06   -.87848E-04
   2  Prefactor     .10000E-03    2.5690       -.13555E-05** at limit **
   3  Prefactor     23.108        23.333       -.85547E-05    .10181E-03
   4  Prefactor     .10000E-03    2.7233        .14587E-05** at limit **
   5  norm          1.8139        .25872       -.67681E-07    .29005E-02
   6  norm          6.7388        11.349       -.13573E-05   -.44096E-04
   7  Prefactor     .10000E-03    6.3781       -.41977E-07** at limit **
   8  Prefactor     1.8371        3.7390       -.15698E-05   -.82990E-03
   9  norm          26.589        36.313        .43706E-05    .11427E-04
  10  Prefactor     .92665        1.5946       -.79768E-06   -.19426E-02
  11  Prefactor     .10000E-03    .86792       -.13166E-07** at limit **
  12  Prefactor     8.9093        3.9559       -.27847E-06    .72110E-04
  13  Prefactor     .10000E-03    1.1321       -.28728E-06** at limit **
  14  norm          4.7386        1.8365       -.81708E-07    .28761E-03
  15  norm          6.8739        1.5406       -.21591E-06    .39356E-03
  16  Prefactor     .10000E-03    1.7871       -.12921E-06** at limit **
  17  norm          .10000E-03    .21372        .58242E-07** at limit **
  18  norm          .10000E-03    3.0515       -.10473E-06** at limit **
  19  norm          .10000E-03    .62665        .26269E-06** at limit **
  20  Prefactor     114.20        62.856       -.40408E-05    .35484E-04
  21  norm          10.264        6.7903        .16842E-04    .96749E-04
  22  Prefactor     39.453        74.655       -.22583E-03    .66723E-05
  23  Prefactor     151.81        113.05        .83329E-06    .96274E-05
  24  Prefactor     .10000E-03    57.027        .30614E-05** at limit **
  25  Prefactor     6.3718        6.6327        .29137E-05    .19083E-03
  26  Normalizat    .96433        .20280        .13757E-04   -.25411E-03
  27  Prefactor     .76453        .15074        .32769E-06    .36129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.90179
  Prefactor  = 0.0001
  Prefactor  = 23.1079
  Prefactor  = 0.000100001
  norm       = 1.81392
  norm       = 6.7388
  Prefactor  = 0.0001
  Prefactor  = 1.83711
  norm       = 26.5891
  Prefactor  = 0.926654
  Prefactor  = 0.0001
  Prefactor  = 8.90934
  Prefactor  = 0.0001
  norm       = 4.73861
  norm       = 6.87392
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 114.201
  norm       = 10.2644
  Prefactor  = 39.4534
  Prefactor  = 151.815
  Prefactor  = 0.0001
  Prefactor  = 6.37177
  Normalizat = 0.964334
  Prefactor  = 0.764527
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.933     FROM HESSE     STATUS=OK           492 CALLS     3800 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9018        2.7786        .11123E-03   -1.5313    
   2  Prefactor     .10000E-03    2.5762        .12775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.108        23.397        .83313E-04   -1.4746    
   4  Prefactor     .10000E-03    2.8403        .26299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8139        .25643        .14040E-04   -1.5439    
   6  norm          6.7388        11.344        .15457E-03   -1.5189    
   7  Prefactor     .10000E-03    6.3875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8371        3.7104        .21371E-03   -1.5437    
   9  norm          26.589        36.059        .77694E-04   -1.4676    
  10  Prefactor     .92665        1.2585        .95076E-04   -1.5515    
  11  Prefactor     .10000E-03    2.2488        .11615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9093        3.9547        .10246E-03   -1.5111    
  13  Prefactor     .10000E-03    1.1516        .84882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7386        1.8330        .66729E-04   -1.5273    
  15  norm          6.8739        1.5422        .45223E-04   -1.5184    
  16  Prefactor     .10000E-03    1.7928        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .26478        .73600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.0585        .13945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0815        .12502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     114.20        62.870        .37646E-04   -1.3567    
  21  norm          10.264        6.7878        .12509E-03   -1.5067    
  22  Prefactor     39.453        74.798        .31846E-03   -1.4451    
  23  Prefactor     151.81        113.11        .32714E-04   -1.3237    
  24  Prefactor     .10000E-03    57.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.3718        6.6342        .15901E-03   -1.5203    
  26  Normalizat    .96433        .23435        .28572E-03   -.94235    
  27  Prefactor     .76453        .17508        .24655E-03   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16699e-09
Minuit parameter uncertainties:
  1  2.77872
  2  2.9583e-05
  3  23.406
  4  8.18254e-05
  5  0.256433
  6  11.3477
  7  2.83479e-05
  8  3.71091
  9  36.0887
  10  1.25849
  11  2.99252e-05
  12  3.95481
  13  1.39737e-05
  14  1.83306
  15  1.54224
  16  3.41042e-06
  17  1.44219e-07
  18  0.000125147
  19  3.80226e-05
  20  62.9068
  21  6.78826
  22  74.9769
  23  113.269
  24  0.000171207
  25  6.63501
  26  0.234603
  27  0.175204
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.739e+00  1.833e+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.645e-01  1.752e-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:  9.643e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.81
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 6.35e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 9.15e-05 +/- 3.54e-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) = 6683.92765765
delta logL = 0.00529648658448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6683.92737575
delta logL = 0.00557838346776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7041       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7517       1.0000          .0000       5.0000    
     3 'Normalizat'    .96259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76505       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6683.927     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      195 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7041        1.6312        .99537E-07   -.66716E-03
   2  alpha         1.7517        .23429       -.13026E-05   -.73056E-04
   3  Normalizat    .96260        .19132        .59911E-07    .16679E-04
   4  Prefactor     .76505        .14879       -.26330E-07    .18222E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.70413
  alpha      = 1.75169
  Normalizat = 0.962603
  Prefactor  = 0.765047
 **********
 **   18 **HESSE 
 **********

 FCN=   6683.927     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7041        1.8495        .66080E-04   -1.5274    
   2  alpha         1.7517        .29076        .85953E-02   -.30398    
   3  Normalizat    .96260        .22016        .28591E-03   -.94294    
   4  Prefactor     .76505        .17139        .24645E-03   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33803e-11
Minuit parameter uncertainties:
  1  1.84948
  2  0.291482
  3  0.220364
  4  0.171514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/134043': 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) = 6683.92737575
delta logL = 0.00557838576242

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.704e+00  1.849e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.752e+00  2.915e-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.650e-01  1.715e-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:  9.626e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.77
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.75 +/- 0.29
Photon Flux (Free Index): 6.57e-08 +/- 3.25e-08
Energy Flux (Free Index): 8.65e-05 +/- 5.72e-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/134043/cmap_HighResolution_377222401_377481601_4FGL_J1653.8+3945_daily_bin532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.35e-08', energy_flux2='8.65e-05', photon_flux_error='2.46e-08', dlogl='5.58e-03', energy_flux='9.15e-05', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-09-16 00:29:08.963681', photon_index_error2='0.29', photon_index2='1.75', ts='38.81', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='5.72e-05', EG='0.96', time_epoch_completed='1631777348.96', return_code='0', job_id='134043', GAL2='0.77', EG2='0.96', return_code2='0', energy_flux_error='3.54e-05', photon_flux_error2='3.25e-08', ts2='38.77', photon_index='1.72' WHERE bin_id='532' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:29:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 134043: <4FGL_J1653.8+3945_daily_bin532> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin532> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 16 00:15:21 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:15:53 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:15:53 2021
Terminated at Thu Sep 16 00:29:09 2021
Results reported at Thu Sep 16 00:29:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin532 253.474 39.7595 377222401 377481601 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 :                                   780.52 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             302.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            828 sec.

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

