/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 8 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_J1104.4+3812_monthly_bin118
RA = 166.119, Dec = 38.207
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='377418', job_status='RUN', time_executed='2021-10-22 10:40:56.746073', time_epoch_executed='1634924456.75' WHERE source_name='4FGL J1104.4+3812' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377418

Creating custom pfile directory:
/scratch/kocevski/377418/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/377418/ft1_4FGL_J1104.4+3812_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/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377418/ft1_4FGL_J1104.4+3812_monthly_bin118.fits outfile=/scratch/kocevski/377418/ft1_filteredMKT_4FGL_J1104.4+3812_monthly_bin118.fits ra=166.119 dec=38.207 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.45
user 17.98
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/377418/ft2_4FGL_J1104.4+3812_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/377418/ft1_filteredMKT_4FGL_J1104.4+3812_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/377418/ft1_filtered_4FGL_J1104.4+3812_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.60
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/377418/ft1_filtered_4FGL_J1104.4+3812_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/377418/ltcube_542851201_545443201_4FGL_J1104.4+3812_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/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits
.....................!
real 39.30
user 38.92
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377418/ft1_filtered_4FGL_J1104.4+3812_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/377418/ltcube_542851201_545443201_4FGL_J1104.4+3812_monthly_bin118.fits outfile=/scratch/kocevski/377418/expmap_542851201_545443201_4FGL_J1104.4+3812_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/377418/ltcube_542851201_545443201_4FGL_J1104.4+3812_monthly_bin118.fits
.....................!
real 192.74
user 187.40
sys 5.03

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

Setting source of interest to:
4FGL J1104.4+3812 @ 166.119 38.207

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/377418/ft1_filtered_4FGL_J1104.4+3812_monthly_bin118.fits scfile=/scratch/kocevski/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits outfile=/scratch/kocevski/377418/cmap_542851201_545443201_4FGL_J1104.4+3812_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.119 yref=38.207 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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377418/ft1_filtered_4FGL_J1104.4+3812_monthly_bin118.fits scfile=/scratch/kocevski/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits outfile=/scratch/kocevski/377418/cmap_HighResolution_542851201_545443201_4FGL_J1104.4+3812_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.119 yref=38.207 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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/377418/ft1_filtered_4FGL_J1104.4+3812_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/377418/Model_4FGL_J1104.4+3812_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/377418/ft1_filtered_4FGL_J1104.4+3812_monthly_bin118.fits......................!
real 31.26
user 29.98
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377418/ft1_filtered_4FGL_J1104.4+3812_monthly_bin118.fits', '/scratch/kocevski/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits', expMap='/scratch/kocevski/377418/expmap_542851201_545443201_4FGL_J1104.4+3812_monthly_bin118.fits', expCube='/scratch/kocevski/377418/ltcube_542851201_545443201_4FGL_J1104.4+3812_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377418/Model_4FGL_J1104.4+3812_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.4+3812'

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.879e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/377418/ft1_filtered_4FGL_J1104.4+3812_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/377418/ft2_4FGL_J1104.4+3812_monthly_bin118.fits
Exposure map: /scratch/kocevski/377418/expmap_542851201_545443201_4FGL_J1104.4+3812_monthly_bin118.fits
Exposure cube: /scratch/kocevski/377418/ltcube_542851201_545443201_4FGL_J1104.4+3812_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377418/Model_4FGL_J1104.4+3812_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) = 2408.47658715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8290       1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.571       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.670       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .59882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.443       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10725E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.291       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0113       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.311       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.1695       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    53.369       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .28613       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.5724       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2408.445     FROM MIGRAD    STATUS=CONVERGED    860 CALLS     5366 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8293        17.124       -.42757E-06   -.73266E-04
   2  Prefactor     27.588        212.26        .25260E-04    .10566E-04
   3  Prefactor     21.672        22.982        .38320E-07   -.41128E-04
   4  norm          .10000E-03    15.783       -.25960E-05** at limit **
   5  Prefactor     .10000E-03    79.759        .71543E-04** at limit **
   6  Prefactor     .10000E-03    26.272       -.31085E-05** at limit **
   7  Prefactor     .10000E-03    19.748       -.93815E-05** at limit **
   8  Prefactor     .10000E-03    4.7649        .47063E-07** at limit **
   9  Prefactor     .10000E-03    36.781        .94684E-05** at limit **
  10  Prefactor     .10000E-03    12.175        .43741E-06** at limit **
  11  Prefactor     .10000E-03    225.11        .15410E-03** at limit **
  12  Prefactor     .10000E-03    9.0503        .18842E-06** at limit **
  13  norm          .59885        .54210        .38453E-07   -.38420E-03
  14  Prefactor     1.7350        3.5911       -.64177E-07   -.27201E-03
  15  Prefactor     .10000E-03    19.405        .90889E-05** at limit **
  16  Prefactor     30.445        34.343       -.56496E-06   -.62160E-07
  17  Prefactor     .10000E-03    741.06       -.14029E-03** at limit **
  18  norm          .10000E-03    14.768        .43504E-05** at limit **
  19  norm          .10000E-03    860.00       -.28758E-03** at limit **
  20  Prefactor     .10000E-03    6.0661        .20804E-06** at limit **
  21  Prefactor     .10000E-03    109.90       -.11809E-03** at limit **
  22  Prefactor     34.293        49.814        .99038E-06    .28209E-04
  23  norm          3.0133        4.9707        .51718E-06    .55679E-03
  24  Prefactor     22.317        37.581       -.58086E-08    .19302E-04
  25  Prefactor     .10000E-03    12.453       -.38787E-06** at limit **
  26  Prefactor     .10000E-03    37.303        .23462E-05** at limit **
  27  norm          1.1696        1.7009       -.10905E-06    .10268E-03
  28  norm          .10000E-03    15.066       -.40171E-05** at limit **
  29  Prefactor     53.378        53.014       -.27799E-06    .41238E-04
  30  Prefactor     .10000E-03    46.158       -.23335E-04** at limit **
  31  Normalizat    .28609        .40766       -.51577E-06   -.11633E-05
  32  Prefactor     1.5724        .39620       -.90183E-06    .68544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.82931
  Prefactor  = 27.5878
  Prefactor  = 21.6723
  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.598847
  Prefactor  = 1.73499
  Prefactor  = 0.0001
  Prefactor  = 30.4451
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2933
  norm       = 3.01335
  Prefactor  = 22.3175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.16965
  norm       = 0.0001
  Prefactor  = 53.3783
  Prefactor  = 0.0001
  Normalizat = 0.286088
  Prefactor  = 1.5724
 **********
 **   18 **HESSE 
 **********

 FCN=   2408.445     FROM HESSE     STATUS=OK           645 CALLS     6011 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8293        17.129        .14331E-03   -1.5148    
   2  Prefactor     27.588        209.45        .76296E-04   -1.4657    
   3  Prefactor     21.672        22.920        .86043E-04   -1.4777    
   4  norm          .10000E-03    15.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    79.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7658        .10462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.176        .16727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    225.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.0752        .14409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .59885        .54065        .31334E-04   -1.5553    
  14  Prefactor     1.7350        3.4408        .11666E-03   -1.5445    
  15  Prefactor     .10000E-03    19.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.445        34.835        .72617E-04   -1.4604    
  17  Prefactor     .10000E-03    741.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    859.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.2605        .23417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    109.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.293        49.097        .68433E-04   -1.4536    
  23  norm          3.0133        4.8851        .13028E-03   -1.5361    
  24  Prefactor     22.317        37.260        .84799E-04   -1.4763    
  25  Prefactor     .10000E-03    12.578        .16851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    37.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.1696        1.6577        .74128E-04   -1.5492    
  28  norm          .10000E-03    15.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     53.378        51.924        .54903E-04   -1.4245    
  30  Prefactor     .10000E-03    46.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .28609        .37101        .46313E-03   -1.2368    
  32  Prefactor     1.5724        .39111        .23575E-03   -.75532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96905e-10
Minuit parameter uncertainties:
  1  17.1396
  2  152.781
  3  22.9289
  4  3.02226e-05
  5  1.4277e-05
  6  4.00784e-06
  7  8.3563e-05
  8  1.84309e-06
  9  7.52509e-06
  10  1.26218e-06
  11  1.91101e-05
  12  9.96026e-06
  13  0.540655
  14  3.4412
  15  3.05594e-06
  16  34.8587
  17  7.68772e-06
  18  3.27141e-06
  19  6.16407e-06
  20  5.83295e-05
  21  0.00019486
  22  49.1547
  23  4.88574
  24  37.2987
  25  3.05259e-05
  26  8.09583e-06
  27  1.65772
  28  8.5568e-06
  29  51.9683
  30  8.83961e-06
  31  0.374259
  32  0.391866
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  5.988e-01  5.407e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.736e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  1.572e+00  3.919e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  2.861e-01  3.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 6.22e-08 +/- 5.61e-08
Energy Flux (Fixed Index): 8.41e-05 +/- 7.59e-05

TS (Fixed Index): 2.64
Ra Dec: 166.119 38.207
Photon Flux Upper Limit: 1.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/377418/likelihoodResults_542851201_545443201_4FGL_J1104.4+3812_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): 0
logL (Free Index) = 2408.44446521
delta logL = 0.000192141443222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2408.44446377
delta logL = 0.00019358139798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59888       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7470       1.0000          .0000       5.0000    
     3 'Normalizat'    .28600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5722       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6580E+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=   2408.444     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      230 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59943        .50112        .31286E-04    .12998E-02
   2  alpha         1.7471        .58127        .10445E-01    .44879E-04
   3  Normalizat    .28577        .33863        .46337E-03    .31601E-04
   4  Prefactor     1.5724        .38632        .23574E-03   -.24353E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.599425
  alpha      = 1.7471
  Normalizat = 0.285771
  Prefactor  = 1.5724
 **********
 **   18 **HESSE 
 **********

 FCN=   2408.444     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59943        .50154        .12514E-05   -1.5553    
   2  alpha         1.7471        .58176        .41781E-03   -.30591    
   3  Normalizat    .28577        .33854        .18535E-04   -1.2370    
   4  Prefactor     1.5724        .38624        .94298E-05   -.75532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77381e-10
Minuit parameter uncertainties:
  1  0.50154
  2  0.587696
  3  0.341005
  4  0.386972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377418': 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) = 2408.44446294
delta logL = 0.00019441102404

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  5.994e-01  5.015e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.747e+00  5.877e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  2.035e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.264e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
655    Prefactor:  1.572e+00  3.870e-01  0.000e+00  1.000e+01 ( 1.000e+00)
656        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
657        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
654   Normalization:  2.858e-01  3.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.66
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.75 +/- 0.59
Photon Flux (Free Index): 6.31e-08 +/- 7.10e-08
Energy Flux (Free Index): 8.25e-05 +/- 1.05e-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/377418/cmap_HighResolution_542851201_545443201_4FGL_J1104.4+3812_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-04', comment='SUCCESS', photon_flux='6.22e-08', energy_flux2='8.25e-05', photon_flux_error='5.61e-08', dlogl='1.94e-04', energy_flux='8.41e-05', photon_flux2='6.31e-08', job_status='DONE', time_completed='2021-10-22 10:53:22.587329', photon_index_error2='0.59', photon_index2='1.75', ts='2.64', fit_tolerance='1e-08', GAL='1.57', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.05e-04', EG='0.29', time_epoch_completed='1634925202.59', return_code='0', job_id='377418', GAL2='1.57', EG2='0.29', return_code2='0', energy_flux_error='7.59e-05', photon_flux_error2='7.10e-08', ts2='2.66', photon_index='1.74' WHERE bin_id='118' AND source_name='4FGL J1104.4+3812' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 10:53:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 377418: <4FGL_J1104.4+3812_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1104.4+3812_monthly_bin118> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Oct 22 10:40:20 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 10:40: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 10:40:22 2021
Terminated at Fri Oct 22 10:53:24 2021
Results reported at Fri Oct 22 10:53:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_monthly_bin118 166.119 38.207 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.4+3812 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            784 sec.

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

