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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin926
RA = 166.119, Dec = 38.207
tmin = 479347201, tmax = 479606401
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='495538', job_status='RUN', time_executed='2021-09-03 06:54:19.453209', time_epoch_executed='1630677259.45' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='926'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495538

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495538/ft1_4FGL_J1104.4+3812_daily_bin926.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495538/ft2_4FGL_J1104.4+3812_daily_bin926.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495538/ft1_4FGL_J1104.4+3812_daily_bin926.fits outfile=/scratch/kocevski/495538/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin926.fits ra=166.119 dec=38.207 rad=12.0 tmin=479347201.0 tmax=479606401.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 3.47
user 3.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/495538/ft2_4FGL_J1104.4+3812_daily_bin926.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/495538/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin926.fits evtable="EVENTS" outfile="/scratch/kocevski/495538/ft1_filtered_4FGL_J1104.4+3812_daily_bin926.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/495538/ft1_filtered_4FGL_J1104.4+3812_daily_bin926.fits" evtable="EVENTS" scfile=/scratch/kocevski/495538/ft2_4FGL_J1104.4+3812_daily_bin926.fits sctable="SC_DATA" outfile=/scratch/kocevski/495538/ltcube_479347201_479606401_4FGL_J1104.4+3812_daily_bin926.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/495538/ft2_4FGL_J1104.4+3812_daily_bin926.fits
.....................!
real 13.76
user 13.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495538/ft1_filtered_4FGL_J1104.4+3812_daily_bin926.fits evtable="EVENTS" scfile=/scratch/kocevski/495538/ft2_4FGL_J1104.4+3812_daily_bin926.fits sctable="SC_DATA" expcube=/scratch/kocevski/495538/ltcube_479347201_479606401_4FGL_J1104.4+3812_daily_bin926.fits outfile=/scratch/kocevski/495538/expmap_479347201_479606401_4FGL_J1104.4+3812_daily_bin926.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/495538/ltcube_479347201_479606401_4FGL_J1104.4+3812_daily_bin926.fits
.....................!
real 191.92
user 185.40
sys 5.96

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/495538/ft1_filtered_4FGL_J1104.4+3812_daily_bin926.fits scfile=/scratch/kocevski/495538/ft2_4FGL_J1104.4+3812_daily_bin926.fits outfile=/scratch/kocevski/495538/cmap_479347201_479606401_4FGL_J1104.4+3812_daily_bin926.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.71
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495538/ft1_filtered_4FGL_J1104.4+3812_daily_bin926.fits scfile=/scratch/kocevski/495538/ft2_4FGL_J1104.4+3812_daily_bin926.fits outfile=/scratch/kocevski/495538/cmap_HighResolution_479347201_479606401_4FGL_J1104.4+3812_daily_bin926.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16760E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8670       1.0000         .10000E-03   10000.    
     4 'norm      '    23.836       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18928E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.605       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.482       1.0000         .10000E-03   10000.    
    11 'Prefactor '    67.083       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14478       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4496       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7086       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.130       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3235       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.5405       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .43975E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.5654       1.0000         .10000E-03   10000.    
    26 'Prefactor '    36.580       1.0000         .10000E-03   10000.    
    27 'norm      '    .44663       1.0000         .10000E-03   10000.    
    28 'norm      '    18.716       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.691       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0874       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .62370       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=   5255.599     FROM MIGRAD    STATUS=CONVERGED    880 CALLS     4438 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6991       -.41466E-07** at limit **
   2  Prefactor     .10000E-03    147.57        .14481E-05** at limit **
   3  Prefactor     3.8669        3.9074       -.22404E-06   -.25605E-03
   4  norm          23.820        12.111        .67128E-06   -.87512E-05
   5  Prefactor     .10000E-03    18.768       -.11270E-05** at limit **
   6  Prefactor     .10000E-03    11.620        .62435E-06** at limit **
   7  Prefactor     .10000E-03    1.6342       -.34500E-07** at limit **
   8  Prefactor     .10000E-03    2.2820       -.13062E-06** at limit **
   9  Prefactor     28.612        26.954       -.18124E-06    .38174E-05
  10  Prefactor     30.483        25.378        .42686E-06   -.62853E-05
  11  Prefactor     67.068        70.106       -.11168E-04   -.95884E-06
  12  Prefactor     .17179        7.5912        .48237E-06   -.30710E-03
  13  norm          1.4496        .35081        .33055E-08    .96333E-04
  14  Prefactor     2.7052        3.0435       -.28478E-06   -.56152E-03
  15  Prefactor     .10000E-03    13.457       -.15440E-06** at limit **
  16  Prefactor     .10000E-03    5.5987        .10213E-06** at limit **
  17  Prefactor     .10000E-03    46.498        .85558E-06** at limit **
  18  norm          11.133        10.237       -.87609E-07   -.39804E-04
  19  norm          .10000E-03    24.187        .66929E-06** at limit **
  20  Prefactor     2.3237        2.1420       -.44024E-07   -.26480E-03
  21  Prefactor     .10000E-03    18.917        .86861E-07** at limit **
  22  Prefactor     .10000E-03    7.8717       -.18390E-06** at limit **
  23  norm          2.5403        2.2799        .14110E-06   -.30864E-03
  24  Prefactor     .10012E-03    8.5521        .14372E-06** at limit **
  25  Prefactor     5.5653        4.9375       -.46487E-06   -.28060E-03
  26  Prefactor     36.556        45.823       -.80763E-05   -.39970E-04
  27  norm          .44742        .99583        .94492E-06    .84404E-03
  28  norm          18.717        13.999        .77522E-06   -.57863E-04
  29  Prefactor     .10000E-03    21.859        .18326E-06** at limit **
  30  Prefactor     12.673        50.291       -.14087E-04   -.33344E-04
  31  Normalizat    1.0877        .17322        .10705E-05   -.21492E-03
  32  Prefactor     .62335        .19352       -.28355E-06   -.54896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.8669
  norm       = 23.8197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6122
  Prefactor  = 30.4829
  Prefactor  = 67.0685
  Prefactor  = 0.171786
  norm       = 1.44964
  Prefactor  = 2.70524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1331
  norm       = 0.0001
  Prefactor  = 2.3237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.54034
  Prefactor  = 0.000100116
  Prefactor  = 5.56533
  Prefactor  = 36.5559
  norm       = 0.447417
  norm       = 18.7168
  Prefactor  = 0.0001
  Prefactor  = 12.6731
  Normalizat = 1.0877
  Prefactor  = 0.623346
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.599     FROM HESSE     STATUS=OK           673 CALLS     5111 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7116        .92012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    151.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8669        3.9011        .13678E-03   -1.5315    
   4  norm          23.820        12.109        .82046E-04   -1.4731    
   5  Prefactor     .10000E-03    18.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6420        .90436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2184        .21173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.612        26.947        .74908E-04   -1.4638    
  10  Prefactor     30.483        25.393        .72570E-04   -1.4603    
  11  Prefactor     67.068        69.492        .49003E-04   -1.4068    
  12  Prefactor     .17179        161.62        .35831E-02   -1.5625    
  13  norm          1.4496        .35137        .20330E-04   -1.5467    
  14  Prefactor     2.7052        3.1915        .11982E-03   -1.5379    
  15  Prefactor     .10000E-03    13.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6030        .16752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    46.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.133        10.229        .12009E-03   -1.5041    
  19  norm          .10000E-03    24.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.3237        2.1261        .95653E-04   -1.5403    
  21  Prefactor     .10000E-03    18.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.8849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.5403        2.2617        .97286E-04   -1.5389    
  24  Prefactor     .10012E-03    14.102        .65219E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.5653        4.9418        .14384E-03   -1.5236    
  26  Prefactor     36.556        45.047        .66264E-04   -1.4498    
  27  norm          .44742        .85601        .89508E-03   -1.5574    
  28  norm          18.717        13.974        .92580E-04   -1.4842    
  29  Prefactor     .10000E-03    21.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     12.673        49.729        .11244E-03   -1.4996    
  31  Normalizat    1.0877        .19874        .20912E-03   -.90148    
  32  Prefactor     .62335        .21992        .31900E-03   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00189e-09
Minuit parameter uncertainties:
  1  2.31784e-07
  2  0.000812896
  3  3.90134
  4  12.1101
  5  5.07615e-06
  6  5.00106e-06
  7  1.4111e-06
  8  1.29956e-05
  9  26.9583
  10  25.4021
  11  69.5759
  12  10.564
  13  0.351367
  14  3.19166
  15  1.62871e-06
  16  1.20737e-06
  17  3.68463e-06
  18  10.2303
  19  8.49784e-08
  20  2.12618
  21  1.14471e-05
  22  2.43789e-06
  23  2.26178
  24  0.00256148
  25  4.94216
  26  45.0892
  27  0.856033
  28  13.9764
  29  5.31646e-06
  30  49.8923
  31  0.198879
  32  0.22022
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.450e+00  3.514e-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:  6.233e-01  2.202e-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:  1.088e+00  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 89.33
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 3.65e-08
Energy Flux (Fixed Index): 2.04e-04 +/- 4.94e-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) = 5255.29736681
delta logL = 0.301243458483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5255.29080519
delta logL = 0.307805077076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3895       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8864       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63760       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=   5255.291     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3895        1.0456        .43362E-02   -.47758E-04
   2  alpha         1.8865        .56404        .11536        .41344E-04
   3  Normalizat    1.0629        .17260        .39768E-01    .43125E-05
   4  Prefactor     .63757        .19527        .71244E-01    .21649E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3895
  alpha      = 1.88648
  Normalizat = 1.06285
  Prefactor  = 0.637565
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.291     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3895        .34840        .19148E-04   -1.5472    
   2  alpha         1.8865        .19490        .49484E-02   -.24794    
   3  Normalizat    1.0629        .18648        .21090E-03   -.90954    
   4  Prefactor     .63757        .21793        .31534E-03   -1.0603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78118e-10
Minuit parameter uncertainties:
  1  0.348399
  2  0.195106
  3  0.186599
  4  0.218216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495538': 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) = 5255.29080507
delta logL = 0.307805194923

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.390e+00  3.484e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.886e+00  1.951e-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:  6.376e-01  2.182e-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:  1.063e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 89.48
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.89 +/- 0.20
Photon Flux (Free Index): 1.76e-07 +/- 5.18e-08
Energy Flux (Free Index): 1.56e-04 +/- 6.27e-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/495538/cmap_HighResolution_479347201_479606401_4FGL_J1104.4+3812_daily_bin926.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='1.56e-04', photon_flux_error='3.65e-08', dlogl='3.08e-01', energy_flux='2.04e-04', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-03 07:08:04.927918', photon_index_error2='0.20', photon_index2='1.89', ts='89.33', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='6.27e-05', EG='1.09', time_epoch_completed='1630678084.93', return_code='0', job_id='495538', GAL2='0.64', EG2='1.06', return_code2='0', energy_flux_error='4.94e-05', photon_flux_error2='5.18e-08', ts2='89.48', photon_index='1.74' WHERE bin_id='926' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:08:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 495538: <4FGL_J1104.4+3812_daily_bin926> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin926> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:51:33 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:52:17 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:52:17 2021
Terminated at Fri Sep  3 07:08:05 2021
Results reported at Fri Sep  3 07:08:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin926 166.119 38.207 479347201 479606401 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 :                                   823.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            992 sec.

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

