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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin1035
RA = 250.734, Dec = 39.8164
tmin = 507600001, tmax = 507859201
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='861821', job_status='RUN', time_executed='2021-09-15 08:04:07.442105', time_epoch_executed='1631718247.44' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861821/ft1_4FGL_J1642.9+3948_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861821/ft1_4FGL_J1642.9+3948_daily_bin1035.fits outfile=/scratch/kocevski/861821/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1035.fits ra=250.734 dec=39.8164 rad=12.0 tmin=507600001.0 tmax=507859201.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.15
user 2.88
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.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/861821/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/861821/ft1_filtered_4FGL_J1642.9+3948_daily_bin1035.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.48
user 0.30
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861821/ft1_filtered_4FGL_J1642.9+3948_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/861821/ltcube_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.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/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits
.....................!
real 15.81
user 15.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861821/ft1_filtered_4FGL_J1642.9+3948_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/861821/ltcube_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.fits outfile=/scratch/kocevski/861821/expmap_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.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/861821/ltcube_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.fits
.....................!
real 158.64
user 153.65
sys 4.53

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

Setting source of interest to:
4FGL J1642.9+3948 @ 250.734 39.8164

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/861821/ft1_filtered_4FGL_J1642.9+3948_daily_bin1035.fits scfile=/scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits outfile=/scratch/kocevski/861821/cmap_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.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=250.734 yref=39.8164 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.53
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861821/ft1_filtered_4FGL_J1642.9+3948_daily_bin1035.fits scfile=/scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits outfile=/scratch/kocevski/861821/cmap_HighResolution_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.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=250.734 yref=39.8164 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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/861821/ft1_filtered_4FGL_J1642.9+3948_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/861821/Model_4FGL_J1642.9+3948_daily_bin1035.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/861821/ft1_filtered_4FGL_J1642.9+3948_daily_bin1035.fits.....................!
real 50.74
user 48.83
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/861821/ft1_filtered_4FGL_J1642.9+3948_daily_bin1035.fits', '/scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits', expMap='/scratch/kocevski/861821/expmap_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.fits', expCube='/scratch/kocevski/861821/ltcube_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/861821/Model_4FGL_J1642.9+3948_daily_bin1035.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1642.9+3948'

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.494e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/861821/ft1_filtered_4FGL_J1642.9+3948_daily_bin1035.fits
Spacecraft file(s): /scratch/kocevski/861821/ft2_4FGL_J1642.9+3948_daily_bin1035.fits
Exposure map: /scratch/kocevski/861821/expmap_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.fits
Exposure cube: /scratch/kocevski/861821/ltcube_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/861821/Model_4FGL_J1642.9+3948_daily_bin1035.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) = 7156.02492432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7915       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11406E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38850E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .45848       1.0000         .10000E-03   10000.    
     8 'norm      '    9.1994       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60046       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7844       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1272       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .87860       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3760       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0106       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .32901       1.0000         .10000E-03   10000.    
    20 'norm      '    8.3021       1.0000         .10000E-03   10000.    
    21 'norm      '    2.2914       1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.916       1.0000         .10000E-03   10000.    
    23 'norm      '    19.652       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4485       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90960       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0077       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7156.008     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3133 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.289       -.91406E-07** at limit **
   2  Prefactor     .10000E-03    43.557        .19712E-06** at limit **
   3  Prefactor     6.7898        4.0273        .12544E-06    .26656E-05
   4  Prefactor     .10000E-03    3.4501        .81633E-06** at limit **
   5  Prefactor     31.435        26.504       -.83697E-07   -.34456E-04
   6  Prefactor     .10001E-03    1.5435       -.31004E-07** at limit **
   7  norm          .45847        .16913        .82408E-08   -.35413E-04
   8  norm          9.2006        10.264       -.27131E-07   -.79109E-06
   9  Prefactor     .10000E-03    9.2328       -.32690E-07** at limit **
  10  Prefactor     .58617        2.6215        .20771E-06   -.11908E-03
  11  norm          .10000E-03    14.807        .58958E-08** at limit **
  12  Prefactor     2.7854        2.0173        .26242E-07   -.94031E-05
  13  Prefactor     2.1269        1.7620        .22717E-07   -.23614E-05
  14  Prefactor     .87888        2.3299        .71248E-06    .40571E-04
  15  Prefactor     5.3769        3.4371        .33785E-07   -.52733E-04
  16  norm          1.0105        1.0801       -.33654E-08   -.75388E-05
  17  norm          1.6775        .99669       -.44320E-07   -.33176E-03
  18  Prefactor     .10000E-03    3.9593       -.68286E-07** at limit **
  19  norm          .32915        .58341       -.20048E-07   -.25795E-03
  20  norm          8.3013        10.514        .24395E-05   -.31303E-04
  21  norm          2.2905        2.0108        .11288E-06   -.34784E-04
  22  Prefactor     56.975        48.256        .32981E-06    .89140E-04
  23  norm          19.650        10.622       -.26747E-06   -.19183E-04
  24  Prefactor     5.4432        504.13       -.16139E-05   -.36353E-05
  25  Normalizat    .91011        .20782       -.15740E-05   -.40061E-04
  26  Prefactor     1.0075        .15364        .29391E-06   -.11774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.78981
  Prefactor  = 0.0001
  Prefactor  = 31.4349
  Prefactor  = 0.000100013
  norm       = 0.458468
  norm       = 9.2006
  Prefactor  = 0.0001
  Prefactor  = 0.586169
  norm       = 0.0001
  Prefactor  = 2.78536
  Prefactor  = 2.12691
  Prefactor  = 0.878877
  Prefactor  = 5.3769
  norm       = 1.01053
  norm       = 1.67753
  Prefactor  = 0.0001
  norm       = 0.329148
  norm       = 8.30127
  norm       = 2.29053
  Prefactor  = 56.9748
  norm       = 19.65
  Prefactor  = 5.44322
  Normalizat = 0.910105
  Prefactor  = 1.0075
 **********
 **   18 **HESSE 
 **********

 FCN=   7156.008     FROM HESSE     STATUS=OK           476 CALLS     3609 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7898        4.0315        .12437E-03   -1.5187    
   4  Prefactor     .10000E-03    3.4654        .15324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.435        26.560        .71485E-04   -1.4586    
   6  Prefactor     .10001E-03    24.857        .19871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .45847        .16825        .19125E-04   -1.5573    
   8  norm          9.2006        10.263        .13214E-03   -1.5101    
   9  Prefactor     .10000E-03    9.2712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .58617        10.185        .24203E-02   -1.5555    
  11  norm          .10000E-03    14.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7854        2.0785        .68474E-04   -1.5374    
  13  Prefactor     2.1269        1.8087        .70958E-04   -1.5416    
  14  Prefactor     .87888        2.2615        .19844E-03   -1.5520    
  15  Prefactor     5.3769        3.4164        .11730E-03   -1.5244    
  16  norm          1.0105        1.0701        .88000E-04   -1.5507    
  17  norm          1.6775        .98444        .60236E-04   -1.5449    
  18  Prefactor     .10000E-03    3.9935        .16418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .32915        .46122        .81982E-03   -1.5593    
  20  norm          8.3013        10.461        .69568E-03   -1.5132    
  21  norm          2.2905        1.9950        .10581E-03   -1.5405    
  22  Prefactor     56.975        48.386        .26587E-03   -1.4197    
  23  norm          19.650        10.436        .90350E-04   -1.4821    
  24  Prefactor     5.4432        485.58        .17215E-03   -1.5241    
  25  Normalizat    .91011        .24226        .30250E-03   -.96106    
  26  Prefactor     1.0075        .18132        .23381E-03   -.92480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7599e-08
Minuit parameter uncertainties:
  1  1.13078e-05
  2  4.06048e-05
  3  4.03171
  4  1.7931e-06
  5  26.57
  6  0.00113664
  7  0.168249
  8  10.2648
  9  4.00519e-06
  10  4.8874
  11  4.38687e-06
  12  2.07854
  13  1.80874
  14  2.26167
  15  3.41657
  16  1.07011
  17  0.984454
  18  2.34743e-06
  19  0.461224
  20  10.463
  21  1.99502
  22  48.419
  23  10.4368
  24  103.702
  25  0.24255
  26  0.181432
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  2.127e+00  1.809e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.008e+00  1.814e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  9.101e-01  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 8.20e-08 +/- 6.97e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 2.28e-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) = 7155.99674791
delta logL = 0.0111693059735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7155.98696282
delta logL = 0.0209543878937

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9073       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5076       1.0000          .0000       10.000    
     3 'Normalizat'    .90235       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0113       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7155.987     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9072        19.773        .75266E-02    .51965E-03
   2  Index         2.5077        3.0048        .11220        .15401E-03
   3  Normalizat    .90234        .80326E-01    .68619E-01    .22225E-04
   4  Prefactor     1.0113        .53401E-01    .43146E-01    .85342E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90716
  Index      = 2.5077
  Normalizat = 0.902343
  Prefactor  = 1.01129
 **********
 **   18 **HESSE 
 **********

 FCN=   7155.987     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9072        1.7261        .65686E-04   -1.5432    
   2  Index         2.5077        .56537        .56284E-02   -.52182    
   3  Normalizat    .90234        .22164        .30358E-03   -.96378    
   4  Prefactor     1.0113        .17701        .23339E-03   -.92354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00934e-11
Minuit parameter uncertainties:
  1  1.72619
  2  0.566983
  3  0.221859
  4  0.177107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861821': 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) = 7155.98696281
delta logL = 0.0209543986721

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.907e+00  1.726e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.508e+00  5.670e-01  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.011e+00  1.771e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  9.023e-01  2.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.80
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.51 +/- 0.57
Photon Flux (Free Index): 9.02e-08 +/- 6.50e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.61e-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/861821/cmap_HighResolution_507600001_507859201_4FGL_J1642.9+3948_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.20e-08', energy_flux2='2.60e-05', photon_flux_error='6.97e-08', dlogl='2.10e-02', energy_flux='2.68e-05', photon_flux2='9.02e-08', job_status='DONE', time_completed='2021-09-15 08:15:09.153386', photon_index_error2='0.57', photon_index2='2.51', ts='4.49', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.91', time_epoch_completed='1631718909.15', return_code='0', job_id='861821', GAL2='1.01', EG2='0.90', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='6.50e-08', ts2='4.80', photon_index='2.40' WHERE bin_id='1035' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:15:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 861821: <4FGL_J1642.9+3948_daily_bin1035> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin1035> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 15 08:00:29 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 08:01:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 08:01:15 2021
Terminated at Wed Sep 15 08:15:09 2021
Results reported at Wed Sep 15 08:15:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin1035 250.734 39.8164 507600001 507859201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1642.9+3948 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   660.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            880 sec.

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

