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


Performing analysis on: 4FGL_J1106.7+3623_monthly_bin118
RA = 166.688, Dec = 36.3995
tmin = 542851201, tmax = 545443201
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='395503', job_status='RUN', time_executed='2021-10-22 11:46:27.680049', time_epoch_executed='1634928387.68' WHERE source_name='4FGL J1106.7+3623' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/395503

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/395503/ft1_4FGL_J1106.7+3623_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/395503/ft1_4FGL_J1106.7+3623_monthly_bin118.fits outfile=/scratch/kocevski/395503/ft1_filteredMKT_4FGL_J1106.7+3623_monthly_bin118.fits ra=166.688 dec=36.3995 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.44
user 17.94
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.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/395503/ft1_filteredMKT_4FGL_J1106.7+3623_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/395503/ft1_filtered_4FGL_J1106.7+3623_monthly_bin118.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.58
user 0.42
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/395503/ft1_filtered_4FGL_J1106.7+3623_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/395503/ltcube_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.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/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.fits
.....................!
real 40.69
user 40.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/395503/ft1_filtered_4FGL_J1106.7+3623_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/395503/ltcube_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.fits outfile=/scratch/kocevski/395503/expmap_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.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/395503/ltcube_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.fits
.....................!
real 193.03
user 186.12
sys 5.62

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/395503/ft1_filtered_4FGL_J1106.7+3623_monthly_bin118.fits scfile=/scratch/kocevski/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.fits outfile=/scratch/kocevski/395503/cmap_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.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.60
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/395503/ft1_filtered_4FGL_J1106.7+3623_monthly_bin118.fits scfile=/scratch/kocevski/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.fits outfile=/scratch/kocevski/395503/cmap_HighResolution_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.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.60
user 0.44
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/395503/ft1_filtered_4FGL_J1106.7+3623_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/395503/Model_4FGL_J1106.7+3623_monthly_bin118.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/395503/ft1_filtered_4FGL_J1106.7+3623_monthly_bin118.fits......................!
real 36.85
user 35.37
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/395503/ft1_filtered_4FGL_J1106.7+3623_monthly_bin118.fits', '/scratch/kocevski/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.fits', expMap='/scratch/kocevski/395503/expmap_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.fits', expCube='/scratch/kocevski/395503/ltcube_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/395503/Model_4FGL_J1106.7+3623_monthly_bin118.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/395503/ft1_filtered_4FGL_J1106.7+3623_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/395503/ft2_4FGL_J1106.7+3623_monthly_bin118.fits
Exposure map: /scratch/kocevski/395503/expmap_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.fits
Exposure cube: /scratch/kocevski/395503/ltcube_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/395503/Model_4FGL_J1106.7+3623_monthly_bin118.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) = 3223.13594644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1039       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.734       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.757       1.0000         .10000E-03   10000.    
     4 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24372E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .54850       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67836       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.418       1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.7432       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15515E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.998       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9667       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.558       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .99546       1.0000         .10000E-03   10000.    
    27 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    49.386       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .34623       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.7332       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=   3222.870     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4293 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1058        17.363        .18588E-06   -.86048E-05
   2  Prefactor     60.114        192.84       -.20062E-05    .26487E-05
   3  Prefactor     19.751        22.839       -.33970E-06   -.12671E-04
   4  norm          .10000E-03    15.891        .14028E-05** at limit **
   5  Prefactor     .10000E-03    68.042       -.25007E-06** at limit **
   6  Prefactor     .10000E-03    25.978        .14091E-06** at limit **
   7  Prefactor     .10000E-03    16.769        .36271E-05** at limit **
   8  Prefactor     .10000E-03    4.6612        .16331E-06** at limit **
   9  Prefactor     .10000E-03    36.237        .29188E-06** at limit **
  10  Prefactor     .10000E-03    11.365       -.51949E-07** at limit **
  11  Prefactor     .10000E-03    211.52        .43166E-06** at limit **
  12  Prefactor     .10000E-03    7.0166       -.18109E-06** at limit **
  13  norm          .54856        .52875        .29541E-08   -.11134E-04
  14  Prefactor     .67940        3.3692       -.27825E-06   -.51755E-04
  15  Prefactor     .10000E-03    16.848       -.96902E-07** at limit **
  16  Prefactor     28.416        32.895        .13777E-08    .46933E-05
  17  norm          .10000E-03    11.636       -.21815E-06** at limit **
  18  norm          7.7454        14.672       -.37802E-06    .26732E-05
  19  Prefactor     .10000E-03    4.6635       -.66707E-06** at limit **
  20  Prefactor     .10000E-03    92.257       -.44795E-06** at limit **
  21  Prefactor     18.929        48.362        .22613E-05    .21374E-04
  22  norm          1.9639        4.7214        .58038E-06    .82964E-04
  23  Prefactor     27.617        38.715       -.19982E-05    .31206E-04
  24  Prefactor     .10000E-03    9.4156       -.19171E-05** at limit **
  25  Prefactor     .10000E-03    34.470       -.48168E-07** at limit **
  26  norm          .99544        1.7486       -.31668E-06   -.34845E-03
  27  norm          .10000E-03    14.590       -.12707E-07** at limit **
  28  Prefactor     49.319        52.199       -.31765E-06    .21502E-04
  29  Prefactor     .10000E-03    44.737       -.49376E-07** at limit **
  30  Normalizat    .34608        .35262        .23300E-05    .37911E-04
  31  Prefactor     1.7333        .34529       -.11925E-06    .44532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10582
  Prefactor  = 60.1142
  Prefactor  = 19.7513
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.548565
  Prefactor  = 0.679402
  Prefactor  = 0.0001
  Prefactor  = 28.4158
  norm       = 0.0001
  norm       = 7.7454
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9292
  norm       = 1.96388
  Prefactor  = 27.6168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.995439
  norm       = 0.0001
  Prefactor  = 49.3192
  Prefactor  = 0.0001
  Normalizat = 0.346083
  Prefactor  = 1.73325
 **********
 **   18 **HESSE 
 **********

 FCN=   3222.870     FROM HESSE     STATUS=OK           622 CALLS     4915 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1058        17.359        .14084E-03   -1.5138    
   2  Prefactor     60.114        191.79        .25956E-03   -1.4156    
   3  Prefactor     19.751        22.824        .90108E-04   -1.4819    
   4  norm          .10000E-03    15.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    68.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.6608        .11969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    211.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0320        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .54856        .52132        .37194E-03   -1.5560    
  14  Prefactor     .67940        3.1036        .18530E-03   -1.5543    
  15  Prefactor     .10000E-03    16.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.416        33.328        .75153E-04   -1.4641    
  17  norm          .10000E-03    11.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.7454        14.486        .14411E-03   -1.5151    
  19  Prefactor     .10000E-03    4.8155        .23912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    92.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.929        47.738        .91892E-04   -1.4838    
  22  norm          1.9639        4.6639        .17945E-03   -1.5428    
  23  Prefactor     27.617        38.219        .76314E-04   -1.4656    
  24  Prefactor     .10000E-03    9.4088        .16900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .99544        1.5563        .97690E-03   -1.5508    
  27  norm          .10000E-03    14.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     49.319        51.360        .57063E-04   -1.4302    
  29  Prefactor     .10000E-03    44.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .34608        .34178        .45025E-03   -1.2019    
  31  Prefactor     1.7333        .35991        .24396E-03   -.71200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0725e-10
Minuit parameter uncertainties:
  1  17.3699
  2  193.815
  3  22.8343
  4  5.57374e-06
  5  5.51275e-05
  6  8.29699e-06
  7  1.78377e-05
  8  7.06269e-07
  9  4.55183e-06
  10  5.71484e-06
  11  5.09371e-05
  12  4.6207e-06
  13  0.521326
  14  2.90423
  15  5.39203e-06
  16  33.3494
  17  2.44031e-06
  18  14.4921
  19  1.56987e-05
  20  6.60262e-05
  21  47.8346
  22  4.66481
  23  38.2533
  24  3.05922e-06
  25  1.6191e-08
  26  1.55634
  27  2.29846e-06
  28  51.4058
  29  3.21434e-06
  30  0.343868
  31  0.360455
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  5.392e-06  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:  1.733e+00  3.605e-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:  3.461e-01  3.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/395503/likelihoodResults_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.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) = 3222.87015181
delta logL = -0.000279824846984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3222.86987357
delta logL = -1.58545708473e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8004       1.0000          .0000       10.000    
     3 'Normalizat'    .34608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7333       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3222.870     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      281 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10439E-03    7.7876        .18142E-01** at limit **
   2  Index         2.7044        8.6289        .50000        .28168E-04
   3  Normalizat    .34608        .51032E-02    .45028E-03   -.20727E-03
   4  Prefactor     1.7332        .58254E-02    .24395E-03   -.39064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104387
  Index      = 2.70439
  Normalizat = 0.346081
  Prefactor  = 1.73325
 **********
 **   18 **HESSE 
 **********

 FCN=   3222.870     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10439E-03    76.928        .19776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7044        5.4704        .50000       -.47701    
   3  Normalizat    .34608        .16067E-01    .18011E-04   -1.2019    
   4  Prefactor     1.7332        .18341E-01    .48791E-04   -.71200    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.82163e-09
Minuit parameter uncertainties:
  1  0.0367903
  2  231.981
  3  0.0160673
  4  0.018341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/395503': 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) = 3222.86987309
delta logL = -1.10100381789e-06

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.044e-04  3.679e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.704e+00  2.320e+02  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:  1.733e+00  1.834e-02  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:  3.461e-01  1.607e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/395503/cmap_HighResolution_542851201_545443201_4FGL_J1106.7+3623_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='1.62e-07', time_completed='2021-10-22 11:59:16.986968', job_id='395503', GAL2='1.73', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1634929156.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.73', dlogl='-1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='118' AND source_name='4FGL J1106.7+3623' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 11:59:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 395503: <4FGL_J1106.7+3623_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1106.7+3623_monthly_bin118> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Oct 22 11:45:17 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 11:45:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 22 11:45:22 2021
Terminated at Fri Oct 22 11:59:17 2021
Results reported at Fri Oct 22 11:59:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_monthly_bin118 166.688 36.3995 542851201 545443201 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 :                                   751.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            840 sec.

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

