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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin680
RA = 166.119, Dec = 38.207
tmin = 415584001, tmax = 415843201
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='493513', job_status='RUN', time_executed='2021-09-03 06:47:38.251933', time_epoch_executed='1630676858.25' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493513/ft1_4FGL_J1104.4+3812_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493513/ft2_4FGL_J1104.4+3812_daily_bin680.fits


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

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

Done.
real 6.36
user 6.05
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/493513/ft2_4FGL_J1104.4+3812_daily_bin680.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/493513/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin680.fits evtable="EVENTS" outfile="/scratch/kocevski/493513/ft1_filtered_4FGL_J1104.4+3812_daily_bin680.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493513/ft1_filtered_4FGL_J1104.4+3812_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/493513/ft2_4FGL_J1104.4+3812_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/493513/ltcube_415584001_415843201_4FGL_J1104.4+3812_daily_bin680.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/493513/ft2_4FGL_J1104.4+3812_daily_bin680.fits
.....................!
real 12.79
user 12.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493513/ft1_filtered_4FGL_J1104.4+3812_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/493513/ft2_4FGL_J1104.4+3812_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/493513/ltcube_415584001_415843201_4FGL_J1104.4+3812_daily_bin680.fits outfile=/scratch/kocevski/493513/expmap_415584001_415843201_4FGL_J1104.4+3812_daily_bin680.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/493513/ltcube_415584001_415843201_4FGL_J1104.4+3812_daily_bin680.fits
.....................!
real 192.33
user 187.10
sys 4.88

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/493513/ft1_filtered_4FGL_J1104.4+3812_daily_bin680.fits scfile=/scratch/kocevski/493513/ft2_4FGL_J1104.4+3812_daily_bin680.fits outfile=/scratch/kocevski/493513/cmap_415584001_415843201_4FGL_J1104.4+3812_daily_bin680.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493513/ft1_filtered_4FGL_J1104.4+3812_daily_bin680.fits scfile=/scratch/kocevski/493513/ft2_4FGL_J1104.4+3812_daily_bin680.fits outfile=/scratch/kocevski/493513/cmap_HighResolution_415584001_415843201_4FGL_J1104.4+3812_daily_bin680.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5919       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    25.488       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11583E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    108.30       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6385       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    110.22       1.0000         .10000E-03   10000.    
    18 'norm      '    22.078       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1969       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.269       1.0000         .10000E-03   10000.    
    23 'norm      '    .16694       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11462E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7865       1.0000         .10000E-03   10000.    
    26 'Prefactor '    89.804       1.0000         .10000E-03   10000.    
    27 'norm      '    15.027       1.0000         .10000E-03   10000.    
    28 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    39.175       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .52252       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.5253       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=   3802.633     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4424 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5882        4.6027        .87892E-07    .15303E-03
   2  Prefactor     .10000E-03    59.899        .17585E-05** at limit **
   3  Prefactor     .10000E-03    5.4557       -.55776E-06** at limit **
   4  norm          25.490        15.835        .10168E-06   -.33446E-04
   5  Prefactor     .10000E-03    14.731       -.31348E-06** at limit **
   6  Prefactor     .10000E-03    65.052       -.12643E-06** at limit **
   7  Prefactor     .10000E-03    10.306        .31537E-06** at limit **
   8  Prefactor     .10001E-03    8.0310        .10805E-05** at limit **
   9  Prefactor     .10000E-03    156.19        .80553E-05** at limit **
  10  Prefactor     26.223        31.182       -.38996E-07    .88148E-05
  11  Prefactor     108.45        189.63       -.15230E-04    .13243E-04
  12  Prefactor     .10000E-03    8.7598       -.46824E-06** at limit **
  13  norm          1.6385        .49090        .20202E-07    .97700E-04
  14  Prefactor     .10000E-03    4.2111       -.49272E-06** at limit **
  15  Prefactor     .10000E-03    7.1878       -.37164E-07** at limit **
  16  Prefactor     .10000E-03    8.1644        .10345E-06** at limit **
  17  Prefactor     110.21        122.45        .67769E-06   -.12098E-05
  18  norm          22.078        17.238       -.23789E-06    .12449E-04
  19  norm          5.1898        832.85        .16449E-05   -.87988E-06
  20  Prefactor     .10000E-03    1.8606        .59131E-07** at limit **
  21  Prefactor     .10000E-03    16.784        .38556E-06** at limit **
  22  Prefactor     12.267        24.552       -.84779E-07    .12887E-03
  23  norm          .16940        1.8968        .92408E-07   -.13757E-03
  24  Prefactor     .10000E-03    101.15       -.68570E-05** at limit **
  25  Prefactor     2.7873        7.9500        .54589E-05    .48899E-04
  26  Prefactor     89.811        99.342       -.95745E-06   -.97362E-05
  27  norm          15.027        3.3016       -.33482E-07   -.83110E-04
  28  norm          .10000E-03    10.891       -.26391E-06** at limit **
  29  Prefactor     39.170        37.649       -.10258E-05    .26673E-04
  30  Prefactor     .10000E-03    34.719        .62167E-06** at limit **
  31  Normalizat    .52236        .24621       -.16883E-05    .46237E-04
  32  Prefactor     1.5254        .28276        .23396E-05    .99653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.58822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.4902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 26.2235
  Prefactor  = 108.448
  Prefactor  = 0.0001
  norm       = 1.6385
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.211
  norm       = 22.0781
  norm       = 5.1898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2669
  norm       = 0.169404
  Prefactor  = 0.0001
  Prefactor  = 2.78733
  Prefactor  = 89.8108
  norm       = 15.0268
  norm       = 0.0001
  Prefactor  = 39.1703
  Prefactor  = 0.0001
  Normalizat = 0.52236
  Prefactor  = 1.52542
 **********
 **   18 **HESSE 
 **********

 FCN=   3802.633     FROM HESSE     STATUS=OK           659 CALLS     5083 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5882        4.1520        .15175E-03   -1.5386    
   2  Prefactor     .10000E-03    60.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.0417        .24919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          25.490        15.746        .79347E-04   -1.4698    
   5  Prefactor     .10000E-03    14.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    65.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.597        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    32.449        .32349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    156.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.223        31.189        .78228E-04   -1.4683    
  11  Prefactor     108.45        190.00        .19324E-03   -1.3621    
  12  Prefactor     .10000E-03    8.7865        .17829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6385        .49122        .22826E-04   -1.5452    
  14  Prefactor     .10000E-03    4.3778        .24695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1935        .16146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.1681        .17209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     110.21        122.34        .19157E-03   -1.3604    
  18  norm          22.078        17.234        .85246E-04   -1.4768    
  19  norm          5.1898        835.24        .17634E-03   -1.5252    
  20  Prefactor     .10000E-03    1.9472        .16421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.267        24.423        .11436E-03   -1.5007    
  23  norm          .16940        3.7359        .16196E-02   -1.5626    
  24  Prefactor     .10000E-03    104.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.7873        7.9913        .12188E-02   -1.5374    
  26  Prefactor     89.811        99.467        .42401E-04   -1.3810    
  27  norm          15.027        3.3263        .42870E-04   -1.4932    
  28  norm          .10000E-03    10.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     39.170        37.632        .64039E-04   -1.4455    
  30  Prefactor     .10000E-03    34.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .52236        .27339        .34238E-03   -1.1139    
  32  Prefactor     1.5254        .32353        .26557E-03   -.76830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00958e-08
Minuit parameter uncertainties:
  1  4.15248
  2  0.000214976
  3  2.84076e-05
  4  15.7483
  5  9.03328e-07
  6  0.000120845
  7  3.70987e-06
  8  0.00127835
  9  0.000503619
  10  31.2087
  11  191.083
  12  1.58766e-05
  13  0.491222
  14  3.17879e-05
  15  3.56558e-06
  16  2.0778e-06
  17  122.621
  18  17.2377
  19  133.619
  20  9.58116e-06
  21  1.39756e-05
  22  24.4424
  23  1.5907
  24  7.28104e-05
  25  7.99436
  26  99.6522
  27  3.32631
  28  4.30624e-06
  29  37.6546
  30  2.04023e-05
  31  0.274098
  32  0.323969
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.639e+00  4.912e-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.525e+00  3.240e-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.224e-01  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 66.11
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 5.10e-08
Energy Flux (Fixed Index): 2.30e-04 +/- 6.90e-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) = 3802.63296118
delta logL = 0.000423144019805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3802.63293349
delta logL = 0.000450838191227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6402       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7283       1.0000          .0000       5.0000    
     3 'Normalizat'    .52368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5246       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=   3802.633     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      201 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6405        .67736        .51815E-02   -.11172E-03
   2  alpha         1.7284        .31291        .13099        .18253E-04
   3  Normalizat    .52357        .22413        .77233E-01    .39483E-04
   4  Prefactor     1.5247        .27928        .60078E-01    .19875E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6405
  alpha      = 1.72839
  Normalizat = 0.523569
  Prefactor  = 1.52466
 **********
 **   18 **HESSE 
 **********

 FCN=   3802.633     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6405        .49670        .22880E-04   -1.5452    
   2  alpha         1.7284        .23695        .55956E-02   -.31377    
   3  Normalizat    .52357        .25386        .34205E-03   -1.1134    
   4  Prefactor     1.5247        .31846        .26564E-03   -.76851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36021e-12
Minuit parameter uncertainties:
  1  0.496704
  2  0.237345
  3  0.25442
  4  0.318873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493513': 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) = 3802.63293305
delta logL = 0.00045127903104

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.641e+00  4.967e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.728e+00  2.373e-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.525e+00  3.189e-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.236e-01  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 65.72
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.73 +/- 0.24
Photon Flux (Free Index): 1.69e-07 +/- 6.48e-08
Energy Flux (Free Index): 2.33e-04 +/- 1.28e-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/493513/cmap_HighResolution_415584001_415843201_4FGL_J1104.4+3812_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='2.33e-04', photon_flux_error='5.10e-08', dlogl='4.51e-04', energy_flux='2.30e-04', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-03 06:59:10.816137', photon_index_error2='0.24', photon_index2='1.73', ts='66.11', fit_tolerance='1e-08', GAL='1.53', photon_index_error='0.00', energy_flux_error2='1.28e-04', EG='0.52', time_epoch_completed='1630677550.82', return_code='0', job_id='493513', GAL2='1.52', EG2='0.52', return_code2='0', energy_flux_error='6.90e-05', photon_flux_error2='6.48e-08', ts2='65.72', photon_index='1.74' WHERE bin_id='680' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:59:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 493513: <4FGL_J1104.4+3812_daily_bin680> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin680> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 06:44:25 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:44:40 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:44:40 2021
Terminated at Fri Sep  3 06:59:11 2021
Results reported at Fri Sep  3 06:59:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin680 166.119 38.207 415584001 415843201 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 :                                   690.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            886 sec.

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

