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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin856
RA = 253.474, Dec = 39.7595
tmin = 461203201, tmax = 461462401
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='135613', job_status='RUN', time_executed='2021-09-16 00:21:27.925875', time_epoch_executed='1631776887.93' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135613

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135613/ft1_4FGL_J1653.8+3945_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135613/ft2_4FGL_J1653.8+3945_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135613/ft1_4FGL_J1653.8+3945_daily_bin856.fits outfile=/scratch/kocevski/135613/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin856.fits ra=253.474 dec=39.7595 rad=12.0 tmin=461203201.0 tmax=461462401.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.45
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135613/ft1_filtered_4FGL_J1653.8+3945_daily_bin856.fits" evtable="EVENTS" scfile=/scratch/kocevski/135613/ft2_4FGL_J1653.8+3945_daily_bin856.fits sctable="SC_DATA" outfile=/scratch/kocevski/135613/ltcube_461203201_461462401_4FGL_J1653.8+3945_daily_bin856.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/135613/ft2_4FGL_J1653.8+3945_daily_bin856.fits
.....................!
real 13.12
user 12.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135613/ft1_filtered_4FGL_J1653.8+3945_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/135613/ft2_4FGL_J1653.8+3945_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/135613/ltcube_461203201_461462401_4FGL_J1653.8+3945_daily_bin856.fits outfile=/scratch/kocevski/135613/expmap_461203201_461462401_4FGL_J1653.8+3945_daily_bin856.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/135613/ltcube_461203201_461462401_4FGL_J1653.8+3945_daily_bin856.fits
.....................!
real 191.55
user 185.91
sys 5.03

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/135613/ft1_filtered_4FGL_J1653.8+3945_daily_bin856.fits scfile=/scratch/kocevski/135613/ft2_4FGL_J1653.8+3945_daily_bin856.fits outfile=/scratch/kocevski/135613/cmap_461203201_461462401_4FGL_J1653.8+3945_daily_bin856.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135613/ft1_filtered_4FGL_J1653.8+3945_daily_bin856.fits scfile=/scratch/kocevski/135613/ft2_4FGL_J1653.8+3945_daily_bin856.fits outfile=/scratch/kocevski/135613/cmap_HighResolution_461203201_461462401_4FGL_J1653.8+3945_daily_bin856.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4679       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9608       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .95698E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0957       1.0000         .10000E-03   10000.    
     6 'norm      '    .15146E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2687       1.0000         .10000E-03   10000.    
     9 'norm      '    8.9361       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1997       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4519       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6173       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2484       1.0000         .10000E-03   10000.    
    15 'norm      '    .40149       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.092       1.0000         .10000E-03   10000.    
    17 'norm      '    .63063       1.0000         .10000E-03   10000.    
    18 'norm      '    .34914E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4320       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .70336E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    7.0214       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16966E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .64643E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .34963E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.780       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81579       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87208       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=   7725.655     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     2857 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4665        3.0314        .17979E-06   -.33454E-04
   2  Prefactor     2.9517        4.7208        .34479E-05   -.57055E-04
   3  Prefactor     .10000E-03    45.286       -.44651E-06** at limit **
   4  Prefactor     .10000E-03    .96594        .12220E-06** at limit **
   5  norm          1.0960        .20171        .12138E-07   -.41495E-02
   6  norm          .10000E-03    4.6247        .13952E-06** at limit **
   7  Prefactor     .10000E-03    4.6877       -.15524E-07** at limit **
   8  Prefactor     7.2459        5.0436        .63664E-06   -.44256E-03
   9  norm          9.2161        29.407       -.31831E-05   -.10840E-03
  10  Prefactor     3.2030        2.1336       -.53738E-07   -.25369E-02
  11  Prefactor     2.4449        1.9744        .15586E-07   -.22119E-02
  12  Prefactor     4.6204        2.8986       -.40595E-07   -.32535E-03
  13  Prefactor     .10000E-03    1.4890        .20543E-05** at limit **
  14  norm          5.2487        1.8034       -.45193E-07   -.12104E-02
  15  norm          .40167        .45998        .13565E-08   -.29897E-03
  16  Prefactor     10.096        6.6098       -.52278E-07   -.52122E-03
  17  norm          .63033        .50711       -.69487E-08   -.76211E-03
  18  norm          .11418        7.9942       -.51018E-05    .75299E-03
  19  norm          2.4307        1.3448        .75805E-07    .15685E-05
  20  Prefactor     .10000E-03    40.799       -.23850E-07** at limit **
  21  norm          7.0281        4.7461        .17265E-06    .25564E-03
  22  Prefactor     .10000E-03    28.969        .12349E-06** at limit **
  23  Prefactor     .10000E-03    50.128       -.62920E-07** at limit **
  24  Prefactor     .10000E-03    43.008       -.93873E-07** at limit **
  25  Prefactor     13.866        8.7358        .10822E-06    .15400E-04
  26  Normalizat    .81598        .18174       -.30283E-05   -.63403E-03
  27  Prefactor     .87186        .13218        .79976E-06   -.69330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46655
  Prefactor  = 2.95165
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.09602
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.24591
  norm       = 9.21609
  Prefactor  = 3.20297
  Prefactor  = 2.44491
  Prefactor  = 4.62044
  Prefactor  = 0.000100003
  norm       = 5.2487
  norm       = 0.40167
  Prefactor  = 10.0962
  norm       = 0.630334
  norm       = 0.114179
  norm       = 2.43068
  Prefactor  = 0.0001
  norm       = 7.02811
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.8662
  Normalizat = 0.815985
  Prefactor  = 0.871861
 **********
 **   18 **HESSE 
 **********

 FCN=   7725.655     FROM HESSE     STATUS=OK           502 CALLS     3359 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4665        3.0297        .13724E-03   -1.5336    
   2  Prefactor     2.9517        4.9930        .11800E-02   -1.5364    
   3  Prefactor     .10000E-03    46.517        .18155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .97345        .84368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0960        .20278        .15307E-04   -1.5499    
   6  norm          .10000E-03    4.6280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.2459        5.0381        .74387E-03   -1.5170    
   9  norm          9.2161        29.549        .13408E-03   -1.5101    
  10  Prefactor     3.2030        2.1872        .65464E-04   -1.5350    
  11  Prefactor     2.4449        2.0046        .70736E-04   -1.5395    
  12  Prefactor     4.6204        2.8933        .11123E-03   -1.5278    
  13  Prefactor     .10000E-03    2.5159        .20246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2487        1.8038        .66733E-04   -1.5250    
  15  norm          .40167        .43500        .60996E-03   -1.5581    
  16  Prefactor     10.096        6.5851        .12613E-03   -1.5072    
  17  norm          .63033        .50741        .53708E-04   -1.5549    
  18  norm          .11418        7.2605        .57963E-01   -1.5640    
  19  norm          2.4307        1.3417        .72510E-04   -1.5396    
  20  Prefactor     .10000E-03    40.911        .18692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.0281        4.7442        .14897E-03   -1.5178    
  22  Prefactor     .10000E-03    28.995        .20371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    50.179        .21024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    43.158        .19656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.866        8.7377        .10790E-03   -1.4963    
  26  Normalizat    .81598        .21408        .29552E-03   -.99478    
  27  Prefactor     .87186        .15579        .22390E-03   -.97131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69742e-09
Minuit parameter uncertainties:
  1  3.02981
  2  4.99371
  3  0.000762411
  4  8.84346e-06
  5  0.202779
  6  2.2529e-05
  7  3.37259e-06
  8  5.03843
  9  29.5956
  10  2.1873
  11  2.00467
  12  2.89341
  13  0.000184828
  14  1.80386
  15  0.435008
  16  6.58555
  17  0.507414
  18  1.82041
  19  1.34175
  20  0.000238458
  21  4.74445
  22  3.99605e-05
  23  0.000103826
  24  0.000343889
  25  8.73854
  26  0.214298
  27  0.155873
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  5.249e+00  1.804e+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:  8.719e-01  1.559e-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:  8.160e-01  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.62
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 7.04e-08 +/- 2.42e-08
Energy Flux (Fixed Index): 1.01e-04 +/- 3.48e-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) = 7725.30731926
delta logL = 0.347909653709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7725.30730876
delta logL = 0.34792015203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2746       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5206       1.0000          .0000       5.0000    
     3 'Normalizat'    .82613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86918       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=   7725.307     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2738        1.9207        .43753E-02   -.13365E-03
   2  alpha         1.5205        .23361        .19631       -.14933E-04
   3  Normalizat    .82622        .16601        .66461E-01    .24703E-04
   4  Prefactor     .86910        .13008        .44611E-01    .93374E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.27379
  alpha      = 1.52054
  Normalizat = 0.826222
  Prefactor  = 0.869103
 **********
 **   18 **HESSE 
 **********

 FCN=   7725.307     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2738        1.8489        .68269E-04   -1.5249    
   2  alpha         1.5205        .23569        .82676E-02   -.40257    
   3  Normalizat    .82622        .19405        .29402E-03   -.99103    
   4  Prefactor     .86910        .15241        .22432E-03   -.97229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79137e-11
Minuit parameter uncertainties:
  1  1.84895
  2  0.236104
  3  0.19421
  4  0.152482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135613': 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) = 7725.30730848
delta logL = 0.347920435153

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  5.274e+00  1.849e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.521e+00  2.361e-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:  8.691e-01  1.525e-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:  8.262e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.34
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.52 +/- 0.24
Photon Flux (Free Index): 5.60e-08 +/- 2.48e-08
Energy Flux (Free Index): 1.51e-04 +/- 8.91e-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/135613/cmap_HighResolution_461203201_461462401_4FGL_J1653.8+3945_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.04e-08', energy_flux2='1.51e-04', photon_flux_error='2.42e-08', dlogl='3.48e-01', energy_flux='1.01e-04', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-09-16 00:34:32.620891', photon_index_error2='0.24', photon_index2='1.52', ts='44.62', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='8.91e-05', EG='0.82', time_epoch_completed='1631777672.62', return_code='0', job_id='135613', GAL2='0.87', EG2='0.83', return_code2='0', energy_flux_error='3.48e-05', photon_flux_error2='2.48e-08', ts2='45.34', photon_index='1.72' WHERE bin_id='856' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:34:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 135613: <4FGL_J1653.8+3945_daily_bin856> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin856> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 00:20:25 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:21:16 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:21:16 2021
Terminated at Thu Sep 16 00:34:33 2021
Results reported at Thu Sep 16 00:34:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin856 253.474 39.7595 461203201 461462401 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 :                                   782.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            848 sec.

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

