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


Performing analysis on: 4FGL_J1106.7+3623_weekly_bin684
RA = 166.688, Dec = 36.3995
tmin = 652665601, tmax = 653270401
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='583169', job_status='RUN', time_executed='2021-12-08 14:44:06.133802', time_epoch_executed='1639003446.13' WHERE source_name='4FGL J1106.7+3623' and cadence='weekly' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/583169

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/583169/ft1_4FGL_J1106.7+3623_weekly_bin684.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/583169/ft2_4FGL_J1106.7+3623_weekly_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/583169/ft1_4FGL_J1106.7+3623_weekly_bin684.fits outfile=/scratch/kocevski/583169/ft1_filteredMKT_4FGL_J1106.7+3623_weekly_bin684.fits ra=166.688 dec=36.3995 rad=12.0 tmin=652665601.0 tmax=653270401.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 6.67
user 6.34
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/583169/ft2_4FGL_J1106.7+3623_weekly_bin684.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/583169/ft1_filteredMKT_4FGL_J1106.7+3623_weekly_bin684.fits evtable="EVENTS" outfile="/scratch/kocevski/583169/ft1_filtered_4FGL_J1106.7+3623_weekly_bin684.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.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/583169/ft1_filtered_4FGL_J1106.7+3623_weekly_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/583169/ft2_4FGL_J1106.7+3623_weekly_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/583169/ltcube_652665601_653270401_4FGL_J1106.7+3623_weekly_bin684.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/583169/ft2_4FGL_J1106.7+3623_weekly_bin684.fits
.....................!
real 30.36
user 29.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/583169/ft1_filtered_4FGL_J1106.7+3623_weekly_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/583169/ft2_4FGL_J1106.7+3623_weekly_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/583169/ltcube_652665601_653270401_4FGL_J1106.7+3623_weekly_bin684.fits outfile=/scratch/kocevski/583169/expmap_652665601_653270401_4FGL_J1106.7+3623_weekly_bin684.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/583169/ltcube_652665601_653270401_4FGL_J1106.7+3623_weekly_bin684.fits
.....................!
real 192.85
user 186.92
sys 5.34

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/583169/ft1_filtered_4FGL_J1106.7+3623_weekly_bin684.fits scfile=/scratch/kocevski/583169/ft2_4FGL_J1106.7+3623_weekly_bin684.fits outfile=/scratch/kocevski/583169/cmap_652665601_653270401_4FGL_J1106.7+3623_weekly_bin684.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/583169/ft1_filtered_4FGL_J1106.7+3623_weekly_bin684.fits scfile=/scratch/kocevski/583169/ft2_4FGL_J1106.7+3623_weekly_bin684.fits outfile=/scratch/kocevski/583169/cmap_HighResolution_652665601_653270401_4FGL_J1106.7+3623_weekly_bin684.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.57
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/583169/ft1_filtered_4FGL_J1106.7+3623_weekly_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/583169/ft2_4FGL_J1106.7+3623_weekly_bin684.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/583169/Model_4FGL_J1106.7+3623_weekly_bin684.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/583169/ft1_filtered_4FGL_J1106.7+3623_weekly_bin684.fits.....................!
real 24.39
user 23.05
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3973       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    58.218       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5871       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    406.66       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .93073       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    104.28       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14125E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11070E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .38150       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94880       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=   1433.010     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4771 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3978        3.6919        .29291E-06   -.36840E-03
   2  Prefactor     .10000E-03    40.721       -.48213E-05** at limit **
   3  Prefactor     .10000E-03    2.0600       -.32487E-07** at limit **
   4  norm          .10000E-03    3.8029       -.29480E-07** at limit **
   5  Prefactor     58.213        76.636       -.15496E-05    .14672E-04
   6  Prefactor     .10000E-03    28.183        .51354E-05** at limit **
   7  Prefactor     5.4408        6.0690       -.30520E-07   -.45066E-04
   8  Prefactor     6.5874        6.5074        .65263E-06   -.15754E-04
   9  Prefactor     .10000E-03    23.174        .48815E-05** at limit **
  10  Prefactor     .10000E-03    24.871       -.11667E-04** at limit **
  11  Prefactor     406.74        267.13        .41936E-04    .59431E-05
  12  Prefactor     .10000E-03    30.573       -.36811E-05** at limit **
  13  norm          .93077        .76407        .35353E-06    .76621E-04
  14  Prefactor     .10000E-03    10.207        .69892E-07** at limit **
  15  Prefactor     104.25        87.062       -.14977E-04    .29430E-04
  16  Prefactor     .10000E-03    28.983        .43557E-05** at limit **
  17  norm          .10000E-03    30.141       -.82648E-06** at limit **
  18  norm          .10000E-03    571.24       -.21384E-03** at limit **
  19  Prefactor     .10000E-03    8.9299        .83925E-07** at limit **
  20  Prefactor     .10000E-03    162.54        .11523E-04** at limit **
  21  Prefactor     .10000E-03    6901.6       -.48478E-03** at limit **
  22  norm          .10000E-03    13.083        .29727E-07** at limit **
  23  Prefactor    10000.0        8279.6        .17682E-02** at limit **
  24  Prefactor     .10000E-03    79.912        .39402E-04** at limit **
  25  Prefactor     .10000E-03    389.90        .63791E-04** at limit **
  26  norm          .10000E-03    3.6365       -.79737E-07** at limit **
  27  norm          .10000E-03    27.642        .42057E-05** at limit **
  28  Prefactor     .10000E-03    187.60        .77293E-04** at limit **
  29  Prefactor     .10000E-03    107.78       -.82970E-04** at limit **
  30  Normalizat    .38089        .33974       -.12300E-04    .55267E-04
  31  Prefactor     .94931        .37526        .34965E-05   -.14891E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.39783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 58.2131
  Prefactor  = 0.0001
  Prefactor  = 5.44076
  Prefactor  = 6.58742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 406.745
  Prefactor  = 0.0001
  norm       = 0.930771
  Prefactor  = 0.0001
  Prefactor  = 104.253
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.380889
  Prefactor  = 0.949311
 **********
 **   18 **HESSE 
 **********

 FCN=   1433.010     FROM HESSE     STATUS=OK           604 CALLS     5375 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3978        3.6925        .31515E-03   -1.5289    
   2  Prefactor     .10000E-03    41.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.0711        .52983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.8058        .72091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     58.213        76.604        .52579E-04   -1.4181    
   6  Prefactor     .10000E-03    28.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4408        6.0676        .87846E-04   -1.5241    
   8  Prefactor     6.5874        6.4967        .90733E-04   -1.5195    
   9  Prefactor     .10000E-03    23.178        .17805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     406.74        267.77        .10126E-03   -1.1647    
  12  Prefactor     .10000E-03    30.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .93077        .76665        .27836E-04   -1.5515    
  14  Prefactor     .10000E-03    10.214        .11815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     104.25        86.915        .19688E-03   -1.3662    
  16  Prefactor     .10000E-03    28.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    30.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    571.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9326        .11050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    162.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6901.7        .20694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    13.089        .13376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        8279.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    79.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    389.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.6393        .70512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    27.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    187.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    107.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .38089        .38109        .30952E-03   -1.1830    
  31  Prefactor     .94931        .42705        .24570E-03   -.94439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68517e-10
Minuit parameter uncertainties:
  1  3.69273
  2  0.000212326
  3  1.15786e-05
  4  7.4937e-06
  5  76.7341
  6  2.9341e-05
  7  6.06829
  8  6.49739
  9  7.61433e-06
  10  4.1631e-05
  11  268.598
  12  4.90146e-05
  13  0.766662
  14  1.90039e-05
  15  87.0217
  16  9.33302e-05
  17  4.63351e-05
  18  0.00020831
  19  1.73454e-05
  20  5.76681e-05
  21  0.00687099
  22  1.20278e-05
  23  0.00601907
  24  5.09657e-05
  25  8.58582e-05
  26  9.22996e-08
  27  2.2645e-07
  28  1.24913e-05
  29  9.56215e-07
  30  0.383723
  31  0.428576
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.043e+02  8.702e+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:  9.493e-01  4.286e-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.809e-01  3.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 166.688 36.400
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 2.76e-07 +/- 2.30e-07
Energy Flux (Fixed Index): 7.94e-05 +/- 6.63e-05

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

Saving results to:
/scratch/kocevski/583169/likelihoodResults_652665601_653270401_4FGL_J1106.7+3623_weekly_bin684.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): 0
logL (Free Index) = 1432.9678204
delta logL = 0.0417577611952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1432.96567982
delta logL = 0.0438983438623

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    128.56       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2051       1.0000          .0000       10.000    
     3 'Normalizat'    .41095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92241       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=   1432.966     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      287 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     128.60        125.12        .17754E-03    .12919E-04
   2  Index         2.2056        .96516        .55577E-02    .22946E-05
   3  Normalizat    .41104        .35171        .29885E-03   -.12620E-04
   4  Prefactor     .92226        .42523        .24894E-03    .19489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 128.6
  Index      = 2.20556
  Normalizat = 0.411042
  Prefactor  = 0.922259
 **********
 **   18 **HESSE 
 **********

 FCN=   1432.966     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     128.60        122.67        .71016E-05   -1.3435    
   2  Index         2.2056        .94510        .22231E-03   -.59304    
   3  Normalizat    .41104        .35125        .11954E-04   -1.1673    
   4  Prefactor     .92226        .42504        .99575E-05   -.95368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58041e-11
Minuit parameter uncertainties:
  1  122.918
  2  0.953485
  3  0.353158
  4  0.426581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/583169': 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) = 1432.96567939
delta logL = 0.0438987784564

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.286e+02  1.229e+02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.206e+00  9.535e-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:  9.223e-01  4.266e-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:  4.110e-01  3.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 166.688 36.400
Photon Index (Free Index): 2.21 +/- 0.95
Photon Flux (Free Index): 2.07e-07 +/- 2.77e-07
Energy Flux (Free Index): 9.19e-05 +/- 1.01e-04

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/583169/cmap_HighResolution_652665601_653270401_4FGL_J1106.7+3623_weekly_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.17e-02', comment='SUCCESS', photon_flux='2.76e-07', energy_flux2='9.19e-05', photon_flux_error='2.30e-07', dlogl='4.39e-02', energy_flux='7.94e-05', photon_flux2='2.07e-07', job_status='DONE', time_completed='2021-12-08 14:52:59.653128', photon_index_error2='0.95', photon_index2='2.21', ts='3.08', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='7.93e-07', energy_flux_error2='1.01e-04', EG='0.38', time_epoch_completed='1639003979.65', return_code='0', job_id='583169', GAL2='0.92', EG2='0.41', return_code2='0', energy_flux_error='6.63e-05', photon_flux_error2='2.77e-07', ts2='3.24', photon_index='2.51' WHERE bin_id='684' AND source_name='4FGL J1106.7+3623' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Dec  8 14:52:59 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 583169: <4FGL_J1106.7+3623_weekly_bin684> in cluster <slac> Done

Job <4FGL_J1106.7+3623_weekly_bin684> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Dec  8 14:40:24 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 14:43:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 14:43:50 2021
Terminated at Wed Dec  8 14:53:00 2021
Results reported at Wed Dec  8 14:53:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_weekly_bin684 166.688 36.3995 652665601 653270401 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 :                                   533.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             305.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            756 sec.

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

