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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin710
RA = 166.119, Dec = 38.207
tmin = 423360001, tmax = 423619201
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='494017', job_status='RUN', time_executed='2021-09-03 06:50:32.485001', time_epoch_executed='1630677032.49' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494017/ft1_4FGL_J1104.4+3812_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494017/ft2_4FGL_J1104.4+3812_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494017/ft1_4FGL_J1104.4+3812_daily_bin710.fits outfile=/scratch/kocevski/494017/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin710.fits ra=166.119 dec=38.207 rad=12.0 tmin=423360001.0 tmax=423619201.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 5.68
user 5.38
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494017/ft1_filtered_4FGL_J1104.4+3812_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/494017/ft2_4FGL_J1104.4+3812_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/494017/ltcube_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.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/494017/ft2_4FGL_J1104.4+3812_daily_bin710.fits
.....................!
real 11.77
user 11.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494017/ft1_filtered_4FGL_J1104.4+3812_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/494017/ft2_4FGL_J1104.4+3812_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/494017/ltcube_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.fits outfile=/scratch/kocevski/494017/expmap_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.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/494017/ltcube_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.fits
.....................!
real 193.59
user 187.67
sys 5.24

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/494017/ft1_filtered_4FGL_J1104.4+3812_daily_bin710.fits scfile=/scratch/kocevski/494017/ft2_4FGL_J1104.4+3812_daily_bin710.fits outfile=/scratch/kocevski/494017/cmap_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.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.86
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494017/ft1_filtered_4FGL_J1104.4+3812_daily_bin710.fits scfile=/scratch/kocevski/494017/ft2_4FGL_J1104.4+3812_daily_bin710.fits outfile=/scratch/kocevski/494017/cmap_HighResolution_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.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.77
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494017/ft1_filtered_4FGL_J1104.4+3812_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/494017/ft2_4FGL_J1104.4+3812_daily_bin710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494017/Model_4FGL_J1104.4+3812_daily_bin710.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/494017/ft1_filtered_4FGL_J1104.4+3812_daily_bin710.fits.....................!
real 42.76
user 40.10
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/494017/ft1_filtered_4FGL_J1104.4+3812_daily_bin710.fits', '/scratch/kocevski/494017/ft2_4FGL_J1104.4+3812_daily_bin710.fits', expMap='/scratch/kocevski/494017/expmap_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.fits', expCube='/scratch/kocevski/494017/ltcube_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/494017/Model_4FGL_J1104.4+3812_daily_bin710.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/494017/ft1_filtered_4FGL_J1104.4+3812_daily_bin710.fits
Spacecraft file(s): /scratch/kocevski/494017/ft2_4FGL_J1104.4+3812_daily_bin710.fits
Exposure map: /scratch/kocevski/494017/expmap_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.fits
Exposure cube: /scratch/kocevski/494017/ltcube_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/494017/Model_4FGL_J1104.4+3812_daily_bin710.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) = 4190.09620811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.254       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14301E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.237       1.0000         .10000E-03   10000.    
     5 'Prefactor '    88.796       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4288       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4635       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6568       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8573       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0517       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13263E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.815       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .99675       1.0000         .10000E-03   10000.    
    23 'norm      '    12.808       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .73893E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    54.862       1.0000         .10000E-03   10000.    
    27 'norm      '    5.6585       1.0000         .10000E-03   10000.    
    28 'norm      '    2.9475       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .18016E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97169       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .93276       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=   4190.082     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     4476 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    3.4080        .10166E-05** at limit **
   2  Prefactor     25.234        40.200        .43812E-06   -.80006E-04
   3  Prefactor     .10004E-03    19.964       -.12748E-04** at limit **
   4  norm          17.237        11.909       -.19286E-06   -.21395E-03
   5  Prefactor     88.790        76.912       -.48533E-06   -.51378E-04
   6  Prefactor     .10000E-03    34.773        .50775E-06** at limit **
   7  Prefactor     7.4275        4.9183        .45291E-07   -.17256E-03
   8  Prefactor     8.4632        6.9653       -.50869E-06   -.40396E-03
   9  Prefactor     3.6454        90.628        .22921E-05   -.97850E-05
  10  Prefactor     7.5998        40.470        .14322E-05   -.40230E-04
  11  Prefactor     .10000E-03    46.320        .37285E-06** at limit **
  12  Prefactor     .10000E-03    40.878        .21462E-05** at limit **
  13  norm          2.8572        .56860       -.13975E-07   -.16767E-02
  14  Prefactor     3.0497        3.5981        .17811E-06   -.25469E-03
  15  Prefactor     .10000E-03    29.337        .17203E-05** at limit **
  16  Prefactor     .10000E-03    22.030        .88895E-06** at limit **
  17  Prefactor     .10000E-03    54.890        .88723E-06** at limit **
  18  norm          .10000E-03    11.581        .57466E-06** at limit **
  19  norm          .10000E-03    30.055        .17531E-06** at limit **
  20  Prefactor     .10003E-03    6.9878        .64918E-05** at limit **
  21  Prefactor     46.067        86.799        .39564E-05   -.25018E-03
  22  Prefactor     1.0556        13.709        .48126E-06   -.10179E-03
  23  norm          12.811        5.8670       -.11377E-06   -.16103E-03
  24  Prefactor     .10000E-03    11.998        .46677E-06** at limit **
  25  Prefactor     .21007E-03    11.788        .79120E-05** at limit **
  26  Prefactor     54.832        69.645        .54080E-06    .17645E-04
  27  norm          5.6584        2.1588        .71692E-07   -.28028E-03
  28  norm          2.9461        12.662       -.19838E-05    .12647E-03
  29  Prefactor     .10001E-03    148.41        .45726E-05** at limit **
  30  Prefactor     .10000E-03    77.033        .57060E-06** at limit **
  31  Normalizat    .97224        .22791       -.25953E-05   -.81350E-03
  32  Prefactor     .93249        .26518       -.12617E-05   -.56427E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Prefactor  = 25.2337
  Prefactor  = 0.00010004
  norm       = 17.2368
  Prefactor  = 88.79
  Prefactor  = 0.0001
  Prefactor  = 7.42746
  Prefactor  = 8.46317
  Prefactor  = 3.64536
  Prefactor  = 7.59977
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.8572
  Prefactor  = 3.04966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 46.0669
  Prefactor  = 1.05563
  norm       = 12.8111
  Prefactor  = 0.0001
  Prefactor  = 0.000210074
  Prefactor  = 54.8323
  norm       = 5.65842
  norm       = 2.9461
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Normalizat = 0.972238
  Prefactor  = 0.932486
 **********
 **   18 **HESSE 
 **********

 FCN=   4190.082     FROM HESSE     STATUS=OK           663 CALLS     5139 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    13.823        .21830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.234        40.380        .79713E-04   -1.4703    
   3  Prefactor     .10004E-03    24.275        .22295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.237        11.893        .96469E-04   -1.4877    
   5  Prefactor     88.790        76.888        .42639E-04   -1.3821    
   6  Prefactor     .10000E-03    34.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.4275        4.9133        .11066E-03   -1.5163    
   8  Prefactor     8.4632        6.9325        .68898E-03   -1.5126    
   9  Prefactor     3.6454        90.188        .21124E-03   -1.5326    
  10  Prefactor     7.5998        40.572        .14530E-03   -1.5157    
  11  Prefactor     .10000E-03    46.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8572        .56889        .20925E-04   -1.5370    
  14  Prefactor     3.0497        3.5875        .12775E-03   -1.5359    
  15  Prefactor     .10000E-03    29.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    54.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    11.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    30.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    23.287        .17692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.067        85.713        .29618E-03   -1.4349    
  22  Prefactor     1.0556        78.349        .45502E-02   -1.5502    
  23  norm          12.811        5.8216        .84495E-04   -1.4992    
  24  Prefactor     .10000E-03    12.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .21007E-03    11.153        .44081E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     54.832        70.100        .54155E-04   -1.4226    
  27  norm          5.6584        2.1700        .50372E-04   -1.5232    
  28  norm          2.9461        12.444        .11828E-02   -1.5365    
  29  Prefactor     .10001E-03    153.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    77.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .97224        .27593        .25405E-03   -.93966    
  32  Prefactor     .93249        .31873        .31340E-03   -.95015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60191e-09
Minuit parameter uncertainties:
  1  0.00139538
  2  40.4241
  3  0.00196257
  4  11.8951
  5  76.9739
  6  0.000188376
  7  4.91357
  8  6.93311
  9  36.3249
  10  35.1561
  11  0.000230211
  12  0.000631839
  13  0.568892
  14  3.58776
  15  0.000163
  16  2.09894e-05
  17  0.000281856
  18  4.9934e-05
  19  7.3395e-05
  20  0.00165674
  21  85.9439
  22  18.2126
  23  5.82189
  24  4.05426e-05
  25  0.0700886
  26  70.2062
  27  2.17008
  28  12.1138
  29  0.00185709
  30  0.000775833
  31  0.276336
  32  0.319368
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.857e+00  5.689e-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:  9.325e-01  3.194e-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:  9.722e-01  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 151.54
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.97e-07 +/- 5.91e-08
Energy Flux (Fixed Index): 4.01e-04 +/- 7.99e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4189.88467109
delta logL = 0.197474710062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4189.87130694
delta logL = 0.210838859286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7549       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8351       1.0000          .0000       5.0000    
     3 'Normalizat'    .94434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95082       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.

 FCN=   4189.871     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      197 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7549        .76870        .45528E-02    .15763E-02
   2  alpha         1.8351        .20460        .82849E-01    .27484E-04
   3  Normalizat    .94428        .21946        .45466E-01    .12372E-04
   4  Prefactor     .95065        .26309        .70152E-01    .11681E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.75488
  alpha      = 1.83508
  Normalizat = 0.944281
  Prefactor  = 0.950651
 **********
 **   18 **HESSE 
 **********

 FCN=   4189.871     FROM HESSE     STATUS=OK            29 CALLS      226 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7549        .57415        .20109E-04   -1.5376    
   2  alpha         1.8351        .15469        .36218E-03   -.26921    
   3  Normalizat    .94428        .26185        .25692E-03   -.94921    
   4  Prefactor     .95065        .31413        .31034E-03   -.94393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21554e-11
Minuit parameter uncertainties:
  1  0.574147
  2  0.154792
  3  0.262208
  4  0.314738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494017': 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) = 4189.87130557
delta logL = 0.210840230559

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  2.755e+00  5.741e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.835e+00  1.548e-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:  9.507e-01  3.147e-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:  9.443e-01  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 150.66
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.84 +/- 0.15
Photon Flux (Free Index): 3.25e-07 +/- 7.65e-08
Energy Flux (Free Index): 3.31e-04 +/- 1.15e-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/494017/cmap_HighResolution_423360001_423619201_4FGL_J1104.4+3812_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.97e-07', energy_flux2='3.31e-04', photon_flux_error='5.91e-08', dlogl='2.11e-01', energy_flux='4.01e-04', photon_flux2='3.25e-07', job_status='DONE', time_completed='2021-09-03 07:02:48.548870', photon_index_error2='0.15', photon_index2='1.84', ts='151.54', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='0.97', time_epoch_completed='1630677768.55', return_code='0', job_id='494017', GAL2='0.95', EG2='0.94', return_code2='0', energy_flux_error='7.99e-05', photon_flux_error2='7.65e-08', ts2='150.66', photon_index='1.74' WHERE bin_id='710' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:02:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 494017: <4FGL_J1104.4+3812_daily_bin710> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin710> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:46:20 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:46:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 06:46:30 2021
Terminated at Fri Sep  3 07:02:49 2021
Results reported at Fri Sep  3 07:02:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin710 166.119 38.207 423360001 423619201 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 :                                   730.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            989 sec.

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

