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


Performing analysis on: 4FGL_J1106.7+3623_daily_bin1460
RA = 166.688, Dec = 36.3995
tmin = 617760001, tmax = 618019201
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='549221', job_status='RUN', time_executed='2021-09-03 09:37:28.604065', time_epoch_executed='1630687048.6' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='1460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549221

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549221/ft1_4FGL_J1106.7+3623_daily_bin1460.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549221/ft1_4FGL_J1106.7+3623_daily_bin1460.fits outfile=/scratch/kocevski/549221/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1460.fits ra=166.688 dec=36.3995 rad=12.0 tmin=617760001.0 tmax=618019201.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 2.72
user 2.48
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.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/549221/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1460.fits evtable="EVENTS" outfile="/scratch/kocevski/549221/ft1_filtered_4FGL_J1106.7+3623_daily_bin1460.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549221/ft1_filtered_4FGL_J1106.7+3623_daily_bin1460.fits" evtable="EVENTS" scfile=/scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits sctable="SC_DATA" outfile=/scratch/kocevski/549221/ltcube_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.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/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits
.....................!
real 13.69
user 13.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549221/ft1_filtered_4FGL_J1106.7+3623_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits sctable="SC_DATA" expcube=/scratch/kocevski/549221/ltcube_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.fits outfile=/scratch/kocevski/549221/expmap_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.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/549221/ltcube_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.fits
.....................!
real 192.93
user 186.31
sys 4.90

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

Setting source of interest to:
4FGL J1106.7+3623 @ 166.688 36.3995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/549221/ft1_filtered_4FGL_J1106.7+3623_daily_bin1460.fits scfile=/scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits outfile=/scratch/kocevski/549221/cmap_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.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=166.688 yref=36.3995 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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549221/ft1_filtered_4FGL_J1106.7+3623_daily_bin1460.fits scfile=/scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits outfile=/scratch/kocevski/549221/cmap_HighResolution_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.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=166.688 yref=36.3995 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.95
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549221/ft1_filtered_4FGL_J1106.7+3623_daily_bin1460.fits evtable="EVENTS" scfile=/scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549221/Model_4FGL_J1106.7+3623_daily_bin1460.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/549221/ft1_filtered_4FGL_J1106.7+3623_daily_bin1460.fits.....................!
real 51.00
user 48.90
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/549221/ft1_filtered_4FGL_J1106.7+3623_daily_bin1460.fits', '/scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits', expMap='/scratch/kocevski/549221/expmap_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.fits', expCube='/scratch/kocevski/549221/ltcube_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/549221/Model_4FGL_J1106.7+3623_daily_bin1460.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1106.7+3623'

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  2.571e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  1.089e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/549221/ft1_filtered_4FGL_J1106.7+3623_daily_bin1460.fits
Spacecraft file(s): /scratch/kocevski/549221/ft2_4FGL_J1106.7+3623_daily_bin1460.fits
Exposure map: /scratch/kocevski/549221/expmap_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.fits
Exposure cube: /scratch/kocevski/549221/ltcube_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/549221/Model_4FGL_J1106.7+3623_daily_bin1460.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) = 5269.55865414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1136       1.0000         .10000E-03   10000.    
     2 'Prefactor '    79.241       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11937E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.146       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.725       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    82.748       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0806       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0760       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1179       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.241       1.0000         .10000E-03   10000.    
    18 'norm      '    20.924       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34665       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.386       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.608       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    102.84       1.0000         .10000E-03   10000.    
    26 'norm      '    .46013       1.0000         .10000E-03   10000.    
    27 'norm      '    26.620       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2661       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82337       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5269.500     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     4169 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1137        7.0741       -.37951E-06    .61801E-03
   2  Prefactor     79.239        87.232       -.45488E-07    .45236E-04
   3  Prefactor     .10000E-03    4.2978        .42969E-08** at limit **
   4  norm          .10000E-03    8.5945        .24404E-07** at limit **
   5  Prefactor     .10004E-03    780.91       -.95809E-05** at limit **
   6  Prefactor     60.145        51.007       -.24741E-06    .10236E-03
   7  Prefactor     .10000E-03    3.6562       -.13024E-07** at limit **
   8  Prefactor     .10000E-03    4.9768        .15075E-07** at limit **
   9  Prefactor     27.724        45.190       -.26959E-07    .37480E-04
  10  Prefactor     .10000E-03    154.19        .18806E-05** at limit **
  11  Prefactor     82.657        125.99       -.33603E-06   -.11053E-04
  12  Prefactor     .10000E-03    10.403        .36805E-07** at limit **
  13  norm          3.0806        .64604       -.11997E-07    .31536E-03
  14  Prefactor     3.0755        4.5903        .14621E-06   -.59855E-05
  15  Prefactor     2.1266        105.15        .42901E-05   -.30089E-04
  16  Prefactor     .10000E-03    10.830       -.53220E-07** at limit **
  17  norm          17.239        18.182        .56118E-06   -.25550E-04
  18  norm          20.924        15.776        .52978E-07    .42307E-04
  19  Prefactor     .34922        8.0578       -.96608E-05   -.47789E-03
  20  Prefactor     19.356        65.080        .26561E-04   -.13011E-03
  21  Prefactor     .10000E-03    29.941        .10543E-06** at limit **
  22  norm          .10000E-03    1.5256       -.38152E-06** at limit **
  23  Prefactor     15.609        12.809        .24395E-06   -.30460E-04
  24  Prefactor     .10000E-03    2.1713        .13477E-06** at limit **
  25  Prefactor     102.83        65.108        .31134E-06   -.34291E-04
  26  norm          .46031        1.0660        .60639E-07   -.21264E-03
  27  norm          26.621        13.121        .14630E-07    .91868E-05
  28  Prefactor     .10000E-03    11.758        .12767E-06** at limit **
  29  Prefactor     .10000E-03    30.106       -.11999E-07** at limit **
  30  Normalizat    1.2661        .22798        .51878E-06    .60841E-03
  31  Prefactor     .82339        .23628       -.15328E-05    .66462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11375
  Prefactor  = 79.2388
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 60.1449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.7244
  Prefactor  = 0.000100003
  Prefactor  = 82.6568
  Prefactor  = 0.0001
  norm       = 3.0806
  Prefactor  = 3.07553
  Prefactor  = 2.1266
  Prefactor  = 0.0001
  norm       = 17.2388
  norm       = 20.9241
  Prefactor  = 0.349222
  Prefactor  = 19.3564
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.6089
  Prefactor  = 0.0001
  Prefactor  = 102.826
  norm       = 0.460306
  norm       = 26.6207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26608
  Prefactor  = 0.823394
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.500     FROM HESSE     STATUS=OK           614 CALLS     4783 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1137        7.0647        .16237E-03   -1.5213    
   2  Prefactor     79.239        87.377        .45115E-04   -1.3925    
   3  Prefactor     .10000E-03    4.3062        .14689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.5985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10004E-03    779.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     60.145        51.015        .51735E-04   -1.4155    
   7  Prefactor     .10000E-03    3.6674        .13546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.9905        .15801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.724        45.181        .76085E-04   -1.4654    
  10  Prefactor     .10000E-03    158.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     82.657        126.64        .22078E-03   -1.3887    
  12  Prefactor     .10000E-03    10.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0806        .64279        .23001E-04   -1.5357    
  14  Prefactor     3.0755        4.5833        .17518E-03   -1.5357    
  15  Prefactor     2.1266        102.04        .28342E-03   -1.5416    
  16  Prefactor     .10000E-03    10.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.239        17.968        .96458E-04   -1.4877    
  18  norm          20.924        15.781        .87562E-04   -1.4793    
  19  Prefactor     .34922        8.2940        .23660E-03   -1.5590    
  20  Prefactor     19.356        65.894        .90967E-04   -1.4828    
  21  Prefactor     .10000E-03    30.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5467        .87302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.609        12.798        .10138E-03   -1.4918    
  24  Prefactor     .10000E-03    2.1851        .10443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     102.83        61.847        .39650E-04   -1.3676    
  26  norm          .46031        .87691        .96074E-03   -1.5572    
  27  norm          26.621        13.100        .77645E-04   -1.4676    
  28  Prefactor     .10000E-03    11.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    30.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2661        .27417        .25884E-03   -.84585    
  31  Prefactor     .82339        .27843        .34762E-03   -.98872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25322e-09
Minuit parameter uncertainties:
  1  7.06568
  2  87.5189
  3  8.54945e-06
  4  1.05798e-06
  5  0.0111279
  6  51.0524
  7  7.23235e-06
  8  2.46597e-06
  9  45.2367
  10  0.00142338
  11  127.054
  12  2.98591e-05
  13  0.642789
  14  4.58378
  15  29.5145
  16  3.66088e-06
  17  17.9741
  18  15.7845
  19  3.40383
  20  66.1432
  21  8.03862e-06
  22  1.84542e-05
  23  12.8004
  24  8.22117e-06
  25  61.8858
  26  0.876932
  27  13.1017
  28  2.6476e-05
  29  4.01449e-05
  30  0.274484
  31  0.278912
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  2.127e+00  2.951e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  1.089e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  8.234e-01  2.789e-01  0.000e+00  1.000e+01 ( 1.000e+00)
644        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
645        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
642   Normalization:  1.266e+00  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 166.688 36.400
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549221/likelihoodResults_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.txt

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): 102
logL (Free Index) = 5269.36926644
delta logL = 0.130654970245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5269.35978615
delta logL = 0.140135257398

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5269.360     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      228 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1556        130.00        .70556E-02    .68196E-03
   2  Index         3.6166        6.7266        .14758        .10162E-03
   3  Normalizat    1.2287        .50498E-01    .59205E-01    .38834E-05
   4  Prefactor     .84737        .55883E-01    .77478E-01    .15705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15557
  Index      = 3.61663
  Normalizat = 1.2287
  Prefactor  = 0.847372
 **********
 **   18 **HESSE 
 **********

 FCN=   5269.360     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1556        370.59        .19148E-03   -1.5414    
   2  Index         3.6166        5.0504        .86592E-02   -.28033    
   3  Normalizat    1.2287        .22548        .26183E-03   -.85720    
   4  Prefactor     .84737        .24765        .34294E-03   -.98005    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10487e-06
Minuit parameter uncertainties:
  1  56.887
  2  12.2998
  3  0.225656
  4  0.247981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549221': 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): 102
logL (Free Index) = 5269.3597815
delta logL = 0.140139904665

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  2.156e+00  5.689e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  3.617e+00  1.230e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  1.089e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  8.474e-01  2.480e-01  0.000e+00  1.000e+01 ( 1.000e+00)
644        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
645        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
642   Normalization:  1.229e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 166.688 36.400

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/549221/cmap_HighResolution_617760001_618019201_4FGL_J1106.7+3623_daily_bin1460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-03 09:52:14.303039', job_id='549221', GAL2='0.85', fit_tolerance='1e-08', EG2='1.23', EG='1.27', time_epoch_completed='1630687934.3', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.40e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1460' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:52:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 549221: <4FGL_J1106.7+3623_daily_bin1460> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin1460> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 09:36:30 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 09:37:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 09:37:10 2021
Terminated at Fri Sep  3 09:52:15 2021
Results reported at Fri Sep  3 09:52:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1460 166.688 36.3995 617760001 618019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1106.7+3623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   865.23 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            945 sec.

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

