/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 17 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 = 7393
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1104.4+3812_daily_bin75
RA = 166.119, Dec = 38.207
tmin = 258768001, tmax = 259027201
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='491115', job_status='RUN', time_executed='2021-09-03 06:39:43.622128', time_epoch_executed='1630676383.62' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491115

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491115/ft1_4FGL_J1104.4+3812_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491115/ft2_4FGL_J1104.4+3812_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491115/ft1_4FGL_J1104.4+3812_daily_bin75.fits outfile=/scratch/kocevski/491115/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin75.fits ra=166.119 dec=38.207 rad=12.0 tmin=258768001.0 tmax=259027201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.28
user 0.78
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491115/ft2_4FGL_J1104.4+3812_daily_bin75.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/491115/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/491115/ft1_filtered_4FGL_J1104.4+3812_daily_bin75.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 1.78
user 0.29
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491115/ft1_filtered_4FGL_J1104.4+3812_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/491115/ft2_4FGL_J1104.4+3812_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/491115/ltcube_258768001_259027201_4FGL_J1104.4+3812_daily_bin75.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/491115/ft2_4FGL_J1104.4+3812_daily_bin75.fits
.....................!
real 10.97
user 9.59
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491115/ft1_filtered_4FGL_J1104.4+3812_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/491115/ft2_4FGL_J1104.4+3812_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/491115/ltcube_258768001_259027201_4FGL_J1104.4+3812_daily_bin75.fits outfile=/scratch/kocevski/491115/expmap_258768001_259027201_4FGL_J1104.4+3812_daily_bin75.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/491115/ltcube_258768001_259027201_4FGL_J1104.4+3812_daily_bin75.fits
.....................!
real 159.05
user 145.80
sys 4.17

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/491115/ft1_filtered_4FGL_J1104.4+3812_daily_bin75.fits scfile=/scratch/kocevski/491115/ft2_4FGL_J1104.4+3812_daily_bin75.fits outfile=/scratch/kocevski/491115/cmap_258768001_259027201_4FGL_J1104.4+3812_daily_bin75.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 1.21
user 0.32
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491115/ft1_filtered_4FGL_J1104.4+3812_daily_bin75.fits scfile=/scratch/kocevski/491115/ft2_4FGL_J1104.4+3812_daily_bin75.fits outfile=/scratch/kocevski/491115/cmap_HighResolution_258768001_259027201_4FGL_J1104.4+3812_daily_bin75.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 1.30
user 0.32
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.265       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .92053E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.130       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8458       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.586       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.579       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .55173       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4424       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4786       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12075E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10739E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .91667E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    50.188       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.134       1.0000         .10000E-03   10000.    
    27 'norm      '    .41872       1.0000         .10000E-03   10000.    
    28 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    263.38       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .88516       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0910       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=   3119.277     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4462 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3536        .12915E-06** at limit **
   2  Prefactor     12.290        48.541        .16879E-05   -.91590E-05
   3  Prefactor     .10000E-03    1.9814        .12497E-06** at limit **
   4  norm          .10000E-03    4.8669       -.10553E-07** at limit **
   5  Prefactor     .10001E-03    1066.2       -.24071E-04** at limit **
   6  Prefactor     31.079        30.510        .14886E-06    .45607E-04
   7  Prefactor     4.8488        6.6783        .37050E-06   -.18543E-04
   8  Prefactor     .10000E-03    3.1035        .41261E-06** at limit **
   9  Prefactor     16.512        57.326        .92409E-06   -.88438E-05
  10  Prefactor     .10000E-03    15.483        .50020E-07** at limit **
  11  Prefactor     24.597        126.18        .25562E-05   -.29706E-05
  12  Prefactor     .10000E-03    4.1359        .11930E-07** at limit **
  13  norm          .55184        .38380        .10710E-07   -.46969E-03
  14  Prefactor     4.4430        3.4849        .10838E-06   -.38822E-04
  15  Prefactor     1.4822        62.738        .51686E-05    .70406E-05
  16  Prefactor     .10000E-03    12.140       -.89337E-09** at limit **
  17  Prefactor     .10000E-03    72.007        .42405E-07** at limit **
  18  norm          .10000E-03    11.990       -.88345E-07** at limit **
  19  norm          .10000E-03    46.019        .21161E-07** at limit **
  20  Prefactor     .10000E-03    1.2937        .38511E-07** at limit **
  21  Prefactor     .10000E-03    19.712        .51764E-07** at limit **
  22  Prefactor     .10000E-03    68.510       -.97617E-07** at limit **
  23  norm          .55255E-02    1.6994        .88475E-06   -.11760E-02
  24  Prefactor     50.184        27.727        .28457E-07   -.70563E-04
  25  Prefactor     .10000E-03    6.6286        .13014E-06** at limit **
  26  Prefactor     19.122        31.159        .10707E-05    .16816E-04
  27  norm          .41972        1.2841       -.39966E-06   -.35281E-03
  28  norm          .10000E-03    43.349       -.27477E-05** at limit **
  29  Prefactor     .10000E-03    28.570        .38186E-07** at limit **
  30  Prefactor     263.33        116.75        .27039E-05    .38221E-04
  31  Normalizat    .88473        .24621       -.29146E-05   -.16020E-03
  32  Prefactor     1.0915        .27868       -.82030E-06   -.19455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.2899
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 31.079
  Prefactor  = 4.84881
  Prefactor  = 0.0001
  Prefactor  = 16.5116
  Prefactor  = 0.0001
  Prefactor  = 24.5969
  Prefactor  = 0.0001
  norm       = 0.551842
  Prefactor  = 4.44305
  Prefactor  = 1.48219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00552551
  Prefactor  = 50.1843
  Prefactor  = 0.0001
  Prefactor  = 19.1221
  norm       = 0.41972
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 263.327
  Normalizat = 0.884734
  Prefactor  = 1.09148
 **********
 **   18 **HESSE 
 **********

 FCN=   3119.277     FROM HESSE     STATUS=OK           655 CALLS     5117 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4650        .19988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.290        48.539        .11438E-03   -1.5007    
   3  Prefactor     .10000E-03    1.9877        .76808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.8687        .12031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    1059.9        .36455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.079        30.599        .71813E-04   -1.4592    
   7  Prefactor     4.8488        6.6536        .15505E-03   -1.5268    
   8  Prefactor     .10000E-03    3.1203        .96176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.512        57.223        .98344E-04   -1.4895    
  10  Prefactor     .10000E-03    15.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.597        125.99        .80799E-04   -1.4716    
  12  Prefactor     .10000E-03    4.1374        .11093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55184        .37629        .26624E-04   -1.5559    
  14  Prefactor     4.4430        3.4812        .89252E-04   -1.5286    
  15  Prefactor     1.4822        62.368        .35306E-03   -1.5464    
  16  Prefactor     .10000E-03    12.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    72.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    46.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.3046        .62018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    69.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55255E-02    2.6605        .24962E-01   -1.5693    
  24  Prefactor     50.184        27.688        .56608E-04   -1.4290    
  25  Prefactor     .10000E-03    6.7794        .14043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.122        30.953        .91564E-04   -1.4833    
  27  norm          .41972        1.1577        .95612E-03   -1.5578    
  28  norm          .10000E-03    44.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    28.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     263.33        114.50        .12489E-03   -1.2448    
  31  Normalizat    .88473        .28837        .24458E-03   -.96999    
  32  Prefactor     1.0915        .33566        .27233E-03   -.89739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08942e-09
Minuit parameter uncertainties:
  1  1.35927e-05
  2  48.6959
  3  4.97179e-06
  4  1.71004e-06
  5  0.00478277
  6  30.6141
  7  6.65463
  8  1.18079e-05
  9  57.4137
  10  1.1683e-05
  11  111.709
  12  2.39494e-06
  13  0.376291
  14  3.48133
  15  19.2501
  16  3.0285e-06
  17  1.30007e-05
  18  1.65215e-05
  19  1.11514e-05
  20  1.77367e-06
  21  1.03521e-05
  22  0.00016478
  23  0.240301
  24  27.6951
  25  2.73733e-05
  26  30.9788
  27  1.15775
  28  0.000158714
  29  3.1433e-05
  30  114.597
  31  0.288873
  32  0.33631
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  5.518e-01  3.763e-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.091e+00  3.363e-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:  8.847e-01  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.96
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 5.73e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 7.75e-05 +/- 5.29e-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) = 3116.63763638
delta logL = 2.63899372452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3116.47770764
delta logL = 2.79892246456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19550E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1894       1.0000          .0000       5.0000    
     3 'Normalizat'    .59929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3552       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=   3116.478     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      270 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19555E-01    .12425        .67509E-03    .44016E-02
   2  alpha         4.1899        3.9470        .11845        .42048E-04
   3  Normalizat    .59947        .10645        .65558E-01    .25970E-04
   4  Prefactor     1.3549        .13094        .56137E-01    .90148E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.019555
  alpha      = 4.18986
  Normalizat = 0.599471
  Prefactor  = 1.35492
 **********
 **   18 **HESSE 
 **********

 FCN=   3116.478     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19555E-01    .59175E-01    .29712E-05   -1.5680    
   2  alpha         4.1899        1.2588        .52428E-03    .74225    
   3  Normalizat    .59947        .28560        .29011E-03   -1.0801    
   4  Prefactor     1.3549        .34795        .24821E-03   -.81688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93139e-12
Minuit parameter uncertainties:
  1  0.0591748
  2  1.38586
  3  0.286301
  4  0.348556
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491115': 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) = 3116.47770248
delta logL = 2.79892762442

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.955e-02  5.917e-02  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  4.190e+00  1.386e+00  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.355e+00  3.486e-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:  5.995e-01  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.53
Ra Dec: 166.119 38.207
Photon Index (Free Index): 4.19 +/- 1.39
Photon Flux (Free Index): 2.29e-07 +/- 9.50e-08
Energy Flux (Free Index): 3.37e-05 +/- 1.45e-05

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/491115/cmap_HighResolution_258768001_259027201_4FGL_J1104.4+3812_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.73e-08', energy_flux2='3.37e-05', photon_flux_error='3.91e-08', dlogl='2.80e+00', energy_flux='7.75e-05', photon_flux2='2.29e-07', job_status='DONE', time_completed='2021-09-03 06:48:17.885430', photon_index_error2='1.39', photon_index2='4.19', ts='4.96', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='0.88', time_epoch_completed='1630676897.89', return_code='0', job_id='491115', GAL2='1.35', EG2='0.60', return_code2='0', energy_flux_error='5.29e-05', photon_flux_error2='9.50e-08', ts2='11.53', photon_index='1.74' WHERE bin_id='75' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:48:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 491115: <4FGL_J1104.4+3812_daily_bin75> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin75> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 06:37:11 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:37:41 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:37:41 2021
Terminated at Fri Sep  3 06:48:18 2021
Results reported at Fri Sep  3 06:48:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin75 166.119 38.207 258768001 259027201 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 :                                   473.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            667 sec.

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

