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


Performing analysis on: 4FGL_J1104.4+3812_daily_bin728
RA = 166.119, Dec = 38.207
tmin = 428025601, tmax = 428284801
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='494047', job_status='RUN', time_executed='2021-09-03 06:48:38.416287', time_epoch_executed='1630676918.42' WHERE source_name='4FGL J1104.4+3812' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494047

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494047/ft1_4FGL_J1104.4+3812_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494047/ft2_4FGL_J1104.4+3812_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494047/ft1_4FGL_J1104.4+3812_daily_bin728.fits outfile=/scratch/kocevski/494047/ft1_filteredMKT_4FGL_J1104.4+3812_daily_bin728.fits ra=166.119 dec=38.207 rad=12.0 tmin=428025601.0 tmax=428284801.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.57
user 5.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494047/ft1_filtered_4FGL_J1104.4+3812_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/494047/ft2_4FGL_J1104.4+3812_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/494047/ltcube_428025601_428284801_4FGL_J1104.4+3812_daily_bin728.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/494047/ft2_4FGL_J1104.4+3812_daily_bin728.fits
.....................!
real 15.39
user 14.95
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494047/ft1_filtered_4FGL_J1104.4+3812_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/494047/ft2_4FGL_J1104.4+3812_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/494047/ltcube_428025601_428284801_4FGL_J1104.4+3812_daily_bin728.fits outfile=/scratch/kocevski/494047/expmap_428025601_428284801_4FGL_J1104.4+3812_daily_bin728.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/494047/ltcube_428025601_428284801_4FGL_J1104.4+3812_daily_bin728.fits
.....................!
real 193.02
user 187.71
sys 4.75

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/494047/ft1_filtered_4FGL_J1104.4+3812_daily_bin728.fits scfile=/scratch/kocevski/494047/ft2_4FGL_J1104.4+3812_daily_bin728.fits outfile=/scratch/kocevski/494047/cmap_428025601_428284801_4FGL_J1104.4+3812_daily_bin728.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.65
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494047/ft1_filtered_4FGL_J1104.4+3812_daily_bin728.fits scfile=/scratch/kocevski/494047/ft2_4FGL_J1104.4+3812_daily_bin728.fits outfile=/scratch/kocevski/494047/cmap_HighResolution_428025601_428284801_4FGL_J1104.4+3812_daily_bin728.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.74
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.037       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.988       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3184       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19963E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    87.517       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87158       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7340       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27514E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.376       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.043       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3277       1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5006       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3358       1.0000         .10000E-03   10000.    
    23 'norm      '    .96031       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.9651       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.0184       1.0000         .10000E-03   10000.    
    28 'norm      '    15.339       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13239E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0968       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .90643       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=   5161.324     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     4340 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7619        .58337E-07** at limit **
   2  Prefactor     .10000E-03    10.774        .11382E-06** at limit **
   3  Prefactor     .10000E-03    2.3403        .10842E-07** at limit **
   4  norm          10.037        9.7688       -.40031E-07    .70619E-04
   5  Prefactor     54.040        74.997       -.62188E-05    .54795E-05
   6  Prefactor     .10000E-03    18.075       -.71582E-06** at limit **
   7  Prefactor     8.3161        5.1960        .39449E-07    .11941E-03
   8  Prefactor     .10001E-03    4.8714       -.19238E-05** at limit **
   9  Prefactor     .10000E-03    11.710       -.14533E-06** at limit **
  10  Prefactor     .10000E-03    11.147       -.25154E-06** at limit **
  11  Prefactor     87.509        89.688        .99003E-06    .58455E-05
  12  Prefactor     .86854        17.738        .19308E-05   -.12583E-03
  13  norm          1.7341        .43302       -.13916E-07    .69223E-04
  14  Prefactor     .10000E-03    2.1744       -.40468E-06** at limit **
  15  Prefactor     12.377        14.179       -.46096E-06    .55623E-05
  16  Prefactor     .10000E-03    22.112        .78961E-06** at limit **
  17  Prefactor     62.088        97.504       -.56587E-05    .12678E-06
  18  norm          2.3261        9.0700        .59184E-05    .16683E-03
  19  norm          .10000E-03    29.542       -.89379E-06** at limit **
  20  Prefactor     6.5008        3.3142       -.12165E-06    .13447E-03
  21  Prefactor     .10000E-03    17.720       -.62247E-06** at limit **
  22  Prefactor     3.3406        27.721        .50944E-06    .14110E-04
  23  norm          .95900        2.5904        .39216E-07   -.15357E-04
  24  Prefactor     .10000E-03    6.6965       -.14426E-06** at limit **
  25  Prefactor     5.9661        5.4891        .49010E-06    .18094E-03
  26  Prefactor     .10000E-03    22.745        .10795E-05** at limit **
  27  norm          7.0187        1.6833       -.34199E-08    .13911E-03
  28  norm          15.335        11.817       -.25976E-07    .31064E-05
  29  Prefactor     .10010E-03    23.214       -.16281E-05** at limit **
  30  Prefactor     .10000E-03    18.245       -.65267E-06** at limit **
  31  Normalizat    1.0968        .20369        .26619E-07    .21939E-03
  32  Prefactor     .90657        .23351        .45289E-06    .12576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0373
  Prefactor  = 54.0396
  Prefactor  = 0.0001
  Prefactor  = 8.31605
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 87.5087
  Prefactor  = 0.868536
  norm       = 1.73407
  Prefactor  = 0.0001
  Prefactor  = 12.3769
  Prefactor  = 0.0001
  Prefactor  = 62.0884
  norm       = 2.3261
  norm       = 0.0001
  Prefactor  = 6.50076
  Prefactor  = 0.0001
  Prefactor  = 3.34064
  norm       = 0.958998
  Prefactor  = 0.0001
  Prefactor  = 5.96607
  Prefactor  = 0.0001
  norm       = 7.0187
  norm       = 15.3349
  Prefactor  = 0.000100098
  Prefactor  = 0.0001
  Normalizat = 1.09682
  Prefactor  = 0.906565
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.324     FROM HESSE     STATUS=OK           659 CALLS     4999 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7763        .93105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3694        .10728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.037        9.7545        .12648E-03   -1.5074    
   5  Prefactor     54.040        75.226        .54589E-04   -1.4236    
   6  Prefactor     .10000E-03    18.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.3161        5.2018        .12175E-03   -1.5131    
   8  Prefactor     .10001E-03    14.225        .28400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     87.509        89.798        .42947E-04   -1.3834    
  12  Prefactor     .86854        70.391        .50055E-02   -1.5522    
  13  norm          1.7341        .43361        .22420E-04   -1.5445    
  14  Prefactor     .10000E-03    15.974        .18306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.377        14.209        .11387E-03   -1.5004    
  16  Prefactor     .10000E-03    22.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     62.088        97.653        .50942E-04   -1.4130    
  18  norm          2.3261        9.2054        .13441E-02   -1.5403    
  19  norm          .10000E-03    29.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5008        3.2903        .86342E-04   -1.5198    
  21  Prefactor     .10000E-03    17.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3406        27.714        .22161E-03   -1.5342    
  23  norm          .95900        2.5462        .17626E-03   -1.5512    
  24  Prefactor     .10000E-03    6.7032        .18137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.9661        5.4488        .15188E-03   -1.5219    
  26  Prefactor     .10000E-03    22.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.0187        1.6810        .43452E-04   -1.5178    
  28  norm          15.335        11.820        .10227E-03   -1.4925    
  29  Prefactor     .10010E-03    227.05        .65772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    18.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0968        .23592        .23947E-03   -.89854    
  32  Prefactor     .90657        .27124        .31676E-03   -.95912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70396e-09
Minuit parameter uncertainties:
  1  4.1057e-06
  2  4.38888e-06
  3  3.85023e-06
  4  9.75601
  5  75.3589
  6  1.5765e-05
  7  5.20206
  8  0.00086144
  9  1.62681e-06
  10  1.00809e-06
  11  89.9374
  12  15.6562
  13  0.433607
  14  0.000116013
  15  14.2124
  16  3.02841e-05
  17  97.9058
  18  9.21096
  19  3.70941e-06
  20  3.29041
  21  4.43858e-06
  22  19.2558
  23  2.54645
  24  1.53787e-05
  25  5.44923
  26  9.81114e-06
  27  1.68096
  28  11.8221
  29  0.00946746
  30  4.82496e-06
  31  0.236145
  32  0.27165
Done.

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

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.734e+00  4.336e-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.066e-01  2.716e-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.097e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 73.54
Ra Dec: 166.119 38.207
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.80e-07 +/- 4.50e-08
Energy Flux (Fixed Index): 2.44e-04 +/- 6.09e-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) = 5161.25388448
delta logL = 0.0704761818897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5161.25036089
delta logL = 0.0739997665823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7034       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8059       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91316       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=   5161.250     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      202 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7040        .65452        .49422E-02    .26152E-04
   2  alpha         1.8056        .27472        .11398        .93585E-04
   3  Normalizat    1.0851        .19244        .38659E-01    .18581E-04
   4  Prefactor     .91290        .23177        .71329E-01    .32602E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70398
  alpha      = 1.80556
  Normalizat = 1.08509
  Prefactor  = 0.912902
 **********
 **   18 **HESSE 
 **********

 FCN=   5161.250     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7040        .42672        .21840E-04   -1.5447    
   2  alpha         1.8056        .18345        .49166E-02   -.28148    
   3  Normalizat    1.0851        .22231        .24041E-03   -.90232    
   4  Prefactor     .91290        .26831        .31558E-03   -.95692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9058e-11
Minuit parameter uncertainties:
  1  0.426717
  2  0.183628
  3  0.222498
  4  0.268698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494047': 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) = 5161.2503569
delta logL = 0.074003759989

Extracting fit parameters...

4FGL J1104.4+3812
   Spectrum: LogParabola
334         norm:  1.704e+00  4.267e-01  1.000e-04  1.000e+04 ( 1.000e-11)
335        alpha:  1.806e+00  1.836e-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.129e-01  2.687e-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.085e+00  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 73.37
Ra Dec: 166.119 38.207
Photon Index (Free Index): 1.81 +/- 0.18
Photon Flux (Free Index): 1.93e-07 +/- 5.74e-08
Energy Flux (Free Index): 2.14e-04 +/- 8.91e-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/494047/cmap_HighResolution_428025601_428284801_4FGL_J1104.4+3812_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.80e-07', energy_flux2='2.14e-04', photon_flux_error='4.50e-08', dlogl='7.40e-02', energy_flux='2.44e-04', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-03 07:02:21.291349', photon_index_error2='0.18', photon_index2='1.81', ts='73.54', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='8.91e-05', EG='1.10', time_epoch_completed='1630677741.29', return_code='0', job_id='494047', GAL2='0.91', EG2='1.09', return_code2='0', energy_flux_error='6.09e-05', photon_flux_error2='5.74e-08', ts2='73.37', photon_index='1.74' WHERE bin_id='728' AND source_name='4FGL J1104.4+3812' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 07:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 494047: <4FGL_J1104.4+3812_daily_bin728> in cluster <slac> Done

Job <4FGL_J1104.4+3812_daily_bin728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 06:46:22 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:46:36 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:36 2021
Terminated at Fri Sep  3 07:02:22 2021
Results reported at Fri Sep  3 07:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+3812_daily_bin728 166.119 38.207 428025601 428284801 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 :                                   819.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            960 sec.

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

