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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin1090
RA = 250.734, Dec = 39.8164
tmin = 521856001, tmax = 522115201
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='861908', job_status='RUN', time_executed='2021-09-15 08:02:12.805832', time_epoch_executed='1631718132.81' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/861908

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/861908/ft1_4FGL_J1642.9+3948_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/861908/ft2_4FGL_J1642.9+3948_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/861908/ft1_4FGL_J1642.9+3948_daily_bin1090.fits outfile=/scratch/kocevski/861908/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1090.fits ra=250.734 dec=39.8164 rad=12.0 tmin=521856001.0 tmax=522115201.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.78
user 3.54
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/861908/ft1_filtered_4FGL_J1642.9+3948_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/861908/ft2_4FGL_J1642.9+3948_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/861908/ltcube_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.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/861908/ft2_4FGL_J1642.9+3948_daily_bin1090.fits
.....................!
real 14.13
user 13.70
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/861908/ft1_filtered_4FGL_J1642.9+3948_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/861908/ft2_4FGL_J1642.9+3948_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/861908/ltcube_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.fits outfile=/scratch/kocevski/861908/expmap_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.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/861908/ltcube_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.fits
.....................!
real 192.23
user 186.89
sys 4.89

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/861908/ft1_filtered_4FGL_J1642.9+3948_daily_bin1090.fits scfile=/scratch/kocevski/861908/ft2_4FGL_J1642.9+3948_daily_bin1090.fits outfile=/scratch/kocevski/861908/cmap_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/861908/ft1_filtered_4FGL_J1642.9+3948_daily_bin1090.fits scfile=/scratch/kocevski/861908/ft2_4FGL_J1642.9+3948_daily_bin1090.fits outfile=/scratch/kocevski/861908/cmap_HighResolution_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/861908/ft1_filtered_4FGL_J1642.9+3948_daily_bin1090.fits', '/scratch/kocevski/861908/ft2_4FGL_J1642.9+3948_daily_bin1090.fits', expMap='/scratch/kocevski/861908/expmap_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.fits', expCube='/scratch/kocevski/861908/ltcube_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/861908/Model_4FGL_J1642.9+3948_daily_bin1090.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/861908/ft1_filtered_4FGL_J1642.9+3948_daily_bin1090.fits
Spacecraft file(s): /scratch/kocevski/861908/ft2_4FGL_J1642.9+3948_daily_bin1090.fits
Exposure map: /scratch/kocevski/861908/expmap_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.fits
Exposure cube: /scratch/kocevski/861908/ltcube_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/861908/Model_4FGL_J1642.9+3948_daily_bin1090.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) = 7367.79670487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.957       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79970E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11555E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52409       1.0000         .10000E-03   10000.    
     7 'norm      '    .25298       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.692       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    51.997       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2197       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9976       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71633       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9287       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1162       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2292       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6361       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.260       1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.523       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1044       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7367.774     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2664 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.956        1.0094       -.98302E-07    .21597E-04
   2  Prefactor     .10000E-03    23.668       -.12600E-05** at limit **
   3  Prefactor     3.4804        4.1095       -.45868E-05    .12824E-03
   4  Prefactor     .10000E-03    16.582        .67288E-05** at limit **
   5  Prefactor     .10003E-03    102.61       -.55624E-04** at limit **
   6  Prefactor     .52468        2.2617        .40450E-06   -.36278E-04
   7  norm          .25298        .16170        .74469E-07   -.40739E-03
   8  norm          .10000E-03    5.0347        .27268E-07** at limit **
   9  Prefactor     30.686        1.9053       -.12272E-05    .89108E-03
  10  Prefactor     .10000E-03    4.1822       -.12006E-06** at limit **
  11  norm          51.997        1.0011       -.99439E-08    .25562E-04
  12  Prefactor     2.2196        2.1732        .15744E-06   -.21935E-03
  13  Prefactor     3.7135        2.2287        .23183E-06   -.31641E-03
  14  Prefactor     1.9979        2.8713       -.26438E-06   -.11470E-03
  15  Prefactor     .71703        4.3374       -.27683E-05    .51969E-04
  16  norm          .10000E-03    1.3457       -.53042E-06** at limit **
  17  norm          5.9285        1.4789       -.36473E-06   -.20471E-03
  18  Prefactor     2.1172        6.5150        .17271E-04   -.80472E-03
  19  norm          .10000E-03    .80494        .61348E-07** at limit **
  20  norm          4.2283        1.6386       -.28292E-05   -.24016E-02
  21  norm          1.6360        1.4970       -.51702E-06   -.40110E-04
  22  Prefactor     .10003E-03    76.981        .54982E-04** at limit **
  23  norm          12.260        1.4670       -.12572E-05   -.14628E-02
  24  Prefactor     32.522        1.0888       -.34097E-06    .33117E-03
  25  Normalizat    1.1046        .24699        .15922E-05   -.21543E-03
  26  Prefactor     .94219        .18549       -.25962E-06   -.18693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9557
  Prefactor  = 0.0001
  Prefactor  = 3.48043
  Prefactor  = 0.000100001
  Prefactor  = 0.000100033
  Prefactor  = 0.52468
  norm       = 0.252983
  norm       = 0.0001
  Prefactor  = 30.6864
  Prefactor  = 0.0001
  norm       = 51.9972
  Prefactor  = 2.21958
  Prefactor  = 3.71347
  Prefactor  = 1.99788
  Prefactor  = 0.717025
  norm       = 0.0001
  norm       = 5.92851
  Prefactor  = 2.11725
  norm       = 0.0001
  norm       = 4.22831
  norm       = 1.636
  Prefactor  = 0.000100031
  norm       = 12.2597
  Prefactor  = 32.5218
  Normalizat = 1.10456
  Prefactor  = 0.942187
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.774     FROM HESSE     STATUS=OK           542 CALLS     3206 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.956        20.192        .23629E-02   -1.4860    
   2  Prefactor     .10000E-03    23.661        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4804        4.1545        .54182E-02   -1.5335    
   4  Prefactor     .10000E-03    4.1415        .57194E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    101.10        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .52468        2.4013        .11369E-01   -1.5563    
   7  norm          .25298        .18258        .56740E-02   -1.5607    
   8  norm          .10000E-03    5.0321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.686        30.316        .18081E-02   -1.4599    
  10  Prefactor     .10000E-03    4.0544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          51.997        44.865        .13905E-02   -1.4265    
  12  Prefactor     2.2196        2.1952        .69004E-02   -1.5410    
  13  Prefactor     3.7135        2.2306        .52387E-02   -1.5323    
  14  Prefactor     1.9979        2.8996        .73264E-02   -1.5425    
  15  Prefactor     .71703        2.7865        .42675E-01   -1.5539    
  16  norm          .10000E-03    .88702        .32127E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9285        1.4863        .41230E-02   -1.5221    
  18  Prefactor     2.1172        6.9739        .70886E-02   -1.5417    
  19  norm          .10000E-03    .44505        .20788E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2283        5.9416        .48986E-02   -1.5297    
  21  norm          1.6360        1.5003        .82613E-02   -1.5452    
  22  Prefactor     .10003E-03    77.099        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.260        7.0229        .28602E-02   -1.5008    
  24  Prefactor     32.522        61.509        .17566E-02   -1.4567    
  25  Normalizat    1.1046        .21307        .66129E-01   -.89606    
  26  Prefactor     .94219        .15616        .45541E-01   -.94682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57772e-07
Minuit parameter uncertainties:
  1  20.1995
  2  7.64573e-05
  3  4.15485
  4  0.000100382
  5  0.00365336
  6  2.24483
  7  0.182579
  8  2.04164e-08
  9  30.3308
  10  3.50559e-06
  11  44.894
  12  2.19527
  13  2.23068
  14  2.89977
  15  2.78701
  16  4.08046e-06
  17  1.48628
  18  6.97662
  19  5.1101e-07
  20  5.94246
  21  1.50032
  22  0.00311322
  23  7.02341
  24  61.6293
  25  0.21324
  26  0.156237
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  3.713e+00  2.231e+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:  9.422e-01  1.562e-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:  1.105e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.16
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.43e-07 +/- 8.59e-08
Energy Flux (Fixed Index): 4.68e-05 +/- 2.81e-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) = 7367.53200792
delta logL = 0.241821082528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7367.52413801
delta logL = 0.249690998304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6855       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0883       1.0000          .0000       10.000    
     3 'Normalizat'    1.1460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92203       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=   7367.524     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      275 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6830        39.561        .46477E-02    .19626E-03
   2  Index         2.0875        6.0350        .11756        .12036E-03
   3  Normalizat    1.1461        .17490        .65172E-01    .13690E-04
   4  Prefactor     .92202        .74163E-01    .45285E-01    .13206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.68302
  Index      = 2.08753
  Normalizat = 1.14607
  Prefactor  = 0.922016
 **********
 **   18 **HESSE 
 **********

 FCN=   7367.524     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6830        2.3466        .82466E-04   -1.5275    
   2  Index         2.0875        .45606        .66401E-02   -.62179    
   3  Normalizat    1.1461        .23935        .28830E-03   -.88286    
   4  Prefactor     .92202        .18466        .25092E-03   -.95376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85468e-12
Minuit parameter uncertainties:
  1  2.34664
  2  0.457023
  3  0.239582
  4  0.184787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/861908': 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) = 7367.52413484
delta logL = 0.249694163858

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  4.683e+00  2.347e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.088e+00  4.570e-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:  9.220e-01  1.848e-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:  1.146e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.98
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.09 +/- 0.46
Photon Flux (Free Index): 1.02e-07 +/- 7.65e-08
Energy Flux (Free Index): 5.75e-05 +/- 3.57e-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/861908/cmap_HighResolution_521856001_522115201_4FGL_J1642.9+3948_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-07', energy_flux2='5.75e-05', photon_flux_error='8.59e-08', dlogl='2.50e-01', energy_flux='4.68e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-15 08:14:41.104518', photon_index_error2='0.46', photon_index2='2.09', ts='13.16', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='3.57e-05', EG='1.10', time_epoch_completed='1631718881.1', return_code='0', job_id='861908', GAL2='0.92', EG2='1.15', return_code2='0', energy_flux_error='2.81e-05', photon_flux_error2='7.65e-08', ts2='13.98', photon_index='2.40' WHERE bin_id='1090' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:14:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 861908: <4FGL_J1642.9+3948_daily_bin1090> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin1090> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 15 08:00:36 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 08:02:00 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:02:00 2021
Terminated at Wed Sep 15 08:14:41 2021
Results reported at Wed Sep 15 08:14:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin1090 250.734 39.8164 521856001 522115201 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 :                                   747.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            845 sec.

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

